/* Add custom CSS styles below */ 
/* ==========================================================================
   MOROJ STORE - ELITE UI ARCHITECTURE 
   Theme: Silent Luxury / Tech-Minimalism
   ========================================================================== */

@import url('https://fonts.googleapis.com/css2?family=Tajawal:wght@300;400;500;700;800&display=swap');

:root {
    /* Brand DNA Colors */
    --moroj-dark-blue: #0A2D4D; /* Primary Dark */
    --moroj-teal: #7AC1C5;      /* Brand Accent */
    --moroj-orange: #E87329;    /* CTA & Pricing */
    
    /* Surfaces & Neutrals */
    --moroj-bg: #FFFFFF;
    --moroj-surface-light: #F4F7F6;
    --moroj-surface-dark: #1A3C5B;
    
    /* Typography */
    --text-primary: #0A2D4D;
    --text-secondary: #4A5568;
    --font-primary: "Tajawal", sans-serif;
    
    /* Grid & Spacing */
    --radius-sm: 8px;
    --radius-md: 16px;
    --radius-pill: 50px;
}

body {
    background-color: var(--moroj-bg) !important;
    font-family: var(--font-primary);
    color: var(--text-primary);
    -webkit-font-smoothing: antialiased;
}

/* ====== Header ====== */
.header-buttons .btn--rounded-gray {
    padding: 0;
    background: 0 0;
    color: var(--moroj-dark-blue); 
}
header .flex.items-stretch.justify-between.relative .main-menu li>a {
  color: var(--moroj-dark-blue);
  font-weight: 500;
  transition: color 0.3s ease;
}
header .flex.items-stretch.justify-between.relative .main-menu li>a:hover {
  color: var(--moroj-orange);
}
header .sicon-menu {
  color: var(--moroj-dark-blue); 
}
header .s-cart-summary-content {
    display: none;
}
.s-user-menu-trigger {
    background: 0 0;
}
header .sicon-menu {
    margin-right: 8px; /* 8pt Grid alignment */
}
header .header-btn__icon {
    border: none;
}
header .header-btn__icon.icon.sicon-shopping-bag,
header .header-btn__icon.sicon-user-circle {
    font-size: 0;
    margin-left: 0;
}
header .header-btn__icon.icon.sicon-shopping-bag,
header .header-btn__icon.sicon-user-circle, 
header .search, 
header .header-buttons {
    background-color: var(--moroj-surface-light); 
    color: var(--moroj-dark-blue) !important;
    display: flex;
    justify-content: center;
    align-items: center;
    padding: 4px;
    border-radius: var(--radius-pill);
    margin-right: 8px;
    width: 2.5rem;
    height: 2.5rem;
    transition: all 0.3s ease;
}
header .header-btn__icon.icon.sicon-shopping-bag:hover,
header .header-btn__icon.sicon-user-circle:hover {
    background-color: var(--moroj-teal);
}
header .header-btn {
    width: auto;
}
.search svg {
    width: 24px;
    height: 24px;
    fill: var(--moroj-dark-blue);
}
.search svg, header .header-btn__icon.sicon-user-circle:after {
    width: 24px;
    height: 24px;
}
header salla-cart-summary.ml-4.rtl\:ml-\[unset\].rtl\:mr-4.hydrated {
    margin-right: 0;
}
body:lang(en) header salla-cart-summary.ml-4.rtl\:ml-\[unset\].rtl\:mr-4.hydrated {
    margin-left: 0;
}
#mainnav {
    height: auto!important;
    min-height: auto;
}
.main-nav-container {
    background-color: var(--moroj-bg) !important; 
}
.navbar-brand img {
    max-height: 3.2rem;
}
.s-user-menu-trigger {
    background-color: transparent;
}
.s-cart-summary-count {
    background-color: var(--moroj-orange) !important;
    color: #fff;
    top: -0.5rem;
    right: -0.2rem;
    font-family: var(--font-primary);
}
header .header-buttons .btn--rounded-gray span:nth-of-type(3), 
header .header-buttons .mx-1\.5 {
  display: none;
}
header .header-btn__icon {
    height: auto;
    width: auto;
}
.top-navbar {
    display: none;
}

/* ====== Sections ====== */
.main-menu>li>a[href*=offer]{
  color: var(--moroj-orange) !important; 
}
.s-block.s-block--fixed-banner:first-of-type, .s-block--fixed-banner+.s-block--fixed-banner:nth-of-type(2){
  margin-top:0;
}
section.s-block.s-block--banners .s-block__title {
    justify-content: center;
    padding-top: 2rem;
}
section.s-block.s-block--fixed-banner .container {
    padding: 0;
}
section.s-block.s-block--fixed-banner .banner--fixed img {
    border-radius: 0;
    background: transparent;
}
.s-block__title .right-side:where([dir=rtl],[dir=rtl] *) {
    padding-left: 0!important;
}
section.s-block.s-block--banners .s-block__title {
    justify-content: center;
}
section.s-block.s-block--banners .s-block__title h2, .s-slider-block__title h2 {
    font-size: 2rem;
    font-weight: 700;
    color: var(--moroj-dark-blue);
}
.s-block--banners:nth-of-type(21) .grid {
    justify-content: center;
}
.s-block--banners:nth-of-type(21) .banner-entry {
    padding: 0 2rem !important;
}

section.s-block.s-block--banners .grid .banner-entry {
    background-color: transparent;
    transition: all .5s ease;
    height: auto;
    padding: 0;
    flex: 0 0 25%;
}
section.s-block.s-block--banners .grid .banner-entry div::before {
    position: absolute;
    top: 0;
    left: -75%;
    z-index: 2;
    display: block;
    content: '';
    width: 50%;
    height: 100%;
    background: linear-gradient(to right, rgba(255,255,255,0) 0%, rgba(255,255,255,.4) 100%); 
    transform: skewX(-25deg);
}
section.s-block.s-block--banners .grid .banner-entry div:hover::before {
    animation: shine .75s;
}
@keyframes shine {
    100% { left: 125%; }
}

/* ====== Colored Section ====== */
#best-offers-6-slider, #best-offers-7-slider {
  background: var(--moroj-surface-light); 
}
.s-block.s-block--best-offers {
    margin-top: 0;
}
.s-block.s-block--best-offers .swiper-wrapper{
    justify-content: start;
}
#best-offers-10-slider, #best-offers-11-slider {
  background: var(--moroj-surface-dark); 
}
#best-offers-10-slider .s-product-card-content-footer .s-button-primary-outline, 
#best-offers-11-slider .s-product-card-content-footer .s-button-primary-outline {
    background: var(--moroj-teal); 
    color: var(--moroj-dark-blue);
    border: none;
}
#best-offers-14-slider, #best-offers-15-slider{
  background: var(--moroj-surface-light); 
}
#best-offers-18-slider, #best-offers-19-slider{
  background: var(--moroj-bg); 
}
#best-offers-10-slider .s-product-card-price, 
#best-offers-10-slider .s-product-card-content-title a, 
#best-offers-10-slider .s-slider-block__title, 
#best-offers-11-slider .s-product-card-price, 
#best-offers-11-slider .s-product-card-content-title a, 
#best-offers-11-slider .s-slider-block__title {
  color: var(--moroj-bg); 
}

/* ====== Product card ====== */
.s-slider-block__title-left {
  display: none;
}
.s-product-card-content-title a {
    text-align: center;
    font-size: 1.25rem;
    font-weight: 700;
    color: var(--moroj-dark-blue); 
}
.s-product-card-price {
    text-align: center;
    font-size: 1.5rem;
    font-weight: 800;
    color: var(--moroj-orange); 
}
.s-product-card-content-sub, .s-product-card-content-subtitle {
    justify-content: center;
    text-align: center;
    color: var(--text-secondary);
}
.s-product-card-content-footer .s-button-primary-outline {
    background: var(--moroj-orange); 
    border: none;
    color: #fff; 
    border-radius: var(--radius-sm) !important;
    transition: background 0.3s ease;
}
.s-product-card-content-footer .s-button-primary-outline:hover {
    background: var(--moroj-dark-blue);
}
.s-product-card-content-footer .s-button-primary-outline .s-button-text i {
    display: none;
}
.s-product-card-entry{
  background-color: transparent;
}
.s-product-card-image {
    background-color: transparent;
}
.s-slider-block__title h2, .s-slider-block__title-right, .s-block__title .right-side {
    padding-left: 0!important;
}
.s-block--best-offers .carousel-slider .swiper{
      padding: 1.5rem 3rem;
}
.s-slider-block__title {
    flex-direction: column;
    justify-content: center;
    color: var(--moroj-dark-blue); 
    margin-bottom: 0;
    margin-top: 1rem;
}

/* ====== Accordion ====== */
.index .accordion-section {
  margin: 2rem auto;
  padding: 8px 16px;
  max-width: 60rem;
}
.section-title, .s-reviews-header {
    font-size: 1.8rem;
    font-weight: 800;
    text-align: center;
    color: var(--moroj-dark-blue); 
}
.section-sub {
    font-size: 1.1rem;
    font-weight: 400;
    text-align: center;
    margin-top: 8px;
    color: var(--text-secondary); 
}
.accordion {
  direction: rtl;
  padding-top: 16px;
}
.accordion-button {
  cursor: pointer;
  width: 100%;
  text-align: right;
  transition: background-color 0.3s, color 0.3s;
  font-size: 1rem;
  font-weight: 500;
  display: flex;
  justify-content: space-between;
  align-items: center;
}
.index .accordion-button {
  padding: 12px 16px;
  background: var(--moroj-dark-blue); 
  margin-bottom: 8px;
  border-radius: var(--radius-md);
  color: #fff; 
}
.accordion-button.active {
  background: var(--moroj-teal);
  color: var(--moroj-dark-blue);
}
.accordion-content {
  background-color: var(--moroj-bg); 
  overflow: hidden;
  max-height: 0;
  transition: max-height 0.3s ease-out;
  padding-left: 16px;
  padding-right: 16px;
}
.accordion-content p {
  margin: 8px 0 16px;
  color: var(--text-secondary); 
}
.product-single .accordion-button {
  border-bottom: 1px solid var(--moroj-surface-light); 
  padding: 8px 16px;
  font-weight: 700;
  color: var(--moroj-dark-blue);
}

/* ====== Testimonial ====== */
.s-reviews-testimonial {
    background-color: var(--moroj-surface-light) !important; 
    border-radius: var(--radius-md);
    box-shadow: none;
}
.s-reviews-testimonial__text p {
    text-align: center;
    color: var(--text-secondary); 
}

/* ====== Footer ====== */
.footer-is-light .store-footer {
    background-color: var(--moroj-dark-blue); 
    margin-left: 16px;
    margin-right: 16px;
    border-top-right-radius: 32px !important;
    border-top-left-radius: 32px !important;
}
.footer-is-light .store-footer .store-footer__inner {
    background-color: var(--moroj-dark-blue); 
    color: var(--moroj-bg); 
    border-top-right-radius: 32px !important;
    border-top-left-radius: 32px !important;
}
.store-footer a.flex.items-center.m-0 h3, .store-footer a .unicode {
    display: none;
}
.store-footer__inner .s-contacts-list {
    display: flex;
    align-items: center;
    border: none;
    margin-top: 0;
    flex-wrap: wrap;
    flex-direction: row;
    gap: 8px;
}
.store-footer__inner .container:first-of-type div:nth-of-type(3) div:first-of-type a i,
.store-footer__inner .container:first-of-type div:nth-of-type(3) div a i {
    color: var(--moroj-teal); 
    transition: all .3s ease;
    font-size: 20px;
}
.store-footer__inner .container:first-of-type div:nth-of-type(3) div a:hover i {
    color: var(--moroj-orange);
}
.store-footer p.max-w-sm.leading-6.mb-6 {
    padding-top: 1rem;
    max-width: 100%;
    color: var(--moroj-surface-light); 
}
.store-footer h3, footer .store-footer__inner .container div.lg\:col-span-2.rtl\:lg\:pl-20.ltr\:lg\:pr-20:before {
    color: var(--moroj-bg); 
}

/* ====== Product Page ====== */
.product-single h1.text-xl.md\:text-2xl.leading-10.font-bold.mb-6.text-gray-800 {
    margin-bottom: 0;
    color: var(--moroj-dark-blue); 
    font-weight: 800;
}
.s-comments-product {
    background: var(--moroj-bg); 
}
.s-comments-item {
    background: var(--moroj-surface-light); 
    padding: 16px !important;
    border-radius: var(--radius-sm);
}

/* ====== Specific UI Refinements ====== */
.s-product-card-content-footer .s-button-primary-outline {
    padding: 8px 16px !important;
    font-size: 0.9rem !important;
    border-radius: var(--radius-sm) !important;
}
.product-color-preview {
  display: flex;
  gap: 8px;
  margin-top: 8px;
  justify-content: center;
  flex-wrap: wrap;
}
.color-dot {
  width: 24px;
  height: 24px;
  border-radius: 50%;
  border: 1px solid var(--moroj-surface-light);
}

/* Hide Promotional Badges (Clean UI) */
.s-product-card-badge, .product-single .product__badge {
  display: none !important;
}

/* ====== Media Queries (Mobile-First Optimization) ====== */
@media(max-width: 768px) {
    .s-product-card-content-title a,
    .s-product-card-price {
        font-size: 1.1rem;
        color: var(--moroj-dark-blue); 
    }
    .s-product-card-price {
        color: var(--moroj-orange);
    }
    header .header-btn__icon.icon.sicon-shopping-bag,
    header .header-btn__icon.sicon-user-circle, 
    header .search, 
    header .header-buttons {
        width: 2.2rem;
        height: 2.2rem;
    }
    section.s-block.s-block--banners .s-block__title h2, 
    .s-slider-block__title h2, 
    .section-title, 
    .s-reviews-header {
        font-size: 1.6rem;
        color: var(--moroj-dark-blue); 
    }
}

@media (min-width: 1024px) {
    .main-menu li>a {
        font-size: 1.1rem;
        color: var(--moroj-dark-blue) !important;
        font-weight: 700;
    }
    .main-menu {
        gap: 2.5rem;
    }
}