@charset "UTF-8";
/*
 Theme Name:   Storefront Child
 Template:     storefront
 Description:  Mobarak Cosmetic Shop – custom child theme styles
*/
/**
 * Filename:    _typography.scss
 * Module:      Typography & Fonts
 * Description: Declares custom @font-face rules and any global font‑family
 *              overrides for the theme.
 * Features:    - IRANSans font loaded from local file with swap behaviour
 *              - Sets the base font stack for all elements
 * Tips:        - The font file lives in /fonts/IRANSans.ttf
 *              - If you change the font, update the URL and the font‑family stack
 *                in _base.scss as well.
 */
@font-face {
  font-family: 'IRANSans';
  src: url("fonts/IRANSans.ttf") format("truetype");
  font-weight: normal;
  font-style: normal;
  font-display: swap; }

/**
 * Filename:    _base.scss
 * Module:      Global Base Styles
 * Description: Applies the most fundamental styles: universal font‑family,
 *              body direction (RTL), and page background.
 * Features:    - Forces IRANSans on all elements
 *              - Sets RTL direction
 *              - Defines the site’s base background colour
 * Tips:        - The `!important` on font‑family is deliberate to override
 *                parent theme and plugin styles. Remove it if it causes conflicts.
 */
* {
  font-family: 'IRANSans', Tahoma, Geneva, sans-serif !important; }

body {
  direction: rtl;
  background-color: #fff5f9; }

/**
 * Filename:    _preloader.scss
 * Module:      Page Preloader
 * Description: Styles for the full‑screen preloader: a fixed overlay with
 *              a logo and three animated dots, plus the fade‑out transition.
 * Features:    - Fixed, full‑screen overlay (z‑index: 999999)
 *              - CSS animation for the three loading dots
 *              - Transition on opacity for JavaScript‑driven fade‑out
 * Tips:        - The JavaScript that controls the preloader is in
 *                includes/preloader.php.
 *              - To change the logo size, adjust .preloader-logo max‑width.
 */
/* PRELOADER */
#custom-preloader {
  position: fixed;
  top: 0;
  left: 0;
  width: 100%;
  height: 100%;
  background: #690077;
  z-index: 999999;
  display: flex;
  align-items: center;
  justify-content: center;
  flex-direction: column;
  transition: opacity 0.4s ease; }

.preloader-logo {
  max-width: 180px;
  height: auto;
  margin-bottom: 25px; }

.loading-dots {
  display: flex;
  gap: 12px;
  justify-content: center; }

.dot {
  width: 18px;
  height: 18px;
  background: #e91e7b;
  border-radius: 50%;
  animation: blink 1.4s infinite both; }

.dot:nth-child(2) {
  animation-delay: 0.2s; }

.dot:nth-child(3) {
  animation-delay: 0.4s; }

@keyframes blink {
  0%, 80%, 100% {
    opacity: 0;
    transform: scale(0.8); }
  40% {
    opacity: 1;
    transform: scale(1); } }

/**
 * Filename:    _cosmic-featured.scss
 * Module:      Cosmic Featured Products Section
 * Description: Styles the “Cosmic Pink Box” – a highly decorative product
 *              showcase area with gradient background, floating circles,
 *              rounded cards, and hover effects.
 * Features:    - Gradient background with decorative pseudo‑elements
 *              - Product grid inside the section using flexbox
 *              - Product cards with circular images, hover lift, and smooth transitions
 *              - Responsive breakpoints for tablets and phones
 * Tips:        - The section is likely triggered by a specific page template
 *                or block. If the layout breaks, check the parent element’s
 *                classes (.cosmic-shop-section).
 *              - The pseudo‑elements (floating circles) use absolute positioning;
 *                ensure the section remains relatively positioned.
 */
/* COSMIC PINK BOX (featured section) */
.cosmic-shop-section {
  background: linear-gradient(145deg, #ffe0f0, #ffb3d1);
  border-radius: 50px;
  padding: 60px 50px;
  margin: 40px 0;
  box-shadow: 0 20px 40px rgba(233, 30, 123, 0.15), 0 0 0 2px rgba(255, 255, 255, 0.5) inset;
  position: relative;
  overflow: hidden;
  text-align: center; }

/* Decorative floating circles */
.cosmic-shop-section::before,
.cosmic-shop-section::after {
  content: "";
  position: absolute;
  border-radius: 50%;
  z-index: 0;
  opacity: 0.25; }

.cosmic-shop-section::before {
  top: -50px;
  left: -50px;
  width: 150px;
  height: 150px;
  background: rgba(255, 255, 255, 0.8); }

.cosmic-shop-section::after {
  bottom: -60px;
  right: -30px;
  width: 200px;
  height: 200px;
  background: rgba(233, 30, 123, 0.2); }

/* Section titles */
.cosmic-section-title {
  position: relative;
  z-index: 2;
  font-size: 2.8rem;
  font-weight: 700;
  color: #6b0042;
  margin-bottom: 10px; }

.cosmic-section-subtitle {
  position: relative;
  z-index: 2;
  color: #8b4b6a;
  font-size: 1.2rem;
  margin-bottom: 50px; }

/* Product grid */
.cosmic-shop-section ul.products {
  position: relative;
  z-index: 2;
  display: flex;
  flex-wrap: wrap;
  justify-content: center;
  gap: 35px;
  list-style: none;
  padding: 0;
  margin: 0; }

/* Product cards */
.cosmic-shop-section ul.products li.product {
  background: rgba(255, 255, 255, 0.9);
  border-radius: 40px;
  padding: 35px 25px 30px;
  text-align: center;
  box-shadow: 0 15px 30px rgba(233, 30, 123, 0.1);
  border: 1px solid rgba(255, 255, 255, 0.8);
  flex: 0 0 calc(50% - 35px);
  max-width: calc(50% - 35px);
  transition: all 0.3s ease; }

.cosmic-shop-section ul.products li.product:hover {
  transform: translateY(-5px);
  box-shadow: 0 20px 40px rgba(233, 30, 123, 0.2);
  background: #ffffff; }

.cosmic-shop-section ul.products li.product img {
  width: 200px;
  height: 200px;
  object-fit: cover;
  border-radius: 50%;
  margin: 0 auto 20px;
  box-shadow: 0 8px 20px rgba(233, 30, 123, 0.15); }

.cosmic-shop-section ul.products li.product h2,
.cosmic-shop-section ul.products li.product .woocommerce-loop-product__title {
  font-size: 1.4rem;
  font-weight: 700;
  color: #3d1a2e;
  margin: 15px 0 8px; }

.cosmic-shop-section ul.products li.product .price {
  font-size: 1.3rem;
  font-weight: 700;
  color: #e91e7b;
  margin-bottom: 20px; }

.cosmic-shop-section ul.products li.product .button {
  display: inline-block;
  background: #fff;
  border: 2px solid #e91e7b;
  color: #e91e7b;
  padding: 12px 35px;
  border-radius: 40px;
  font-weight: 700;
  font-size: 1rem;
  text-decoration: none;
  transition: background 0.2s, color 0.2s; }

.cosmic-shop-section ul.products li.product .button:hover {
  background: #e91e7b;
  color: #fff; }

/* Responsive tweaks for the pink box product grid */
@media (max-width: 768px) {
  .cosmic-shop-section ul.products li.product {
    flex: 0 0 calc(50% - 25px);
    max-width: calc(50% - 25px); } }

@media (max-width: 480px) {
  .cosmic-shop-section ul.products li.product {
    flex: 0 0 100%;
    max-width: 100%; } }

/**
 * Filename:    _product-slider.scss
 * Module:      Cosmic Product Slider Styles
 * Description: Styles for the scroll‑snap product slider including
 *              track, slides, navigation arrows, and dots.
 * Features:    - Horizontal scroll‑snap with smooth behavior
 *              - Circular product images and card styles
 *              - Custom arrow buttons and dot indicators
 *              - RTL‑aware: prev arrow on right, next on left
 * Tips:        - The slider track uses CSS scroll‑snap. The JS handles
 *                arrows/dots and autoplay.
 *              - All sizes are intentionally compact; change any value
 *                directly to adjust the fit.
 */
/* ============================================================
   MAIN CONTAINER
   ============================================================ */
.cosmic-slider {
  position: relative;
  background: linear-gradient(145deg, #ffe0f0, #ffb3d1);
  border-radius: 30px;
  /* tightened from 50px */
  padding: 25px 20px 20px;
  /* smaller padding */
  margin: 30px 0;
  /* reduced vertical margin */
  box-shadow: 0 12px 30px rgba(233, 30, 123, 0.12), 0 0 0 2px rgba(255, 255, 255, 0.4) inset;
  overflow: hidden;
  text-align: center;
  direction: rtl;
  /* Decorative circles – scaled down */
  /* Title and subtitle (inside the slider) */ }
  .cosmic-slider::before, .cosmic-slider::after {
    content: "";
    position: absolute;
    border-radius: 50%;
    z-index: 0;
    opacity: 0.25; }
  .cosmic-slider::before {
    top: -35px;
    left: -35px;
    width: 100px;
    height: 100px;
    background: rgba(255, 255, 255, 0.7); }
  .cosmic-slider::after {
    bottom: -40px;
    right: -20px;
    width: 130px;
    height: 130px;
    background: rgba(233, 30, 123, 0.15); }
  .cosmic-slider .cosmic-section-title {
    position: relative;
    z-index: 2;
    font-size: 1.4rem;
    /* was 2.8rem, now tight */
    font-weight: 700;
    color: #6b0042;
    margin-bottom: 3px;
    line-height: 1.2; }
  .cosmic-slider .cosmic-section-subtitle {
    position: relative;
    z-index: 2;
    color: #8b4b6a;
    font-size: 0.85rem;
    margin-bottom: 18px;
    line-height: 1.4; }

/* ============================================================
   TRACK (scrollable area)
   ============================================================ */
.cosmic-slider-track {
  display: flex;
  gap: 18px;
  /* tight gap between cards */
  overflow-x: auto;
  scroll-snap-type: x mandatory;
  scroll-behavior: smooth;
  -webkit-overflow-scrolling: touch;
  padding: 10px 0 15px;
  /* minimal vertical breathing */
  position: relative;
  z-index: 2;
  -ms-overflow-style: none;
  scrollbar-width: none; }
  .cosmic-slider-track::-webkit-scrollbar {
    display: none; }

/* ============================================================
   INDIVIDUAL PRODUCT CARD
   ============================================================ */
.cosmic-slide {
  flex: 0 0 auto;
  width: calc(50% - 18px);
  /* two cards visible, tight fit */
  scroll-snap-align: start;
  background: rgba(255, 255, 255, 0.9);
  border-radius: 20px;
  /* smaller rounded corners */
  padding: 15px 12px 14px;
  /* reduced internal padding */
  text-align: center;
  box-shadow: 0 8px 20px rgba(233, 30, 123, 0.08);
  border: 1px solid rgba(255, 255, 255, 0.7);
  transition: transform 0.25s ease, box-shadow 0.25s ease; }
  .cosmic-slide:hover {
    transform: translateY(-3px);
    box-shadow: 0 12px 28px rgba(233, 30, 123, 0.15);
    background: #ffffff; }
  .cosmic-slide img {
    width: 100px;
    /* smaller image */
    height: 100px;
    object-fit: cover;
    border-radius: 50%;
    margin: 0 auto 8px;
    box-shadow: 0 5px 12px rgba(233, 30, 123, 0.12); }
  .cosmic-slide .cosmic-slide-title {
    font-size: 0.9rem;
    font-weight: 700;
    color: #3d1a2e;
    margin: 6px 0 3px;
    line-height: 1.3; }
  .cosmic-slide .cosmic-slide-price {
    font-size: 0.85rem;
    font-weight: 700;
    color: #e91e7b;
    margin-bottom: 10px; }
  .cosmic-slide .cosmic-slide-button {
    display: inline-block;
    background: #fff;
    border: 1.5px solid #e91e7b;
    color: #e91e7b;
    padding: 6px 18px;
    border-radius: 30px;
    font-weight: 700;
    font-size: 0.75rem;
    text-decoration: none;
    transition: background 0.2s, color 0.2s; }
    .cosmic-slide .cosmic-slide-button:hover {
      background: #e91e7b;
      color: #fff; }

/* ============================================================
   NAVIGATION ARROWS
   ============================================================ */
.cosmic-slider-arrow {
  position: absolute;
  top: 50%;
  transform: translateY(-50%);
  z-index: 10;
  width: 30px;
  /* smaller circle */
  height: 30px;
  border-radius: 50%;
  background: rgba(255, 255, 255, 0.9);
  border: none;
  color: #e91e7b;
  font-size: 1rem;
  line-height: 1;
  display: flex;
  align-items: center;
  justify-content: center;
  padding: 0;
  margin: 0;
  box-sizing: border-box;
  cursor: pointer;
  transition: background 0.2s, color 0.2s;
  box-shadow: 0 3px 8px rgba(233, 30, 123, 0.15);
  font-family: Arial, sans-serif; }
  .cosmic-slider-arrow:hover {
    background: rgba(233, 30, 123, 0.85);
    color: #fff; }
  .cosmic-slider-arrow.cosmic-slider-prev {
    right: 8px;
    /* RTL – back on right */
    left: auto; }
  .cosmic-slider-arrow.cosmic-slider-next {
    left: 8px;
    /* forward on left */
    right: auto; }

/* ============================================================
   DOTS
   ============================================================ */
.cosmic-slider-dots {
  display: flex;
  justify-content: center;
  align-items: center;
  gap: 6px;
  margin-top: 12px;
  position: relative;
  z-index: 2; }

.cosmic-slider-dot {
  width: 8px;
  height: 8px;
  border-radius: 50%;
  background: rgba(255, 255, 255, 0.65);
  border: 1px solid #e91e7b;
  cursor: pointer;
  padding: 0;
  margin: 0;
  box-sizing: border-box;
  transition: all 0.25s ease;
  display: inline-block;
  line-height: 0;
  font-size: 0; }
  .cosmic-slider-dot.active {
    background: #e91e7b;
    transform: scale(1.3); }
  .cosmic-slider-dot:hover {
    background: #e91e7b;
    border-color: #fff; }

/* ============================================================
   RESPONSIVE TWEAKS
   ============================================================ */
@media (max-width: 768px) {
  .cosmic-slide {
    width: calc(50% - 16px); } }

@media (max-width: 480px) {
  .cosmic-slider {
    padding: 20px 12px 15px; }
  .cosmic-slide {
    width: 78%; }
  .cosmic-section-title {
    font-size: 1.2rem; }
  .cosmic-section-subtitle {
    font-size: 0.75rem;
    margin-bottom: 12px; } }

/**
 * Filename:    _category-slider.scss
 * Module:      Category Slider Styles (Peach Coral)
 * Description: A warm, feminine peach‑to‑coral gradient for the
 *              category slider. Visually distinct from the pink
 *              product slider, yet still cosmetic‑shop friendly.
 * Features:    - Soft peach‑coral gradient background
 *              - Coral accents for arrows, dots, and hover states
 *              - Same compact layout as the product slider
 * Tips:        - All colour values can be adjusted to taste.
 *              - Recompile style.css after any change.
 */
.cosmic-slider--categories {
  /* Warm peach‑coral background */
  background: linear-gradient(145deg, #ffe8d6, #ffb3a7);
  box-shadow: 0 12px 30px rgba(180, 120, 100, 0.12), 0 0 0 2px rgba(255, 255, 255, 0.5) inset;
  /* Decorative floating circles – slightly different placement */
  /* Category cards */
  /* Title colour – warm dark brown */
  /* Link styling */
  /* Arrows – coral */
  /* Dots – coral */ }
  .cosmic-slider--categories::before, .cosmic-slider--categories::after {
    content: "";
    position: absolute;
    border-radius: 50%;
    z-index: 0;
    opacity: 0.18; }
  .cosmic-slider--categories::before {
    top: -35px;
    left: -35px;
    width: 100px;
    height: 100px;
    background: rgba(255, 255, 255, 0.8); }
  .cosmic-slider--categories::after {
    bottom: -40px;
    right: -20px;
    width: 130px;
    height: 130px;
    background: rgba(255, 135, 115, 0.12); }
  .cosmic-slider--categories .cosmic-slide {
    background: rgba(255, 255, 255, 0.85);
    border: 1px solid rgba(255, 255, 255, 0.7);
    box-shadow: 0 8px 20px rgba(180, 120, 100, 0.1); }
    .cosmic-slider--categories .cosmic-slide:hover {
      background: #fff;
      box-shadow: 0 12px 28px rgba(180, 120, 100, 0.18); }
  .cosmic-slider--categories .cosmic-slide-title {
    color: #5c3b3b; }
  .cosmic-slider--categories .category-slide-link {
    display: block;
    text-decoration: none;
    color: inherit; }
  .cosmic-slider--categories .cosmic-slider-arrow {
    color: #ff6f61;
    background: rgba(255, 255, 255, 0.9);
    box-shadow: 0 3px 8px rgba(200, 120, 100, 0.15); }
    .cosmic-slider--categories .cosmic-slider-arrow:hover {
      background: rgba(255, 111, 97, 0.85);
      color: #fff; }
  .cosmic-slider--categories .cosmic-slider-dot {
    border-color: #ff6f61;
    background: rgba(255, 255, 255, 0.65); }
    .cosmic-slider--categories .cosmic-slider-dot.active {
      background: #ff6f61; }
    .cosmic-slider--categories .cosmic-slider-dot:hover {
      background: #ff6f61;
      border-color: #fff; }

/* Two cards on desktop, one on mobile (same as before) */
.cosmic-slider--categories .cosmic-slide {
  width: calc(50% - 18px); }

@media (max-width: 480px) {
  .cosmic-slider--categories .cosmic-slide {
    width: 80%; } }

/**
 * Filename:    _header-nav-buttons.scss
 * Module:      Ultra‑delicate navigation buttons
 * Description: Styles the primary navigation menu items as slim,
 *              feminine, pill‑shaped buttons that hug the text tightly.
 *              Keeps the default Storefront position (no layout hacks).
 *              Only applies on screens wider than 768px so the mobile
 *              hamburger menu is not affected.
 * Features:    - Minimal vertical/horizontal padding (2px/8px)
 *              - Small 0.8em font, light 300 weight
 *              - Pastel purple gradient, soft hover and active states
 *              - Tight gap between buttons for a dainty row
 * Tips:        - To make buttons even narrower, reduce horizontal padding
 *                or font size further.
 *              - On mobile the standard toggle button (فهرست) appears.
 */
@media screen and (min-width: 769px) {
  .main-navigation ul.menu {
    display: flex;
    flex-wrap: wrap;
    justify-content: center;
    gap: 5px;
    margin: 0;
    padding: 6px 0;
    list-style: none; }
    .main-navigation ul.menu li {
      margin: 0; }
    .main-navigation ul.menu a {
      display: inline-block;
      padding: 2px 8px;
      background: linear-gradient(135deg, #b585b9, #cf9ecf);
      color: #fff;
      border-radius: 15px;
      text-decoration: none;
      font-weight: 300;
      font-size: 0.8em;
      letter-spacing: 0.1px;
      line-height: 1.5;
      border: 1px solid rgba(255, 255, 255, 0.25);
      box-shadow: 0 1px 2px rgba(105, 0, 119, 0.1);
      transition: all 0.3s ease; }
      .main-navigation ul.menu a:hover {
        background: linear-gradient(135deg, #9c5d9e, #b07ab3);
        box-shadow: 0 2px 6px rgba(105, 0, 119, 0.2);
        color: #fff; }
      .main-navigation ul.menu a[aria-current="page"] {
        background: linear-gradient(135deg, #8e4a91, #a36ea7);
        color: #fff;
        border-color: rgba(255, 255, 255, 0.4);
        box-shadow: 0 2px 5px rgba(105, 0, 119, 0.25);
        font-weight: 400; } }

/**
 * Filename:    _hide-page-title.scss
 * Module:      Hide all page entry titles
 * Description: Visually removes the large h1.entry-title on every page
 *              because the breadcrumb already displays the page name.
 *              The h1 stays in the DOM – no negative SEO impact.
 * Features:    - Hides .entry-title globally
 * Tips:        - To restore titles, remove the @import from main.scss
 */
.entry-title {
  display: none; }

/**
 * Filename:    _empty-cart-hide.scss
 * Module:      Hide empty cart message
 * Description: On the WooCommerce cart page, visually removes the
 *              "Your cart is currently empty!" title and the following
 *              dotted separator. The "New in store" heading remains visible.
 * Features:    - Hides the empty cart title
 *              - Hides the dots separator
 *              - Keeps the product suggestions heading intact
 * Tips:        - To hide everything, add back the rule for .wp-block-heading.
 *              - Remove the @import from main.scss to restore all elements.
 */
.woocommerce-cart {
  /* Hide the dots separator that immediately follows the empty cart title */ }
  .woocommerce-cart .wc-block-cart__empty-cart__title {
    display: none; }
  .woocommerce-cart .wc-block-cart__empty-cart__title + .wp-block-separator {
    display: none; }

/**
 * Filename:    _empty-cart-styling.scss
 * Module:      Empty cart page – decorative box
 * Description: Wraps the empty cart content in a brand‑coloured box
 *              and styles the "New in store" (translated) heading.
 * Features:    - Background: #dec7e2 (soft lilac)
 *              - Rounded corners, subtle shadow
 *              - Heading styled in deeper purple with decorative line
 * Tips:        - Works together with _empty-cart-hide.scss
 */
.wp-block-woocommerce-empty-cart-block {
  background: #dec7e2;
  border: 1px solid #c2a8c8;
  border-radius: 12px;
  padding: 30px 20px;
  margin: 2em 0;
  box-shadow: 0 4px 12px rgba(105, 0, 119, 0.08);
  text-align: center; }
  .wp-block-woocommerce-empty-cart-block h2.wp-block-heading {
    font-size: 1.4em;
    font-weight: 400;
    color: #690077;
    margin-bottom: 1em; }
    .wp-block-woocommerce-empty-cart-block h2.wp-block-heading::after {
      content: "";
      display: block;
      width: 50px;
      height: 2px;
      background: #9b7c9f;
      margin: 0.6em auto 0;
      border-radius: 1px; }
  .wp-block-woocommerce-empty-cart-block .wp-block-woocommerce-product-new {
    margin-top: 1.5em; }
