/*
Theme Name: Astra Child
Template: astra
Version: 1.0.0
Text Domain: astra-child
*/


/* ======================================================================
   RIH DIL — GLOBAL FOUNDATION (LOCKED)
   Single source of truth for:
   - Tokens
   - Global container system
   - Astra width enforcement
   - Shared sections
   - Shared premium panels
   - Global button system
   - Shared icon / close button system
   - WooCommerce polish / safety fixes
   - My Account dashboard UI
   ====================================================================== */
   

:root{
  /* DRY container + spacing */
  --rihdil-container: 1440px;
  --rihdil-padding-desktop: 24px;
  --rihdil-padding-mobile: 18px;

  /* Brand accent system */
  --rih-gold: #2563EB;
  --rih-gold-light: #60A5FA;
  --rih-gold-dark: #1D4ED8;

  /* Neutral foundation */
  --rih-black: #0F172A;
  --rih-matte: #EAF2FF;
  --rih-white: #FFFFFF;
  --rih-bg: #F7FAFF;
  --rih-surface: #FFFFFF;
  --rih-surface-soft: #F5F8FF;
  --rih-surface-alt: #EEF4FF;

  /* Premium gradient (blue system) */
  --rih-gold-gradient: linear-gradient(135deg, #60A5FA 0%, #2563EB 50%, #1D4ED8 100%);

  /* Borders */
  --rih-border-gold: 1px solid rgba(37,99,235,0.16);
  --rih-border-gold-strong: 1px solid rgba(37,99,235,0.26);
  --rih-border-soft: 1px solid rgba(37,99,235,0.10);

  /* Text */
  --rih-text: #0F172A;
  --rih-muted: #64748B;

  /* Shadows */
  --rih-shadow-sm: 0 8px 22px rgba(15,23,42,0.05);
  --rih-shadow-md: 0 18px 40px rgba(15,23,42,0.08);
  --rih-shadow-lg: 0 26px 54px rgba(15,23,42,0.12);
}

/* =========================================================
   ONE TRUE CONTAINER
   ========================================================= */

.rihdil-container{
  max-width: var(--rihdil-container);
  margin-left: auto;
  margin-right: auto;
  padding-left: var(--rihdil-padding-desktop);
  padding-right: var(--rihdil-padding-desktop);
}

/* Standard page shell: required for normal front-end pages */
.rih-page-shell{
  width: 100%;
}

.rih-page-shell > .rihdil-container{
  width: 100%;
}

@media (max-width: 768px){
  .rihdil-container{
    padding-left: var(--rihdil-padding-mobile);
    padding-right: var(--rihdil-padding-mobile);
  }
}

/* =========================================================
   ASTRA CONTAINER ENFORCEMENT
   Uses --rihdil-container
   ========================================================= */

.ast-container,
.site-content .ast-container,
.site-header .ast-container,
.site-footer .ast-container,
.ast-primary-header-bar .ast-container,
.ast-builder-layout-element .ast-container{
  max-width: var(--rihdil-container) !important;
  padding-left: var(--rihdil-padding-desktop) !important;
  padding-right: var(--rihdil-padding-desktop) !important;
}

@media (max-width: 768px){
  .ast-container,
  .site-content .ast-container,
  .site-header .ast-container,
  .site-footer .ast-container,
  .ast-primary-header-bar .ast-container,
  .ast-builder-layout-element .ast-container{
    padding-left: var(--rihdil-padding-mobile) !important;
    padding-right: var(--rihdil-padding-mobile) !important;
  }
  
}


/* =========================================================
   SHARED RIH SECTION SYSTEM
   ========================================================= */

.rih-section{
  background: transparent;
  color: var(--rih-text);
}

/* =========================================================
   SHARED PREMIUM PANEL SYSTEM (LIGHT VERSION)
   ========================================================= */

.rih-panel,
.rih-quote{
  background: linear-gradient(180deg, #ffffff 0%, #f8fbff 100%);
  border: 1px solid rgba(37,99,235,0.14);
  border-radius: 18px;
  box-shadow: 0 18px 40px rgba(15,23,42,0.08);
  color: #0f172a;
  position: relative;
  overflow: hidden;
}

/* subtle premium sheen (very light, not flashy) */
.rih-panel::before,
.rih-quote::before{
  content: "";
  position: absolute;
  inset: 0;
  border-radius: inherit;
  pointer-events: none;
  background: linear-gradient(
    180deg,
    rgba(255,255,255,0.6) 0%,
    rgba(255,255,255,0.0) 45%
  );
}

/* softer variant (used inside sections) */
.rih-panel-soft{
  background: #f5f8ff;
  border: 1px solid rgba(37,99,235,0.10);
  border-radius: 16px;
  box-shadow: inset 0 0 0 1px rgba(255,255,255,0.65);
  color: #0f172a;
}
/* =========================================================
   SHARED ICON / CLOSE BUTTONS (LIGHT SYSTEM FIXED)
   ========================================================= */

.rih-icon-btn,
.rih-close-btn{
  appearance: none;
  display: inline-flex;
  align-items: center;
  justify-content: center;
  width: 40px;
  height: 40px;
  padding: 0;
  border-radius: 12px;

  border: 1px solid rgba(37,99,235,0.22);
  background: #ffffff;
  color: #2563EB;

  cursor: pointer;
  line-height: 1;
  font-size: 20px;
  font-weight: 700;

  transition: all .15s ease;
}

/* HOVER — always visible */
.rih-icon-btn:hover,
.rih-close-btn:hover{
  transform: translateY(-1px);
  border-color: rgba(37,99,235,0.45);
  background: #EEF4FF;
  color: #1D4ED8;
}

/* FOCUS */
.rih-icon-btn:focus-visible,
.rih-close-btn:focus-visible{
  outline: 2px solid rgba(96,165,250,0.55);
  outline-offset: 2px;
}

/* DISABLED */
.rih-icon-btn[disabled],
.rih-close-btn[disabled]{
  opacity: .5;
  cursor: not-allowed;
  transform: none;
}

/* =========================================================
   POPUP CLOSE BUTTON (CONSISTENT PRIMARY STYLE)
   ========================================================= */

button.rih-p55-close,
.woocommerce button.rih-p55-close,
.woocommerce-account button.rih-p55-close{
  appearance: none !important;
  display: inline-flex !important;
  align-items: center !important;
  justify-content: center !important;

  width: 40px !important;
  height: 40px !important;

  padding: 0 !important;
  margin: 0 !important;

  border-radius: 12px !important;
  border: none !important;

  background: linear-gradient(135deg, #2563EB 0%, #1D4ED8 100%) !important;
  color: #ffffff !important;

  box-shadow: 0 10px 24px rgba(37,99,235,0.22) !important;
  cursor: pointer !important;

  font-size: 20px !important;
  font-weight: 700 !important;
  line-height: 1 !important;

  transition: all .15s ease !important;
}

/* HOVER — stays readable */
button.rih-p55-close:hover,
.woocommerce button.rih-p55-close:hover,
.woocommerce-account button.rih-p55-close:hover{
  transform: translateY(-1px) !important;
  background: linear-gradient(135deg, #1D4ED8 0%, #1E40AF 100%) !important;
  color: #ffffff !important;
}

/* FOCUS */
button.rih-p55-close:focus-visible,
.woocommerce button.rih-p55-close:focus-visible,
.woocommerce-account button.rih-p55-close:focus-visible{
  outline: 2px solid rgba(96,165,250,0.55) !important;
  outline-offset: 2px !important;
}


/* =========================================================
   MOBILE FIXES
   ========================================================= */

@media (max-width: 640px){
  button.rih-p55-close,
  .woocommerce button.rih-p55-close,
  .woocommerce-account button.rih-p55-close{
    top: 14px !important;
    right: 14px !important;
  }

  .woocommerce-account img#rihP55ModalImg{
    padding-right: 14px;
    box-sizing: border-box;
  }
}
/* =========================================================
   GLOBAL BUTTON SYSTEM
   Used across entire site

   Base class:
   .rih-btn

   Variants:
   .rih-btn-primary
   .rih-btn-ghost

   IMPORTANT:
   - Do NOT redefine these classes in page CSS
   - Page CSS may only control layout spacing
   ========================================================= */

.rih-btn{
  appearance: none;
  display: inline-flex;
  align-items: center;
  justify-content: center;
  gap: 8px;

  padding: 12px 20px;
  border-radius: 12px;

  font-size: .95rem;
  font-weight: 600;
  line-height: 1.2;

  border: var(--rih-border-gold);
  background: transparent;
  color: var(--rih-text);

  text-decoration: none;
  cursor: pointer;

  transition: transform .15s ease, filter .15s ease, background .15s ease, border-color .15s ease, box-shadow .15s ease;
}

.rih-btn:hover{
  text-decoration: none;
}

.rih-btn-primary{
  background: linear-gradient(135deg, #2563EB 0%, #1D4ED8 100%);
  color: #ffffff;
}

.rih-btn-primary:hover{
  transform: translateY(-1px);
  filter: brightness(1.05);
  color: #ffffff;
}

.rih-btn-ghost{
  color: #2563EB;
  background: #ffffff;
  border: 1px solid rgba(37,99,235,0.25);
}

.rih-btn-ghost:hover{
  transform: translateY(-1px);
  border-color: rgba(37,99,235,0.45);
  background: rgba(37,99,235,0.08);
  color: #1D4ED8;
}

.rih-btn.is-active,
.rih-dl__chip.is-active {
  background: linear-gradient(135deg, #2563EB 0%, #1D4ED8 100%);
  color: #ffffff;
  border-color: rgba(37,99,235,0.24);
}

.rih-btn.is-active:hover,
.rih-dl__chip.is-active:hover {
  color: #ffffff !important;
}



/* =========================================================
   WOOCOMMERCE — CHECKOUT / ACCOUNT POLISH
   ========================================================= */

/* Checkout / order headings */
.woocommerce-page.woocommerce-checkout .woocommerce-order h2.woocommerce-column__title,
.woocommerce-page.woocommerce-checkout .woocommerce-order h2.woocommerce-order-details__title,
.woocommerce.woocommerce-checkout .woocommerce-order h2.woocommerce-column__title,
.woocommerce.woocommerce-checkout .woocommerce-order h2.woocommerce-order-details__title{
  background: #2563EB;
  color: #ffffff;
  padding: 1em;
  margin-bottom: 0;
  font-size: 1rem;
  border-width: 1px 1px 0 1px;
  border-style: solid;
  border-color: var(--ast-border-color);
}

/* My Account / address headings */
.woocommerce .woocommerce-Addresses .woocommerce-Address-title,
.woocommerce .woocommerce-Addresses .woocommerce-column__title,
.woocommerce .woocommerce-MyAccount-content .woocommerce-Address-title,
.woocommerce .woocommerce-MyAccount-content .woocommerce-column__title,
.woocommerce .woocommerce-customer-details .woocommerce-Address-title,
.woocommerce .woocommerce-customer-details .woocommerce-column__title,
.woocommerce-account .woocommerce-Addresses .woocommerce-Address-title,
.woocommerce-account .woocommerce-Addresses .woocommerce-column__title,
.woocommerce-account .woocommerce-MyAccount-content .woocommerce-Address-title,
.woocommerce-account .woocommerce-MyAccount-content .woocommerce-column__title,
.woocommerce-account .woocommerce-customer-details .woocommerce-Address-title,
.woocommerce-account .woocommerce-customer-details .woocommerce-column__title{
  display: flex;
  justify-content: space-between;
  align-items: center;
  gap: 16px;
  padding: 18px 20px;
  margin-bottom: 0;
  background: linear-gradient(180deg, #ffffff 0%, #f8fbff 100%);
  color: #0F172A;
  border: 1px solid rgba(37,99,235,0.14);
  border-bottom: 1px solid rgba(37,99,235,0.10);
  border-radius: 18px 18px 0 0;
  box-shadow: 0 18px 40px rgba(15,23,42,0.08);
}

.woocommerce-account .woocommerce-Addresses .woocommerce-Address,
.woocommerce-account .woocommerce-MyAccount-content .woocommerce-Address,
.woocommerce-account .woocommerce-customer-details address{
  background: #ffffff;
  border: 1px solid rgba(37,99,235,0.14);
  border-top: 0;
  border-radius: 0 0 18px 18px;
  padding: 22px 20px;
  box-shadow: 0 18px 40px rgba(15,23,42,0.08);
}

.woocommerce-account .woocommerce-Addresses address{
  color: #64748B;
  font-style: normal;
  line-height: 1.8;
  margin: 0;
}

.woocommerce .woocommerce-Addresses .woocommerce-Address-title h3,
.woocommerce .woocommerce-MyAccount-content .woocommerce-Address-title h3,
.woocommerce-account .woocommerce-Addresses .woocommerce-Address-title h3,
.woocommerce-account .woocommerce-MyAccount-content .woocommerce-Address-title h3{
  margin: 0;
  font-size: 18px;
  line-height: 1.25;
  color: #ffffff;
}

.woocommerce .woocommerce-Addresses .woocommerce-Address-title a,
.woocommerce .woocommerce-MyAccount-content .woocommerce-Address-title a,
.woocommerce-account .woocommerce-Addresses .woocommerce-Address-title a,
.woocommerce-account .woocommerce-MyAccount-content .woocommerce-Address-title a{
  color: #2563EB;
  font-weight: 500;
  text-decoration: none;
  font-size: 14px;
  line-height: 1.35;
  text-align: right;
  flex-shrink: 0;
  padding: 6px 10px;
  border-radius: 8px;
  background: transparent;
}

.woocommerce .woocommerce-Addresses .woocommerce-Address-title a:hover,
.woocommerce .woocommerce-MyAccount-content .woocommerce-Address-title a:hover,
.woocommerce-account .woocommerce-Addresses .woocommerce-Address-title a:hover,
.woocommerce-account .woocommerce-MyAccount-content .woocommerce-Address-title a:hover{
  color: #1D4ED8;
  background: #EFF6FF;
  text-decoration: none;
}


/* =========================================================
   WOOCOMMERCE — SHOP POLISH (STEP 1)
   ========================================================= */

/* Shop page background rhythm */
.woocommerce.archive ul.products,
.woocommerce-page ul.products{
  margin-top: 10px;
}

/* Product card shell */
.woocommerce ul.products li.product,
.woocommerce-page ul.products li.product{
  background: linear-gradient(180deg, #ffffff 0%, #f8fbff 100%);
  border: 1px solid rgba(37,99,235,0.14);
  border-radius: 18px;
  box-shadow: 0 18px 40px rgba(15,23,42,0.08);
  overflow: hidden;
  padding: 14px;
  transition: transform .18s ease, box-shadow .18s ease, border-color .18s ease;
}

/* Hover lift */
.woocommerce ul.products li.product:hover,
.woocommerce-page ul.products li.product:hover{
  transform: translateY(-3px);
  border-color: rgba(37,99,235,0.24);
  box-shadow: 0 26px 54px rgba(15,23,42,0.12);
}

/* Product image */
.woocommerce ul.products li.product a img,
.woocommerce-page ul.products li.product a img{
  border-radius: 14px;
  margin-bottom: 14px;
}

/* Product title */
.woocommerce ul.products li.product .woocommerce-loop-product__title,
.woocommerce-page ul.products li.product .woocommerce-loop-product__title{
  color: #0F172A;
  font-size: 1.05rem;
  line-height: 1.35;
  margin-bottom: 8px;
  padding: 0 2px;
}

/* Price */
.woocommerce ul.products li.product .price,
.woocommerce-page ul.products li.product .price{
  color: #1D4ED8;
  font-weight: 700;
  margin-bottom: 12px;
  padding: 0 2px;
}

/* Sale price old value */
.woocommerce ul.products li.product .price del,
.woocommerce-page ul.products li.product .price del{
  opacity: .55;
}

/* Add to cart button area */
.woocommerce ul.products li.product .button,
.woocommerce-page ul.products li.product .button{
  display: inline-flex;
  align-items: center;
  justify-content: center;
  width: 100%;

  min-height: 44px;
  padding: 12px 16px;
  border-radius: 12px;

  background: linear-gradient(135deg, #2563EB 0%, #1D4ED8 100%);
  color: #ffffff;
  border: none;

  font-weight: 600;
  text-align: center;
  transition: transform .15s ease, filter .15s ease;
}

.woocommerce ul.products li.product .button:hover,
.woocommerce-page ul.products li.product .button:hover{
  transform: translateY(-1px);
  filter: brightness(1.05);
  color: #ffffff;
  text-decoration: none;
}

/* =========================================================
   WOOCOMMERCE — SHOP TOP BAR POLISH (STEP 2)
   ========================================================= */

/* Top result count */
.woocommerce-result-count{
  color: var(--rih-muted);
  font-size: 0.9rem;
  margin-bottom: 12px;
}

/* Sorting dropdown */
.woocommerce-ordering select{
  appearance: none;
  background: #ffffff;
  border: 1px solid rgba(37,99,235,0.18);
  border-radius: 12px;

  padding: 10px 36px 10px 14px;
  font-size: 0.9rem;
  color: var(--rih-text);

  box-shadow: 0 8px 22px rgba(15,23,42,0.05);
  transition: border-color .15s ease, box-shadow .15s ease;
}

/* Hover + focus */
.woocommerce-ordering select:hover{
  border-color: rgba(37,99,235,0.35);
}

.woocommerce-ordering select:focus{
  outline: none;
  border-color: #2563EB;
  box-shadow: 0 0 0 2px rgba(96,165,250,0.25);
}

/* Align spacing */
.woocommerce .woocommerce-ordering{
  margin-bottom: 14px;
}

/* Fix gray wrapper behind sorting dropdown */
.woocommerce .woocommerce-ordering{
  background: transparent;
  border: none;
  padding: 0;
}

/* Remove any default field wrapper styling */
.woocommerce .woocommerce-ordering .orderby{
  background: #ffffff;
}

/* =========================================================
   WOOCOMMERCE — SHOP PAGINATION + EMPTY STATE (STEP 3)
   ========================================================= */

/* Pagination */
.woocommerce nav.woocommerce-pagination{
  margin-top: 28px;
  text-align: center;
}

.woocommerce nav.woocommerce-pagination ul{
  display: inline-flex;
  align-items: center;
  gap: 8px;
  padding: 8px;
  margin: 0;
  border: 1px solid rgba(37,99,235,0.14);
  border-radius: 16px;
  background: linear-gradient(180deg, #ffffff 0%, #f8fbff 100%);
  box-shadow: 0 8px 22px rgba(15,23,42,0.05);
}

.woocommerce nav.woocommerce-pagination ul li{
  border: none;
}

.woocommerce nav.woocommerce-pagination ul li a,
.woocommerce nav.woocommerce-pagination ul li span{
  display: inline-flex;
  align-items: center;
  justify-content: center;
  min-width: 40px;
  height: 40px;
  padding: 0 12px;
  border-radius: 12px;
  color: #2563EB;
  background: #ffffff;
  border: 1px solid rgba(37,99,235,0.16);
  font-weight: 600;
  transition: all .15s ease;
}

.woocommerce nav.woocommerce-pagination ul li a:hover{
  background: rgba(37,99,235,0.08);
  border-color: rgba(37,99,235,0.35);
  color: #1D4ED8;
  text-decoration: none;
}

.woocommerce nav.woocommerce-pagination ul li span.current{
  background: linear-gradient(135deg, #2563EB 0%, #1D4ED8 100%);
  color: #ffffff;
  border: none;
}

/* Empty shop / no products notice */
.woocommerce .woocommerce-info,
.woocommerce .woocommerce-no-products-found{
  background: linear-gradient(180deg, #ffffff 0%, #f8fbff 100%);
  border: 1px solid rgba(37,99,235,0.14);
  border-radius: 18px;
  box-shadow: 0 18px 40px rgba(15,23,42,0.08);
  color: #0F172A;
  padding: 18px 20px;
}

/* Remove default Woo icon if shown */
.woocommerce .woocommerce-info::before{
  display: none !important;
  content: none !important;
}

/* =========================================================
   REMOVE WOOCOMMERCE FILTER DRAWER (CONFLICT FIX)
   ========================================================= */

/* Hide filter toggle button */
.wc-block-product-filters__button,
button.wc-block-product-filters__button{
  display: none !important;
}

/* Hide close button */
.wc-block-product-filters__close{
  display: none !important;
}

/* =========================================================
   WOOCOMMERCE — SHOP FILTER SIDEBAR POLISH
   ========================================================= */

/* Whole sidebar card */
.woocommerce.archive .widget-area,
.woocommerce-shop .widget-area{
  background: linear-gradient(180deg, #ffffff 0%, #f8fbff 100%);
  border: 1px solid rgba(37,99,235,0.14);
  border-radius: 18px;
  box-shadow: 0 18px 40px rgba(15,23,42,0.08);
  padding: 18px;
}

/* Remove default widget boxes inside */
.woocommerce.archive .widget-area .widget,
.woocommerce-shop .widget-area .widget,
.woocommerce.archive .widget-area .wp-block-group,
.woocommerce-shop .widget-area .wp-block-group{
  background: transparent;
  border: none;
  box-shadow: none;
  padding: 0;
  margin-bottom: 18px;
}

/* Section headings */
.woocommerce.archive .widget-area h2,
.woocommerce-shop .widget-area h2,
.woocommerce.archive .widget-area h3,
.woocommerce-shop .widget-area h3,
.woocommerce.archive .widget-area .wc-block-product-filters__title,
.woocommerce-shop .widget-area .wc-block-product-filters__title{
  color: #0F172A;
  font-size: 1.15rem;
  line-height: 1.3;
  margin-bottom: 12px;
}

/* Filter group spacing */
.woocommerce.archive .widget-area .wc-block-components-filter-reset-button,
.woocommerce-shop .widget-area .wc-block-components-filter-reset-button{
  margin-bottom: 14px;
}

/* Active filter chips */
.woocommerce.archive .widget-area .wc-block-components-chip,
.woocommerce-shop .widget-area .wc-block-components-chip{
  border-radius: 12px;
  border: 1px solid rgba(37,99,235,0.20);
  background: #ffffff;
  color: #0F172A;
  box-shadow: 0 8px 22px rgba(15,23,42,0.05);
}

/* Clear filters button */
.woocommerce.archive .widget-area .wc-block-components-filter-reset-button,
.woocommerce-shop .widget-area .wc-block-components-filter-reset-button{
  display: inline-flex;
  align-items: center;
  justify-content: center;
  min-height: 40px;
  padding: 10px 14px;
  border-radius: 12px;
  border: 1px solid rgba(37,99,235,0.25);
  background: #ffffff;
  color: #2563EB;
  font-weight: 600;
  text-decoration: none;
}

.woocommerce.archive .widget-area .wc-block-components-filter-reset-button:hover,
.woocommerce-shop .widget-area .wc-block-components-filter-reset-button:hover{
  background: rgba(37,99,235,0.08);
  border-color: rgba(37,99,235,0.45);
  color: #1D4ED8;
  text-decoration: none;
}

/* Check list spacing */
.woocommerce.archive .widget-area .wc-block-checkbox-list,
.woocommerce-shop .widget-area .wc-block-checkbox-list{
  margin: 8px 0 0;
}

.woocommerce.archive .widget-area .wc-block-checkbox-list li,
.woocommerce-shop .widget-area .wc-block-checkbox-list li{
  margin-bottom: 8px;
}

/* Price inputs */
.woocommerce.archive .widget-area .wc-block-components-price-slider__range-input-wrapper,
.woocommerce-shop .widget-area .wc-block-components-price-slider__range-input-wrapper{
  margin-bottom: 12px;
}

.woocommerce.archive .widget-area .wc-block-components-price-slider__amount,
.woocommerce-shop .widget-area .wc-block-components-price-slider__amount{
  border: 1px solid rgba(37,99,235,0.18);
  border-radius: 10px;
  background: #ffffff;
  min-height: 40px;
  padding: 0 10px;
}


@media (max-width: 768px){
  .woocommerce.archive .content-area,
  .woocommerce-shop .content-area{
    display: flex;
    flex-direction: column;
  }

  .woocommerce.archive .site-main,
  .woocommerce-shop .site-main{
    order: 1;
  }

.woocommerce.archive #secondary.widget-area,
.woocommerce-shop #secondary.widget-area{
  order: 2;
  width: 100%;
  margin: 40px 0 8px !important;
  padding: 0 !important;
}

.woocommerce.archive .widget-area,
.woocommerce-shop .widget-area{
  width: 100%;
  margin: 0 !important;
  padding: 0 !important;
}

  .woocommerce.archive .widget-area .widget,
  .woocommerce-shop .widget-area .widget,
  .woocommerce.archive .widget-area .wp-block-group,
  .woocommerce-shop .widget-area .wp-block-group{
    margin-bottom: 0;
  }

  .woocommerce.archive .widget-area .wc-block-product-filters__button,
  .woocommerce-shop .widget-area .wc-block-product-filters__button,
  .woocommerce.archive .widget-area button,
  .woocommerce-shop .widget-area button{
    margin: 0;
  }

  .woocommerce.archive .woocommerce-breadcrumb,
  .woocommerce-shop .woocommerce-breadcrumb{
    margin-top: -40px;
  }
}

/* =========================================================
   WOOCOMMERCE — SHOP HEADER SECTION (STEP 4)
   ========================================================= */

/* Shop page title area */
.woocommerce .woocommerce-products-header{
  background: linear-gradient(180deg, #ffffff 0%, #f8fbff 100%);
  border: 1px solid rgba(37,99,235,0.14);
  border-radius: 18px;
  box-shadow: 0 18px 40px rgba(15,23,42,0.08);
  padding: 22px 24px;
  margin-bottom: 22px;
}

/* Shop title */
.woocommerce .woocommerce-products-header__title.page-title{
  margin: 0 0 6px;
  color: #0F172A;
  font-size: clamp(1.8rem, 2.4vw, 2.4rem);
  line-height: 1.15;
}

/* Optional archive description if used later */
.woocommerce .term-description,
.woocommerce .woocommerce-products-header__description{
  color: #64748B;
  margin-top: 8px;
}

/* Breadcrumb breathing room above header */
.woocommerce .woocommerce-breadcrumb{
  margin-bottom: 12px;
}

/* =========================================================
   WOOCOMMERCE — FEATURED BADGE (STEP 5)
   ========================================================= */

/* Featured badge */
.woocommerce ul.products li.product .ast-on-card-button.ast-onsale-card,
.woocommerce-page ul.products li.product .ast-on-card-button.ast-onsale-card{
  top: 12px;
  left: 12px;
  right: auto;

  display: inline-flex;
  align-items: center;
  justify-content: center;

  min-height: 30px;
  padding: 6px 10px;
  border-radius: 999px;

  background: linear-gradient(135deg, #2563EB 0%, #1D4ED8 100%);
  color: #ffffff;
  border: none;
  box-shadow: 0 10px 24px rgba(37,99,235,0.22);

  font-size: .78rem;
  font-weight: 700;
  line-height: 1;
  text-transform: none;
}

/* If Woo outputs the standard sale badge */
.woocommerce span.onsale,
.woocommerce-page span.onsale{
  top: 12px;
  left: 12px;
  right: auto;

  min-width: 0;
  min-height: 30px;
  padding: 6px 10px;
  border-radius: 999px;

  background: linear-gradient(135deg, #2563EB 0%, #1D4ED8 100%);
  color: #ffffff;
  border: none;
  box-shadow: 0 10px 24px rgba(37,99,235,0.22);

  font-size: .78rem;
  font-weight: 700;
  line-height: 1.1;
}

/* =========================================================
   WOOCOMMERCE — SORTING ROW IMPROVEMENTS (STEP 6)
   ========================================================= */

/* Wrap result count + sorting more cleanly */
.woocommerce .woocommerce-ordering,
.woocommerce .woocommerce-result-count{
  margin-top: 0;
}

.woocommerce .woocommerce-result-count{
  display: flex;
  align-items: center;
  min-height: 44px;
  padding: 0 2px;
  color: #64748B;
  font-size: 0.92rem;
}

/* Better dropdown proportions */
.woocommerce .woocommerce-ordering .orderby{
  min-height: 44px;
  min-width: 220px;
  padding-right: 42px;
  border-radius: 12px;
}

/* Slightly better spacing under header */
.woocommerce .woocommerce-notices-wrapper + .woocommerce-result-count,
.woocommerce .woocommerce-products-header + .woocommerce-result-count{
  margin-top: 4px;
}

/* Mobile stacking */
@media (max-width: 768px){
  .woocommerce .woocommerce-ordering,
  .woocommerce .woocommerce-result-count{
    float: none;
    width: 100%;
  }

  .woocommerce .woocommerce-ordering{
    margin-bottom: 14px;
  }

  .woocommerce .woocommerce-ordering .orderby{
    width: 100%;
    min-width: 0;
  }
}

/* =========================================================
   WOOCOMMERCE — FEATURED PRODUCT CARD POLISH (STEP 7)
   ========================================================= */

/* Slightly elevate featured products */
.woocommerce ul.products li.product.featured,
.woocommerce-page ul.products li.product.featured{
  border-color: rgba(37,99,235,0.24);
  box-shadow:
    0 18px 40px rgba(15,23,42,0.08),
    0 0 0 1px rgba(96,165,250,0.14);
}

/* Slightly richer hover for featured cards */
.woocommerce ul.products li.product.featured:hover,
.woocommerce-page ul.products li.product.featured:hover{
  border-color: rgba(37,99,235,0.34);
  box-shadow:
    0 26px 54px rgba(15,23,42,0.12),
    0 0 0 1px rgba(96,165,250,0.18);
}

/* Featured image area refinement */
.woocommerce ul.products li.product.featured a img,
.woocommerce-page ul.products li.product.featured a img{
  box-shadow: 0 10px 24px rgba(37,99,235,0.10);
}

/* Slight emphasis on featured title */
.woocommerce ul.products li.product.featured .woocommerce-loop-product__title,
.woocommerce-page ul.products li.product.featured .woocommerce-loop-product__title{
  color: #0B1220;
}

/* =========================================================
   WOOCOMMERCE — PRODUCT CARD EQUAL HEIGHT (ALIGN CTA)
   ========================================================= */

/* Make each product card a vertical layout */
.woocommerce ul.products li.product,
.woocommerce-page ul.products li.product{
  display: flex;
  flex-direction: column;
  height: 100%;
}

/* Ensure content stacks nicely */
.woocommerce ul.products li.product .astra-shop-summary-wrap{
  display: flex;
  flex-direction: column;
  flex-grow: 1;
}

/* Push Add to Cart to bottom */
.woocommerce ul.products li.product .button,
.woocommerce ul.products li.product .added_to_cart{
  margin-top: auto;
}

/* Optional: consistent spacing above button */
.woocommerce ul.products li.product .price{
  margin-bottom: 10px;
}

/* =========================================================
   WOOCOMMERCE — SHOP GRID LOCK
   Fix uneven row behavior / touching cards
   ========================================================= */

.woocommerce ul.products,
.woocommerce-page ul.products{
  display: grid !important;
  grid-template-columns: repeat(4, minmax(0, 1fr)) !important;
  gap: 22px !important;
  align-items: stretch !important;
  margin-top: 10px;
  padding: 0;
}

.woocommerce ul.products::before,
.woocommerce ul.products::after,
.woocommerce-page ul.products::before,
.woocommerce-page ul.products::after{
  content: none !important;
  display: none !important;
}

.woocommerce ul.products li.product,
.woocommerce-page ul.products li.product{
  width: 100% !important;
  margin: 0 !important;
  float: none !important;
  clear: none !important;
}

@media (max-width: 1024px){
  .woocommerce ul.products,
  .woocommerce-page ul.products{
    grid-template-columns: repeat(3, minmax(0, 1fr)) !important;
    gap: 20px !important;
  }
}

@media (max-width: 768px){
  .woocommerce ul.products,
  .woocommerce-page ul.products{
    grid-template-columns: repeat(2, minmax(0, 1fr)) !important;
    gap: 18px !important;
  }
}

@media (max-width: 520px){
  .woocommerce ul.products,
  .woocommerce-page ul.products{
    grid-template-columns: 1fr !important;
    gap: 16px !important;
  }
}

/* Make each product behave properly inside grid */
.woocommerce ul.products li.product,
.woocommerce-page ul.products li.product{
  display: flex !important;
  flex-direction: column;
  height: 100%;
}

.woocommerce ul.products li.product .woocommerce-loop-product__link{
  display: flex;
  flex-direction: column;
  height: 100%;
}

.woocommerce ul.products li.product .button{
  margin-top: auto;
}

/* =========================================================
   WOOCOMMERCE — SINGLE PRODUCT POLISH (STEP 1)
   ========================================================= */

/* Right summary panel */
.single-product div.product .summary.entry-summary{
  background: linear-gradient(180deg, #ffffff 0%, #f8fbff 100%);
  border: 1px solid rgba(37,99,235,0.14);
  border-radius: 18px;
  box-shadow: 0 18px 40px rgba(15,23,42,0.08);
  padding: 22px;
}

/* Title */
.single-product div.product .product_title{
  color: #0F172A;
  line-height: 1.15;
  margin-bottom: 10px;
}

/* Price */
.single-product div.product .summary .price{
  color: #1D4ED8;
  font-weight: 700;
  margin-bottom: 14px;
}

.single-product div.product .summary .price del{
  opacity: .55;
}

/* Short description */
.single-product div.product .woocommerce-product-details__short-description{
  color: #64748B;
  margin-bottom: 14px;
}

/* Stock line */
.single-product div.product .ast-stock-detail{
  padding: 10px 12px;
  border-radius: 12px;
  background: #F5F8FF;
  border: 1px solid rgba(37,99,235,0.10);
  margin-bottom: 16px;
}

/* Cart row spacing */
.single-product div.product form.cart{
  display: flex;
  align-items: center;
  gap: 12px;
  flex-wrap: wrap;
  margin-bottom: 14px;
}

/* Quantity */
.single-product div.product form.cart .quantity .qty{
  min-height: 44px;
  border: 1px solid rgba(37,99,235,0.18);
  border-radius: 12px;
  background: #ffffff;
}

/* Main add to cart button */
.single-product div.product .single_add_to_cart_button{
  min-height: 44px;
  border-radius: 12px;
  background: linear-gradient(135deg, #2563EB 0%, #1D4ED8 100%);
  color: #ffffff;
  border: none;
  font-weight: 600;
  transition: transform .15s ease, filter .15s ease;
}

.single-product div.product .single_add_to_cart_button:hover{
  transform: translateY(-1px);
  filter: brightness(1.05);
  color: #ffffff;
}

/* =========================================================
   RIH — Special Product Add To Cart UI
   ========================================================= */

.single-product div.product.rih-special-product-card form.cart{
  padding: 16px;
  border: 1px solid rgba(37,99,235,0.12);
  border-radius: 18px;
  background: linear-gradient(180deg, #ffffff 0%, #f8fbff 100%);
  box-shadow: 0 18px 40px rgba(15,23,42,0.06);
}

.single-product div.product.rih-special-product-card form.cart .quantity .qty{
  min-width: 88px;
}

.single-product div.product.rih-special-product-card form.cart .single_add_to_cart_button{
  flex: 1 1 220px;
}

@media (max-width: 768px){
  .single-product div.product.rih-special-product-card form.cart{
    padding: 14px;
    gap: 10px;
  }

  .single-product div.product.rih-special-product-card form.cart .quantity{
    width: 100%;
  }

  .single-product div.product.rih-special-product-card form.cart .quantity .qty{
    width: 100%;
    min-width: 0;
  }

  .single-product div.product.rih-special-product-card form.cart .single_add_to_cart_button{
    width: 100%;
    flex: 1 1 100%;
  }
}

/* =========================================================
   WOOCOMMERCE — SINGLE PRODUCT GALLERY POLISH (STEP 2)
   ========================================================= */

/* Main gallery shell */
.single-product div.product .woocommerce-product-gallery{
  background: linear-gradient(180deg, #ffffff 0%, #f8fbff 100%);
  border: 1px solid rgba(37,99,235,0.14);
  border-radius: 18px;
  box-shadow: 0 18px 40px rgba(15,23,42,0.08);
  padding: 18px;
  overflow: hidden;
}

/* Main gallery image */
.single-product div.product .woocommerce-product-gallery .woocommerce-product-gallery__wrapper img{
  border-radius: 14px;
  display: block;
}

/* Thumbnail row */
.single-product div.product .flex-control-thumbs{
  margin-top: 14px;
  display: flex;
  gap: 10px;
}

.single-product div.product .flex-control-thumbs li{
  margin: 0;
}

.single-product div.product .flex-control-thumbs img{
  border-radius: 12px;
  border: 1px solid rgba(37,99,235,0.12);
  background: #ffffff;
}

/* Zoom / trigger button */
.single-product div.product .woocommerce-product-gallery__trigger{
  top: 14px;
  right: 14px;
  border-radius: 12px;
  background: #ffffff;
  border: 1px solid rgba(37,99,235,0.18);
  box-shadow: 0 8px 22px rgba(15,23,42,0.05);
}

.single-product div.product .woocommerce-product-gallery__trigger:hover{
  background: #EEF4FF;
  border-color: rgba(37,99,235,0.40);
}

/* Single product sale badge spacing */
.single-product div.product span.onsale,
.single-product div.product .ast-on-card-button.ast-onsale-card{
  top: 14px;
  left: 14px;
}

/* =========================================================
   WOOCOMMERCE — SINGLE PRODUCT TABS + META (STEP 3)
   ========================================================= */

/* Product meta */
.single-product div.product .product_meta{
  margin-top: 14px;
  padding-top: 14px;
  border-top: 1px solid rgba(37,99,235,0.10);
  color: #64748B;
  font-size: 0.95rem;
}

.single-product div.product .product_meta > span{
  display: block;
  margin-bottom: 8px;
}

.single-product div.product .product_meta a{
  color: #2563EB;
}

/* Tabs wrapper */
.single-product div.product .woocommerce-tabs{
  margin-top: 28px;
  background: linear-gradient(180deg, #ffffff 0%, #f8fbff 100%);
  border: 1px solid rgba(37,99,235,0.14);
  border-radius: 18px;
  box-shadow: 0 18px 40px rgba(15,23,42,0.08);
  padding: 20px;
}

/* Tab nav */
.single-product div.product .woocommerce-tabs ul.tabs{
  margin: 0 0 18px;
  padding: 0;
  border: none;
  display: flex;
  gap: 10px;
  flex-wrap: wrap;
}

.single-product div.product .woocommerce-tabs ul.tabs::before,
.single-product div.product .woocommerce-tabs ul.tabs::after{
  display: none !important;
}

.single-product div.product .woocommerce-tabs ul.tabs li{
  margin: 0;
  padding: 0;
  border: none;
  background: transparent;
  border-radius: 12px;
}

.single-product div.product .woocommerce-tabs ul.tabs li::before,
.single-product div.product .woocommerce-tabs ul.tabs li::after{
  display: none !important;
}

.single-product div.product .woocommerce-tabs ul.tabs li a{
  display: inline-flex;
  align-items: center;
  justify-content: center;
  min-height: 42px;
  padding: 10px 14px;
  border-radius: 12px;
  background: #ffffff;
  border: 1px solid rgba(37,99,235,0.18);
  color: #2563EB;
  font-weight: 600;
  text-decoration: none;
}

.single-product div.product .woocommerce-tabs ul.tabs li.active a,
.single-product div.product .woocommerce-tabs ul.tabs li a:hover{
  background: rgba(37,99,235,0.08);
  border-color: rgba(37,99,235,0.40);
  color: #1D4ED8;
}

/* Tab panels */
.single-product div.product .woocommerce-tabs .woocommerce-Tabs-panel{
  margin: 0;
  padding: 18px;
  border-radius: 14px;
  background: #ffffff;
  border: 1px solid rgba(37,99,235,0.10);
}

/* Additional info table */
.single-product div.product .woocommerce-product-attributes{
  border: 1px solid rgba(37,99,235,0.10);
  border-radius: 12px;
  overflow: hidden;
  background: #ffffff;
}

.single-product div.product .woocommerce-product-attributes th{
  background: #F5F8FF;
  color: #0F172A;
  font-weight: 600;
}

.single-product div.product .woocommerce-product-attributes th,
.single-product div.product .woocommerce-product-attributes td{
  padding: 12px 14px;
  border-color: #EAF2FF;
}


/* =========================================================
   WOOCOMMERCE — SINGLE PRODUCT RELATED PRODUCTS (STEP 4)
   ========================================================= */

/* Related section wrapper */
.single-product .related.products{
  margin-top: 34px;
}

/* Related heading */
.single-product .related.products > h2{
  margin: 0 0 18px;
  color: #0F172A;
  font-size: clamp(1.35rem, 2vw, 1.8rem);
  line-height: 1.15;
}

/* Give related cards a little breathing room under heading */
.single-product .related.products ul.products{
  margin-top: 0;
}

/* Keep related product cards visually consistent with shop */
.single-product .related.products ul.products li.product{
  background: linear-gradient(180deg, #ffffff 0%, #f8fbff 100%);
  border: 1px solid rgba(37,99,235,0.14);
  border-radius: 18px;
  box-shadow: 0 18px 40px rgba(15,23,42,0.08);
  overflow: hidden;
  padding: 14px;
  transition: transform .18s ease, box-shadow .18s ease, border-color .18s ease;
}

.single-product .related.products ul.products li.product:hover{
  transform: translateY(-3px);
  border-color: rgba(37,99,235,0.24);
  box-shadow: 0 26px 54px rgba(15,23,42,0.12);
}

/* Related images */
.single-product .related.products ul.products li.product a img{
  border-radius: 14px;
  margin-bottom: 14px;
}

/* Related titles */
.single-product .related.products ul.products li.product .woocommerce-loop-product__title{
  color: #0F172A;
  font-size: 1.05rem;
  line-height: 1.35;
  margin-bottom: 8px;
  padding: 0 2px;
}

/* Related price */
.single-product .related.products ul.products li.product .price{
  color: #1D4ED8;
  font-weight: 700;
  margin-bottom: 10px;
  padding: 0 2px;
}

/* Align CTA in related cards too */
.single-product .related.products ul.products li.product{
  display: flex;
  flex-direction: column;
  height: 100%;
}

.single-product .related.products ul.products li.product .astra-shop-summary-wrap{
  display: flex;
  flex-direction: column;
  flex-grow: 1;
}

.single-product .related.products ul.products li.product .button,
.single-product .related.products ul.products li.product .added_to_cart{
  margin-top: auto;
}

/* Related add to cart button */
.single-product .related.products ul.products li.product .button{
  display: inline-flex;
  align-items: center;
  justify-content: center;
  width: 100%;
  min-height: 44px;
  padding: 12px 16px;
  border-radius: 12px;
  background: linear-gradient(135deg, #2563EB 0%, #1D4ED8 100%);
  color: #ffffff;
  border: none;
  font-weight: 600;
  text-align: center;
  transition: transform .15s ease, filter .15s ease;
}

.single-product .related.products ul.products li.product .button:hover{
  transform: translateY(-1px);
  filter: brightness(1.05);
  color: #ffffff;
  text-decoration: none;
}

/* =========================================================
   RIH DIL — CART PAGE TRUE CONTAINER MATCH (STRONG OVERRIDE)
   ========================================================= */

.entry-content[data-ast-blocks-layout="true"] > .wp-block-columns.woo-cart-main-column{
  max-width: var(--rihdil-container) !important;
  margin: 30px 0 0 !important;
  padding-left: 0px !important;
  padding-right: 0px !important;
  display: block !important;
  width: 100% !important;
  box-sizing: border-box !important;
}

.entry-content[data-ast-blocks-layout="true"] > .wp-block-columns.woo-cart-main-column.is-layout-flex{
  display: block !important;
  flex-wrap: nowrap !important;
  gap: 0 !important;
}

.entry-content[data-ast-blocks-layout="true"] > .wp-block-columns.woo-cart-main-column > .wp-block-column{
  flex-basis: auto !important;
  flex-grow: 0 !important;
  width: 100% !important;
  margin: 0 !important;
}

.entry-content[data-ast-blocks-layout="true"] > .wp-block-columns.woo-cart-main-column > .wp-block-column > .woocommerce{
  width: 100% !important;
  max-width: 100% !important;
  margin: 0 !important;
}

@media (max-width: 768px){
  .entry-content[data-ast-blocks-layout="true"] > .wp-block-columns.woo-cart-main-column{
    margin: 0px !important;
    padding-left: 0px !important;
    padding-right: 0px !important;
  }
}
/* =========================================================
   CART PAGE — PANEL POLISH (STEP 1)
   ========================================================= */

/* Cart totals box → premium panel */
.woocommerce-cart .cart_totals{
  background: linear-gradient(180deg, #ffffff 0%, #f8fbff 100%);
  border: 1px solid rgba(37,99,235,0.14);
 border-radius: 10px;
  box-shadow: 0 18px 40px rgba(15,23,42,0.08);
  padding: 20px;
}

/* Title */
.woocommerce-cart .cart_totals h2{
  font-size: 1.25rem;
  margin-bottom: 12px;
}

/* Rows spacing */
.woocommerce-cart .cart_totals table{
  margin-bottom: 14px;
}

/* Divider refinement */
.woocommerce-cart .cart_totals table tr{
  border-bottom: 1px solid rgba(37,99,235,0.10);
}

.woocommerce-cart .cart_totals table tr:last-child{
  border-bottom: none;
}

/* Total row emphasis */
.woocommerce-cart .order-total td,
.woocommerce-cart .order-total th{
  font-weight: 700;
  font-size: 1.05rem;
}

/* =========================================================
   FINAL — CART / WOO RADIUS MATCH
   ========================================================= */

.woocommerce-js .woocommerce table.shop_table{
  border-radius: 10px !important;
  overflow: hidden;
  margin-top: 0 !important;
}

/* keep totals consistent too */
.woocommerce-js .cart_totals table.shop_table{
  border-radius: 10px !important;
}

/* optional: match any checkout/customer blocks */
.woocommerce-js #customer_details{
  border-radius: 5px !important;
}

/* =========================================================
   CART PAGE — BUTTON SYSTEM (STEP 2)
   ========================================================= */

/* Apply coupon button */
.woocommerce-cart .coupon button.button{
  background: #ffffff;
  color: #2563EB;
  border: 1px solid rgba(37,99,235,0.25);
  border-radius: 12px;
  padding: 10px 16px;
  font-weight: 600;
  transition: all .15s ease;
}

.woocommerce-cart .coupon button.button:hover{
  background: rgba(37,99,235,0.08);
  border-color: rgba(37,99,235,0.45);
  color: #1D4ED8;
  transform: translateY(-1px);
}

/* Update cart button */
.woocommerce-cart button[name="update_cart"]{
  background: #ffffff;
  color: #2563EB;
  border: 1px solid rgba(37,99,235,0.25);
  border-radius: 12px;
  padding: 10px 16px;
  font-weight: 600;
  transition: all .15s ease;
}

.woocommerce-cart button[name="update_cart"]:hover{
  background: rgba(37,99,235,0.08);
  border-color: rgba(37,99,235,0.45);
  color: #1D4ED8;
  transform: translateY(-1px);
}

/* Proceed to checkout button */
.woocommerce-cart .checkout-button{
  display: block;
  width: 100%;
  text-align: center;

  background: linear-gradient(135deg, #2563EB 0%, #1D4ED8 100%);
  color: #ffffff;
  border: none;
  border-radius: 12px;

  padding: 14px;
  font-weight: 600;

  transition: transform .15s ease, filter .15s ease;
}

.woocommerce-cart .checkout-button:hover{
  transform: translateY(-1px);
  filter: brightness(1.05);
  color: #ffffff;
}



/* =========================================================
   CART PAGE — TABLE POLISH (STEP 3)
   ========================================================= */

.woocommerce-cart .woocommerce-cart-form{
  margin: 0 0 30px;
}

.woocommerce-cart table.shop_table{
  width: 100%;
  border-collapse: separate;
  border-spacing: 0;
  background: linear-gradient(180deg, #ffffff 0%, #fbfdff 100%);
  border: 1px solid rgba(37,99,235,0.14);
  border-radius: 18px;
  overflow: hidden;
  box-shadow: 0 18px 40px rgba(15,23,42,0.08);
}

/* Header row */
.woocommerce-cart table.shop_table thead th{
  background: #F5F8FF;
  color: #0F172A;
  font-weight: 700;
  border-bottom: 1px solid rgba(37,99,235,0.12);
  padding: 18px 20px;
}

/* Body cells */
.woocommerce-cart table.shop_table td{
  padding: 18px 20px;
  border-top: 1px solid rgba(37,99,235,0.10);
  vertical-align: middle;
  color: #64748B;
  background: #ffffff;
}

.woocommerce-cart table.shop_table tbody tr:first-child td{
  border-top: 0;
}

/* Product cell */
.woocommerce-cart table.shop_table td.product-name{
  color: #0F172A;
  font-size: 1rem;
  line-height: 1.55;
}

.woocommerce-cart table.shop_table td.product-name a{
  color: #0F172A;
  font-weight: 700;
  text-decoration: none;
}

.woocommerce-cart table.shop_table td.product-name a:hover{
  color: #1D4ED8;
}

.woocommerce-cart table.shop_table td.product-name .variation{
  margin: 8px 0 0;
}

.woocommerce-cart table.shop_table td.product-name .variation dt{
  color: #64748B;
  font-weight: 600;
}

.woocommerce-cart table.shop_table td.product-name .variation dd,
.woocommerce-cart table.shop_table td.product-name .variation dd p{
  color: #475569;
}

/* Price + subtotal */
.woocommerce-cart table.shop_table td.product-price,
.woocommerce-cart table.shop_table td.product-subtotal{
  color: #0F172A;
  font-weight: 600;
}

/* Thumbnail */
.woocommerce-cart table.shop_table td.product-thumbnail img,
.woocommerce-cart table.shop_table td.product-thumbnail .rih-cart-thumb{
  width: 92px;
  height: 92px;
  object-fit: cover;
  border-radius: 14px;
  display: block;
  background: #F8FBFF;
  border: 1px solid rgba(37,99,235,0.12);
  box-shadow: 0 8px 22px rgba(15,23,42,0.05);
}

/* Remove button */
.woocommerce-cart a.remove{
  width: 34px;
  height: 34px;
  border-radius: 999px;
  display: inline-flex;
  align-items: center;
  justify-content: center;
  color: #64748B !important;
  background: #ffffff;
  border: 1px solid rgba(37,99,235,0.16);
  transition: all .15s ease;
}

.woocommerce-cart a.remove:hover{
  color: #1D4ED8 !important;
  background: rgba(37,99,235,0.08);
  border-color: rgba(37,99,235,0.35);
}

/* Quantity input */
.woocommerce-cart .quantity .qty{
  min-height: 42px;
  min-width: 84px;
  border: 1px solid rgba(37,99,235,0.18);
  border-radius: 12px;
  background: #ffffff;
  color: #0F172A;
  padding: 0 12px;
}

/* Coupon / action row */
.woocommerce-cart table.shop_table td.actions{
  background: #FCFDFF;
  padding-top: 20px;
  padding-bottom: 20px;
}

.woocommerce-cart .coupon{
  display: flex;
  align-items: center;
  gap: 12px;
  flex-wrap: wrap;
}

.woocommerce-cart .coupon #coupon_code{
  min-height: 44px;
  min-width: 220px;
  border: 1px solid rgba(37,99,235,0.18);
  border-radius: 12px;
  background: #ffffff;
  padding: 0 14px;
  color: #0F172A;
}

/* =========================================================
   CART PAGE — FINAL LAYOUT POLISH (STEP 4)
   ========================================================= */

.woocommerce-cart .cart-collaterals{
  margin-top: 28px;
  display: flex;
  justify-content: flex-end;
}

.woocommerce-cart .cart_totals{
  max-width: 460px;
  width: 100%;
  margin-left: auto;
}

.woocommerce-cart .cart_totals h2{
  margin: 0 0 14px;
  color: #0F172A;
  font-size: 1.5rem;
  line-height: 1.15;
}

.woocommerce-cart .cart_totals table.shop_table{
  width: 100%;
  background: #ffffff;
  border: 1px solid rgba(37,99,235,0.10);
  border-radius: 14px;
  overflow: hidden;
  box-shadow: none;
}

.woocommerce-cart .cart_totals table.shop_table th,
.woocommerce-cart .cart_totals table.shop_table td{
  padding: 16px 18px;
  border-top: 1px solid #EAF2FF;
  color: #64748B;
  background: #ffffff;
}

.woocommerce-cart .cart_totals table.shop_table tbody tr:first-child th,
.woocommerce-cart .cart_totals table.shop_table tbody tr:first-child td{
  border-top: 0;
}

.woocommerce-cart .cart_totals .order-total th,
.woocommerce-cart .cart_totals .order-total td{
  background: #EEF4FF;
  color: #1D4ED8;
  font-weight: 700;
}

.woocommerce-cart .cart_totals .woocommerce-shipping-destination{
  margin: 10px 0 0;
  line-height: 1.65;
}

.woocommerce-cart .cart_totals .shipping-calculator-button{
  display: inline-block;
  margin-top: 10px;
}

/* Mobile */
@media (max-width: 768px){
  .woocommerce-cart table.shop_table thead{
    display: none;
  }

  .woocommerce-cart table.shop_table td{
    padding: 16px;
  }

  .woocommerce-cart table.shop_table td.product-thumbnail img,
  .woocommerce-cart table.shop_table td.product-thumbnail .rih-cart-thumb{
    width: 78px;
    height: 78px;
    border-radius: 12px;
  }

  .woocommerce-cart .coupon{
    gap: 10px;
  }

  .woocommerce-cart .coupon #coupon_code{
    width: 100%;
    min-width: 0;
  }

  .woocommerce-cart .coupon button.button,
  .woocommerce-cart button[name="update_cart"]{
    width: 100%;
  }

  .woocommerce-cart .cart-collaterals{
    margin-top: 22px;
    display: block;
  }

  .woocommerce-cart .cart_totals{
    max-width: 100%;
    margin-left: 0;
  }
}

/* =========================================================
   EMPTY CART — NOTICE PANEL (STEP 1)
   ========================================================= */

.woocommerce-cart .cart-empty,
.woocommerce-cart .woocommerce-info{
  background: linear-gradient(180deg, #ffffff 0%, #f8fbff 100%);
  border: 1px solid rgba(37,99,235,0.14);
  border-radius: 18px;
  box-shadow: 0 18px 40px rgba(15,23,42,0.08);
  color: #0F172A;
  padding: 18px 20px;
}

.woocommerce-cart .cart-empty{
  font-size: 1.05rem;
  font-weight: 600;
}

/* Remove default Woo notice icon */
.woocommerce-cart .woocommerce-info::before,
.woocommerce-cart .cart-empty::before{
  display: none !important;
  content: none !important;
}

/* =========================================================
   EMPTY CART — BUTTON POLISH (STEP 3)
   ========================================================= */

.woocommerce-cart .return-to-shop a.button{
  display: inline-flex;
  align-items: center;
  justify-content: center;

  background: linear-gradient(135deg, #2563EB 0%, #1D4ED8 100%);
  color: #ffffff;

  border: none;
  border-radius: 12px;

  padding: 12px 18px;
  font-weight: 600;

  transition: transform .15s ease, filter .15s ease;
}

.woocommerce-cart .return-to-shop a.button:hover{
  transform: translateY(-1px);
  filter: brightness(1.05);
  color: #ffffff;
}

/* =========================================================
   CHECKOUT — Prevent "Your order" totals overflow
   ========================================================= */

.woocommerce-checkout #order_review,
.woocommerce-checkout .woocommerce-checkout-review-order{
  max-width: 100%;
  overflow-x: hidden;
}

.woocommerce-checkout .woocommerce-checkout-review-order-table{
  width: 100%;
  max-width: 100%;
  table-layout: fixed;
}

.woocommerce-checkout .woocommerce-checkout-review-order-table th,
.woocommerce-checkout .woocommerce-checkout-review-order-table td{
  overflow-wrap: anywhere;
  word-break: break-word;
}

.woocommerce-checkout .woocommerce-checkout-review-order-table td.product-total,
.woocommerce-checkout .woocommerce-checkout-review-order-table th.product-total,
.woocommerce-checkout .woocommerce-checkout-review-order-table tfoot td{
  text-align: right;
  white-space: nowrap;
  overflow: hidden;
  text-overflow: ellipsis;
}


/* =========================================================
   MY ACCOUNT — LOGGED-IN COMPONENTS: PAYMENT METHODS
   Logged-in account UI only
   ========================================================= */

.woocommerce-account table.woocommerce-MyAccount-paymentMethods,
.woocommerce-account table.account-payment-methods-table,
.woocommerce-account table.shop_table.account-payment-methods-table{
  width: 100%;
  border-collapse: separate;
  border-spacing: 0;
  background: #FFFFFF;
  border: 1px solid rgba(37,99,235,0.12);
  border-radius: 16px;
  overflow: hidden;
  box-shadow: 0 18px 40px rgba(15,23,42,0.08);
}

.woocommerce-account table.woocommerce-MyAccount-paymentMethods thead th,
.woocommerce-account table.account-payment-methods-table thead th,
.woocommerce-account table.shop_table.account-payment-methods-table thead th{
  background: #F5F8FF;
  color: #64748B;
  font-weight: 600;
  font-size: 13px;
  text-transform: uppercase;
  letter-spacing: .04em;
  padding: 14px 16px;
  border-bottom: 1px solid #EAF2FF;
}

.woocommerce-account table.woocommerce-MyAccount-paymentMethods tbody td,
.woocommerce-account table.account-payment-methods-table tbody td,
.woocommerce-account table.shop_table.account-payment-methods-table tbody td{
  padding: 18px 16px;
  color: #64748B;
  border-top: 1px solid #EAF2FF;
  vertical-align: middle;
  background: #FFFFFF;
}

.woocommerce-account table.woocommerce-MyAccount-paymentMethods tbody tr:first-child td,
.woocommerce-account table.account-payment-methods-table tbody tr:first-child td,
.woocommerce-account table.shop_table.account-payment-methods-table tbody tr:first-child td{
  border-top: 0;
}

.woocommerce-account table.woocommerce-MyAccount-paymentMethods td.payment-method-method,
.woocommerce-account table.account-payment-methods-table td.payment-method-method,
.woocommerce-account table.shop_table.account-payment-methods-table td.payment-method-method{
  color: #0F172A;
}

.woocommerce-account table.woocommerce-MyAccount-paymentMethods td.payment-method-expires,
.woocommerce-account table.account-payment-methods-table td.payment-method-expires,
.woocommerce-account table.shop_table.account-payment-methods-table td.payment-method-expires{
  color: #64748B;
  white-space: nowrap;
  width: 140px;
}

.woocommerce-account table.woocommerce-MyAccount-paymentMethods td.payment-method-actions,
.woocommerce-account table.account-payment-methods-table td.payment-method-actions,
.woocommerce-account table.shop_table.account-payment-methods-table td.payment-method-actions{
  white-space: nowrap;
  text-align: right;
  width: 180px;
}

.woocommerce-account table.woocommerce-MyAccount-paymentMethods .button,
.woocommerce-account table.account-payment-methods-table .button,
.woocommerce-account table.shop_table.account-payment-methods-table .button{
  margin: 0;
}

.woocommerce-account .woocommerce-MyAccount-content > a.button[href*="add-payment-method"]{
  margin-top: 20px;
  display: inline-flex;
  align-items: center;
  justify-content: center;
}

/* =========================================================
   RIH DIL — MY ACCOUNT: ADDRESS HEADER POLISH
   ========================================================= */

/* Title (Billing / Shipping) */
.woocommerce-account .woocommerce-Address-title h3{
  margin: 0;
  font-size: 1.2rem;
  line-height: 1.25;
  text-align: left;
  color: #0F172A;
}

/* Edit link */
.woocommerce-account .woocommerce-Address-title a{
  font-size: 14px;
  font-weight: 500;
  color: #2563EB;
  text-decoration: none;
  padding: 6px 10px;
  border-radius: 8px;
  background: transparent;
  transition: background .15s ease, color .15s ease;
}

/* Hover */
.woocommerce-account .woocommerce-Address-title a:hover{
  background: #EFF6FF;
  color: #1D4ED8;
}

/* =========================================================
   MY ACCOUNT — LOGGED-IN COMPONENTS: ACCOUNT DETAILS
   Logged-in account UI only
   ========================================================= */

.woocommerce-account .woocommerce-EditAccountForm fieldset{
  margin-top: 28px;
  padding-top: 18px;
  border: 0;
  border-top: 1px solid #EAF2FF;
}

.woocommerce-account .woocommerce-EditAccountForm fieldset legend{
  padding: 0;
  margin: 0 0 16px;
  color: #64748B;
  font-size: 14px;
  font-weight: 600;
}

.woocommerce-account .woocommerce-EditAccountForm .password-input{
  position: relative;
}

.woocommerce-account .woocommerce-EditAccountForm .show-password-input{
  color: #64748B;
  transition: color .15s ease;
}

.woocommerce-account .woocommerce-EditAccountForm .show-password-input:hover{
  color: #2563EB;
}

.woocommerce-account .woocommerce-EditAccountForm button[type="submit"]{
  margin-top: 10px;
}

/* =========================================================
   RIH DIL — MY ACCOUNT: ACCOUNT DETAILS PANEL POLISH
   ========================================================= */

.woocommerce-account .woocommerce-EditAccountForm{
  background: linear-gradient(180deg, #ffffff 0%, #f8fbff 100%);
  border: 1px solid rgba(37,99,235,0.14);
  border-radius: 18px;
  box-shadow: 0 18px 40px rgba(15,23,42,0.08);
  padding: 28px;
}

.woocommerce-account .woocommerce-EditAccountForm p{
  margin-bottom: 18px;
}

.woocommerce-account .woocommerce-EditAccountForm .woocommerce-form-row{
  margin-bottom: 18px;
}

.woocommerce-account .woocommerce-EditAccountForm em{
  display: block;
  margin-top: 8px;
  color: #64748B;
  font-style: normal;
  line-height: 1.6;
}

.woocommerce-account .woocommerce-EditAccountForm fieldset{
  margin-top: 30px;
  padding-top: 22px;
  border-top: 1px solid #EAF2FF;
}

.woocommerce-account .woocommerce-EditAccountForm button[type="submit"]{
  margin-top: 8px;
}

/* =========================================================
   RIH DIL — MY ACCOUNT: ACCOUNT DETAILS INPUT POLISH
   ========================================================= */

.woocommerce-account .woocommerce-EditAccountForm input[type="text"],
.woocommerce-account .woocommerce-EditAccountForm input[type="email"],
.woocommerce-account .woocommerce-EditAccountForm input[type="password"]{
  min-height: 52px;
  padding: 0 16px;
  border-radius: 14px;
  border: 1px solid rgba(37,99,235,0.14);
  background: #F8FBFF;
  color: #0F172A;
  box-shadow: none;
}

.woocommerce-account .woocommerce-EditAccountForm input[type="text"]:focus,
.woocommerce-account .woocommerce-EditAccountForm input[type="email"]:focus,
.woocommerce-account .woocommerce-EditAccountForm input[type="password"]:focus{
  outline: none;
  border-color: rgba(37,99,235,0.38);
  background: #ffffff;
  box-shadow: 0 0 0 3px rgba(96,165,250,0.14);
}

.woocommerce-account .woocommerce-EditAccountForm .password-input{
  width: 100%;
}

.woocommerce-account .woocommerce-EditAccountForm .show-password-input{
  right: 14px;
  color: #64748B;
}

.woocommerce-account .woocommerce-EditAccountForm button[type="submit"]{
  margin-top: 12px;
  min-height: 48px;
  padding: 0 18px;
  border-radius: 12px;
}
/* =========================================================
   RIH DIL — CHECKOUT ORDER REVIEW
   ========================================================= */

.woocommerce-checkout #order_review_heading{
  margin: 0 0 16px;
  color: #0F172A;
}

.woocommerce-checkout #order_review{
  background: linear-gradient(180deg, #ffffff 0%, #f8fbff 100%);
  border: 1px solid rgba(37,99,235,0.14);
  border-radius: 16px;
  box-shadow: 0 18px 40px rgba(15,23,42,0.08);
  padding: 18px;
}

/* =========================================================
   RIH DIL — CHECKOUT PAYMENT BOX
   ========================================================= */

.woocommerce-checkout #payment{
  background: #FFFFFF;
  border: 1px solid rgba(37,99,235,0.14);
  border-radius: 14px;
  padding: 16px;
  margin-top: 16px;
  box-shadow: 0 10px 24px rgba(15,23,42,0.06);
}

.woocommerce-checkout #payment ul.payment_methods{
  margin: 0;
  padding: 0;
  list-style: none;
}

.woocommerce-checkout #payment ul.payment_methods li{
  margin-bottom: 12px;
}

.woocommerce-checkout #payment div.payment_box{
  background: #F8FBFF;
  border: 1px solid #EAF2FF;
  border-radius: 12px;
  padding: 14px;
  margin-top: 10px;
}

.woocommerce-checkout #payment label{
  color: #0F172A;
  font-weight: 500;
}

.woocommerce-checkout #payment .place-order{
  margin-top: 14px;
  margin-bottom: 0;
  padding-bottom: 0;
}

.woocommerce-checkout #payment{
  margin-bottom: 0;
}

.woocommerce-checkout #payment .form-row.place-order{
  margin-bottom: 0;
}

.woocommerce-checkout #payment .woocommerce-terms-and-conditions-wrapper{
  margin-bottom: 12px;
}

.woocommerce-checkout #payment #place_order{
  margin-bottom: 0;
}

.woocommerce-checkout #payment button#place_order{
  width: 100%;
  border-radius: 10px;
  font-size: 16px;
  padding: 14px;
}

.woocommerce-checkout .woocommerce-checkout-review-order-table{
  margin: 0;
  background: transparent;
}

.woocommerce-checkout .woocommerce-checkout-review-order-table th{
  background: #F5F8FF;
  color: #0F172A;
  font-weight: 600;
  padding: 14px 16px;
  border-bottom: 1px solid #EAF2FF;
}

.woocommerce-checkout .woocommerce-checkout-review-order-table td{
  padding: 14px 16px;
  color: #64748B;
  border-top: 1px solid #EAF2FF;
  background: transparent;
}

.woocommerce-checkout .woocommerce-checkout-review-order-table tfoot th,
.woocommerce-checkout .woocommerce-checkout-review-order-table tfoot td{
  color: #0F172A;
  font-weight: 600;
  padding: 16px;
  background: #FFFFFF;
}

.woocommerce-checkout .woocommerce-checkout-review-order-table tfoot tr{
  background: #FFFFFF;
}

.woocommerce-checkout .woocommerce-checkout-review-order-table tfoot tr.order-total th,
.woocommerce-checkout .woocommerce-checkout-review-order-table tfoot tr.order-total td{
  background: #EEF4FF;
  font-size: 16px;
  font-weight: 700;
  color: #1D4ED8;
}

.woocommerce-checkout .woocommerce-checkout-review-order-table .product-name strong,
.woocommerce-checkout .woocommerce-checkout-review-order-table .product-total,
.woocommerce-checkout .woocommerce-checkout-review-order-table .order-total td{
  color: #0F172A;
}

/* =========================================================
   MY ACCOUNT — LOGGED-IN COMPONENTS: ORDERS TABLE
   Logged-in account UI only
   ========================================================= */

.woocommerce-account .woocommerce-orders-table{
  width: 100%;
  border-collapse: separate;
  border-spacing: 0;
  background: #FFFFFF;
  border: 1px solid rgba(37,99,235,0.12);
  border-radius: 12px;
  overflow: hidden;
  box-shadow: 0 8px 22px rgba(15,23,42,0.04);
}

.woocommerce-account .woocommerce-orders-table thead th{
  background: #F5F8FF;
  color: #0F172A;
  font-weight: 600;
  padding: 14px 16px;
  border-bottom: 1px solid #EAF2FF;
}

.woocommerce-account .woocommerce-orders-table tbody td{
  padding: 18px 16px;
  color: #64748B;
  border-top: 1px solid #EAF2FF;
  vertical-align: middle;
  background: #FFFFFF;
}

.woocommerce-account .woocommerce-orders-table tbody tr:first-child td{
  border-top: 0;
}

.woocommerce-account .woocommerce-orders-table a{
  color: #2563EB;
}

.woocommerce-account .woocommerce-orders-table a:hover{
  color: #1D4ED8;
}

.woocommerce-account .woocommerce-orders-table td.woocommerce-orders-table__cell-order-number,
.woocommerce-account .woocommerce-orders-table td.woocommerce-orders-table__cell-order-total,
.woocommerce-account .woocommerce-orders-table td.woocommerce-orders-table__cell-order-status{
  color: #0F172A;
}

.woocommerce-account .woocommerce-orders-table td.woocommerce-orders-table__cell-order-actions{
  min-width: 170px;
  text-align: left;
}

.woocommerce-account .woocommerce-orders-table td.woocommerce-orders-table__cell-order-actions strong{
  display: block;
  margin-bottom: 8px;
  color: #0F172A;
  font-size: 15px;
  line-height: 1.3;
}

.woocommerce-account .woocommerce-orders-table td.woocommerce-orders-table__cell-order-actions img{
  width: 82px;
  height: 82px;
  object-fit: cover;
  border-radius: 12px;
  display: block;
  border: 1px solid rgba(37,99,235,0.14);
  box-shadow: 0 4px 12px rgba(15,23,42,0.05);
}

/* ========================================
   RIH DIL — Orders Table Polish (Step 1)
   ======================================== */

.woocommerce-account table.woocommerce-orders-table{
  width: 100%;
  border-collapse: separate;
  border-spacing: 0 10px;
}

/* Header */
.woocommerce-account table.woocommerce-orders-table thead th{
  font-size: 13px;
  text-transform: uppercase;
  letter-spacing: .04em;
  color: #64748B;
  padding: 10px 14px;
}

/* Rows */
.woocommerce-account table.woocommerce-orders-table tbody tr{
  background: #ffffff;
  box-shadow: 0 6px 18px rgba(15,23,42,0.05);
  border-radius: 12px;
  overflow: hidden;
  transition: transform .15s ease, box-shadow .15s ease;
}

/* Cells */
.woocommerce-account table.woocommerce-orders-table td{
  padding: 16px 14px;
  vertical-align: middle;
  border: none;
}

/* First + last cell rounding */
.woocommerce-account table.woocommerce-orders-table tbody tr td:first-child{
  border-radius: 12px 0 0 12px;
}

.woocommerce-account table.woocommerce-orders-table tbody tr td:last-child{
  border-radius: 0 12px 12px 0;
}

/* Hover */
.woocommerce-account table.woocommerce-orders-table tbody tr:hover{
  transform: translateY(-2px);
  box-shadow: 0 12px 30px rgba(15,23,42,0.08);
}

/* ========================================
   RIH DIL — Orders Status Badges
   ======================================== */

/* Base status cell */
.woocommerce-account table.woocommerce-orders-table td.woocommerce-orders-table__cell-order-status{
  font-weight: 500;
}

.woocommerce-account table.woocommerce-orders-table td.woocommerce-orders-table__cell-order-status{
  vertical-align: middle;
}

.woocommerce-account table.woocommerce-orders-table td.woocommerce-orders-table__cell-order-status{
  font-size: 0;
}

.woocommerce-account table.woocommerce-orders-table td.woocommerce-orders-table__cell-order-status::before{
  content: attr(data-title);
  display: none;
}

.woocommerce-account table.woocommerce-orders-table td.woocommerce-orders-table__cell-order-status > *{
  font-size: 14px;
}

.woocommerce-account table.woocommerce-orders-table td.woocommerce-orders-table__cell-order-status{
  color: transparent;
}

.woocommerce-account table.woocommerce-orders-table td.woocommerce-orders-table__cell-order-status{
  position: relative;
}

.woocommerce-account table.woocommerce-orders-table td.woocommerce-orders-table__cell-order-status::after{
  content: "";
  display: none;
}

.woocommerce-account table.woocommerce-orders-table td.woocommerce-orders-table__cell-order-status{
  white-space: nowrap;
}

.woocommerce-account table.woocommerce-orders-table td.woocommerce-orders-table__cell-order-status span,
.woocommerce-account table.woocommerce-orders-table td.woocommerce-orders-table__cell-order-status a,
.woocommerce-account table.woocommerce-orders-table td.woocommerce-orders-table__cell-order-status strong,
.woocommerce-account table.woocommerce-orders-table td.woocommerce-orders-table__cell-order-status mark,
.woocommerce-account table.woocommerce-orders-table td.woocommerce-orders-table__cell-order-status{
  font-size: 14px;
}

.woocommerce-account table.woocommerce-orders-table td.woocommerce-orders-table__cell-order-status{
  color: #1D4ED8;
  background: transparent;
}

.woocommerce-account table.woocommerce-orders-table td.woocommerce-orders-table__cell-order-status{
  padding-top: 16px;
  padding-bottom: 16px;
}

.woocommerce-account table.woocommerce-orders-table td.woocommerce-orders-table__cell-order-status .status-badge,
.woocommerce-account table.woocommerce-orders-table td.woocommerce-orders-table__cell-order-status mark,
.woocommerce-account table.woocommerce-orders-table td.woocommerce-orders-table__cell-order-status span:not([class]),
.woocommerce-account table.woocommerce-orders-table td.woocommerce-orders-table__cell-order-status strong{
  display: inline-block;
  padding: 6px 12px;
  border-radius: 999px;
  font-size: 13px;
  line-height: 1.1;
  background: #EFF6FF;
  color: #1D4ED8;
  font-weight: 600;
}

.woocommerce-account table.woocommerce-orders-table td{
  vertical-align: middle;
}

/* Ready for Print */
.woocommerce-account table.woocommerce-orders-table td.woocommerce-orders-table__cell-order-status:contains("Ready for Print"){
  background: #EEF2FF;
  color: #4338CA;
}

/* Shipped */
.woocommerce-account table.woocommerce-orders-table td.woocommerce-orders-table__cell-order-status:contains("Shipped"){
  background: #ECFDF5;
  color: #059669;
}


/* ========================================
   RIH DIL — Orders Artwork Preview Polish
   ======================================== */

/* Center actions column */
.woocommerce-account table.woocommerce-orders-table td.woocommerce-orders-table__cell-order-actions{
  text-align: center;
}

/* Remove repeated label */
.woocommerce-account table.woocommerce-orders-table td.woocommerce-orders-table__cell-order-actions strong{
  display: none;
}

/* Image styling */
.woocommerce-account table.woocommerce-orders-table td.woocommerce-orders-table__cell-order-actions img{
  width: 70px;
  height: 70px;
  object-fit: cover;
  border-radius: 12px;
  background: #ffffff;
  padding: 6px;
  border: 1px solid rgba(37,99,235,0.12);
  box-shadow: 0 6px 16px rgba(15,23,42,0.05);
  transition: transform .15s ease, box-shadow .15s ease;
}

/* Hover effect */
.woocommerce-account table.woocommerce-orders-table td.woocommerce-orders-table__cell-order-actions img:hover{
  transform: scale(1.05);
  box-shadow: 0 12px 28px rgba(15,23,42,0.10);
}

/* ========================================
   RIH DIL — Orders Artwork Column Polish
   ======================================== */

/* Hide repeated label */
.woocommerce-account table.woocommerce-orders-table td.woocommerce-orders-table__cell-order-actions strong{
  display: none;
}

/* Improve spacing for the column */
.woocommerce-account table.woocommerce-orders-table td.woocommerce-orders-table__cell-order-actions{
  text-align: center;
  min-width: 140px;
}

/* Style artwork preview image */
.woocommerce-account table.woocommerce-orders-table td.woocommerce-orders-table__cell-order-actions img{
  width: 64px;
  height: 64px;
  object-fit: cover;
  border-radius: 12px;
  background: #ffffff;
  border: 1px solid rgba(37,99,235,0.14);
  padding: 6px;
  box-shadow: 0 6px 18px rgba(15,23,42,0.06);
  transition: transform .15s ease, box-shadow .15s ease;
}

/* Hover polish */
.woocommerce-account table.woocommerce-orders-table td.woocommerce-orders-table__cell-order-actions img:hover{
  transform: scale(1.05);
  box-shadow: 0 12px 28px rgba(15,23,42,0.12);
}

/* =========================================================
   MY ACCOUNT — LOGGED-IN COMPONENTS: NAVIGATION
   Logged-in account UI only
   ========================================================= */

.woocommerce-account .woocommerce-MyAccount-navigation ul{
  margin: 0;
  padding: 0;
  list-style: none;
  background: #FFFFFF;
  border: 1px solid rgba(37,99,235,0.12);
  border-radius: 12px;
  overflow: hidden;
  box-shadow: 0 8px 22px rgba(15,23,42,0.04);
}

.woocommerce-account .woocommerce-MyAccount-navigation ul li{
  margin: 0;
  border-bottom: 1px solid #EAF2FF;
}

.woocommerce-account .woocommerce-MyAccount-navigation ul li:last-child{
  border-bottom: 0;
}

.woocommerce-account .woocommerce-MyAccount-navigation ul li a{
  display: block;
  padding: 14px 16px;
  color: #0F172A;
  text-decoration: none;
  font-weight: 500;
  background: #FFFFFF;
  transition: background-color .15s ease, color .15s ease;
}

.woocommerce-account .woocommerce-MyAccount-navigation ul li a:hover{
  background: #F1F5FF;
  color: #1D4ED8;
  transform: translateX(2px);
}

.woocommerce-account .woocommerce-MyAccount-navigation ul li.is-active a{
  background: linear-gradient(90deg, #EEF4FF 0%, #E0EAFF 100%);
  color: #1D4ED8;
  font-weight: 600;
  border-left: 3px solid #2563EB;
}

/* =========================================================
   MY ACCOUNT — LOGGED-IN COMPONENTS: DASHBOARD
   Logged-in account UI only
   ========================================================= */

.rih-account-dashboard{
  margin-top: 30px;
}

/* Hero panel */
.rih-account-hero{
  display: flex;
  justify-content: space-between;
  align-items: center;
  gap: 36px;
  padding: 32px;
  background: linear-gradient(180deg, #ffffff 0%, #f8fbff 100%);
  border: 1px solid rgba(37,99,235,0.14);
  border-radius: 18px;
  box-shadow: 0 18px 40px rgba(15,23,42,0.08);
  color: #0F172A;
}

.rih-account-hero__content{
  max-width: 760px;
}

.rih-account-hero__content > *{
  margin-top: 0;
}

.rih-account-hero__content > * + *{
  margin-top: 12px;
}

.rih-account-hero__actions{
  display: flex;
  flex-wrap: wrap;
  gap: 12px;
  margin-top: 18px;
}

.rih-account-eyebrow{
  font-size: 12px;
  letter-spacing: .08em;
  text-transform: uppercase;
  color: #2563EB;
  margin-bottom: 6px;
}

.rih-account-hero h2{
  margin-bottom: 6px;
  color: #0F172A;
}

.rih-account-hero p{
  color: #64748B;
  opacity: 1;
}

/* Hero stats */
.rih-account-hero__meta{
  display: flex;
  gap: 14px;
  flex-wrap: wrap;
  justify-content: flex-end;
}

.rih-account-stat{
  min-width: 148px;
  padding: 16px 18px;
  text-align: center;
  background: #ffffff;
  border: 1px solid rgba(37,99,235,0.12);
  border-radius: 14px;
  box-shadow: 0 8px 22px rgba(15,23,42,0.04);
}

.rih-account-stat__label{
  font-size: 12px;
  color: #64748B;
  display: block;
}

.rih-account-stat__value{
  font-size: 20px;
  color: #0F172A;
}

/* Action grid */
.rih-account-actions{
  margin-top: 26px;
  display: grid;
  grid-template-columns: repeat(3,1fr);
  gap: 18px;
}

.rih-account-action{
  display: block;
  min-height: 100%;
  background: linear-gradient(180deg, #ffffff 0%, #f8fbff 100%);
  border: 1px solid rgba(37,99,235,0.14);
  border-radius: 16px;
  padding: 22px 18px;
  text-decoration: none;
  color: #0F172A;
  box-shadow: 0 10px 24px rgba(15,23,42,0.05);
  transition: transform .18s ease, box-shadow .18s ease, border-color .18s ease, background .18s ease;
}

.rih-account-action:hover{
  border-color: rgba(37,99,235,0.28);
  background: linear-gradient(180deg, #ffffff 0%, #f5f8ff 100%);
  transform: translateY(-3px);
  box-shadow: 0 18px 40px rgba(15,23,42,0.08);
}

.rih-account-action h3{
  margin: 0 0 10px;
  color: #0F172A;
  font-size: 1.05rem;
  line-height: 1.25;
}

.rih-account-action p{
  margin: 0;
  color: #64748B;
  line-height: 1.6;
}

/* Hide all default Woo dashboard intro text above custom hero */
.woocommerce-account .woocommerce-MyAccount-content > p{
  display: none;
}

/* Mobile */
@media (max-width: 768px){
  .rih-account-hero{
    flex-direction: column;
    align-items: flex-start;
  }

  .rih-account-hero__meta{
    width: 100%;
    justify-content: space-between;
  }

  .rih-account-actions{
    grid-template-columns: 1fr;
  }
}


/* =========================================================
   MY ACCOUNT AUTH — FUNCTIONAL HIDE UTILITY
   Required by functions.php tab switch JS
   ========================================================= */

.rih-auth-panel-hidden{
  display: none !important;
}

/* =========================================================
   MY ACCOUNT AUTH — NEW 2 COLUMN LAYOUT STRUCTURE
   Matches the actual editor markup
   ========================================================= */

.rih-auth-shell{
  width: 100%;
  max-width: 1440px;
  margin: 0 auto;
  padding: 56px 24px;
  position: relative;
  z-index: 2;
  min-height: calc(100vh - 160px);
  display: flex;
  align-items: center;
}

.rih-auth-grid{
  width: 100%;
}

/* The REAL two-column row is the inner wp-block-columns inside rih-auth-grid */
.rih-auth-grid > .wp-block-columns{
  display: grid !important;
  grid-template-columns: minmax(320px, 420px) minmax(560px, 760px) !important;
  justify-content: center !important;
  align-items: center !important;
  gap: 56px !important;
  margin: 0 !important;
}

.rih-auth-grid > .wp-block-columns > .wp-block-column{
  margin: 0 !important;
  min-width: 0 !important;
}

.rih-auth-left,
.rih-auth-right{
  width: 100%;
  min-width: 0;
}

.rih-auth-left{
  display: flex;
  flex-direction: column;
  justify-content: center;
}

.rih-auth-right{
  display: flex;
  flex-direction: column;
  align-items: stretch;
}

/* Tabs */
.rih-auth-tabs{
  display: flex !important;
  flex-direction: row !important;
  flex-wrap: wrap !important;
  gap: 12px !important;
  margin-bottom: 18px !important;
}

.rih-auth-tabs .wp-block-button{
  margin: 0 !important;
}

/* Right-side wrappers */
.rih-auth-right > .wp-block-group{
  width: 100%;
}

.rih-auth-right .woocommerce,
.rih-auth-right .wp-block-shortcode{
  width: 100% !important;
  max-width: 100% !important;
}

/* Native Woo columns */
.rih-auth-right .woocommerce .col2-set{
  width: 100% !important;
}

.rih-auth-right .woocommerce .col2-set .col-1,
.rih-auth-right .woocommerce .col2-set .col-2{
  float: none !important;
  width: 100% !important;
  max-width: 100% !important;
  margin: 0 !important;
}

/* Hide Woo default headings */
.rih-auth-right .woocommerce .col2-set .col-1 > h2,
.rih-auth-right .woocommerce .col2-set .col-2 > h2{
  display: none !important;
}

/* Forms fill the panel */
.rih-auth-right .woocommerce form.login,
.rih-auth-right .woocommerce form.register{
  width: 100% !important;
  max-width: 100% !important;
  margin: 0 !important;
  box-sizing: border-box !important;
}

@media (max-width: 920px){
  .rih-auth-shell{
    padding: 32px 18px;
  }

  .rih-auth-grid > .wp-block-columns{
    grid-template-columns: 1fr !important;
    gap: 28px !important;
  }
}

/* =========================================================
   MY ACCOUNT AUTH — PAGE BACKGROUND SPLIT
   Locked to centered auth card position
   ========================================================= */

body.woocommerce-account{
  background:
    linear-gradient(
      90deg,
      #2563EB 0,
      #1D4ED8 calc(50% - 195px),
      #f1f5f9 calc(50% - 195px),
      #f1f5f9 100%
    );
}

/* =========================================================
   MY ACCOUNT — LOGGED-IN OVERRIDE SEAM
   Purpose:
   - disable logged-out auth shell visuals after login
   - collapse shared auth layout to one-column
   - restore normal WooCommerce My Account flow
   - keep shared page markup working without touching Woo logic
   ========================================================= */

body.logged-in.woocommerce-account{
  background: #f1f5f9;
}

body.logged-in.woocommerce-account .rih-auth-left{
  display: none !important;
}

body.logged-in.woocommerce-account .rih-auth-grid > .wp-block-columns{
  grid-template-columns: 1fr !important;
  gap: 0 !important;
}

body.logged-in.woocommerce-account .rih-auth-right{
  width: 100%;
}

body.logged-in.woocommerce-account .rih-auth-home,
body.logged-in.woocommerce-account .rih-auth-tabs,
body.logged-in.woocommerce-account .rih-auth-title-login,
body.logged-in.woocommerce-account .rih-auth-title-register,
body.logged-in.woocommerce-account .rih-auth-title-reset{
  display: none !important;
}




/* =========================================================
   MY ACCOUNT — LOGGED-IN SHELL FLOW FIX
   Remove auth-card centering after login
   ========================================================= */

body.logged-in.woocommerce-account .rih-auth-shell{
  min-height: auto;
  display: block;
  width: 100% !important;
  max-width: none !important;
  margin: 0 !important;
  padding: 24px 0 0 !important;
}

body.logged-in.woocommerce-account .entry-content[data-ast-blocks-layout="true"] > .rih-auth-shell{
  max-width: none !important;
  width: 100% !important;
  margin-left: 0 !important;
  margin-right: 0 !important;
}

body.logged-in.woocommerce-account .rih-auth-grid,
body.logged-in.woocommerce-account .rih-auth-grid > .wp-block-columns,
body.logged-in.woocommerce-account .rih-auth-right{
  width: 100% !important;
  max-width: none !important;
}


body.logged-in.woocommerce-account .rih-auth-grid > .wp-block-columns{
  background: transparent;
  border: 0;
  box-shadow: none;
  border-radius: 0;
  overflow: visible;
}

body.logged-in.woocommerce-account .rih-auth-right{
  background: transparent;
  padding: 0;
}

body.logged-in.woocommerce-account .woocommerce{
  display: flow-root;
  max-width: var(--rihdil-container);
  width: 100%;
  margin: 0 auto;
  padding-top: 8px;
}

body.logged-in.woocommerce-account .woocommerce-MyAccount-navigation{
  float: left;
  width: 280px;
  margin-right: 32px;
}

body.logged-in.woocommerce-account .woocommerce-MyAccount-content{
  overflow: hidden;
  min-width: 0;
}

body.logged-in.woocommerce-account .payment-methods-table{
  width: 100%;
  table-layout: auto;
}

body.logged-in.woocommerce-account .payment-methods-table th,
body.logged-in.woocommerce-account .payment-methods-table td{
  white-space: normal;
  word-break: normal;
}

@media (max-width: 921px){
  body.logged-in.woocommerce-account .woocommerce-MyAccount-navigation{
    float: none;
    width: 100%;
    margin-right: 0;
    margin-bottom: 24px;
  }

  body.logged-in.woocommerce-account .woocommerce-MyAccount-content{
    overflow: visible;
  }
}

.rih-auth-grid > .wp-block-columns{
  background: #ffffff;
  border: 1px solid rgba(37,99,235,0.14);
  border-radius: 28px;
  box-shadow: 0 24px 54px rgba(15,23,42,0.12);
  overflow: hidden;
}

/* Left promo panel */
.rih-auth-left{
  background:
    radial-gradient(120% 120% at 0% 0%, rgba(96,165,250,0.22) 0%, rgba(96,165,250,0) 48%),
    linear-gradient(135deg, #2563EB 0%, #1D4ED8 100%);
  color: #ffffff;
  padding: 56px 44px;
  min-height: 100%;
}

.rih-auth-left h2,
.rih-auth-left .wp-block-heading{
  color: #ffffff;
  font-size: clamp(2.2rem, 3vw, 3.2rem);
  line-height: 1.08;
  margin: 0 0 16px;
}

.rih-auth-left p{
  color: rgba(255,255,255,0.88);
  font-size: 1.05rem;
  line-height: 1.7;
  margin-bottom: 24px;
}

/* Left side button */
.rih-auth-left .wp-block-button__link{
  min-width: 150px;
  min-height: 50px;
  padding: 0 24px;
  border-radius: 999px;
  border: 2px solid rgba(255,255,255,0.78);
  background: transparent;
  color: #ffffff !important;
  font-weight: 700;
  box-shadow: none;
  text-decoration: none !important;
}

.rih-auth-left .wp-block-button__link:hover{
  background: rgba(255,255,255,0.12);
  color: #ffffff !important;
  text-decoration: none !important;
}

/* Right form panel */
.rih-auth-right{
  background: linear-gradient(180deg, #ffffff 0%, #f8fbff 100%);
  padding: 34px 40px 40px;
}

/* Tab buttons */
.rih-auth-tabs .wp-block-button__link{
  min-height: 48px;
  padding: 0 22px;
  border-radius: 12px;
  border: 1px solid rgba(37,99,235,0.18);
  background: #eef4ff;
  color: #2563EB !important;
  font-weight: 700;
  text-decoration: none !important;
  box-shadow: none;
}

.rih-auth-tabs .wp-block-button__link:hover{
  background: #e3eeff;
  color: #1D4ED8 !important;
  text-decoration: none !important;
}

.rih-auth-tab-login.is-active .wp-block-button__link,
.rih-auth-tab-register.is-active .wp-block-button__link{
  background: linear-gradient(135deg, #2563EB 0%, #1D4ED8 100%);
  color: #ffffff !important;
  border-color: rgba(37,99,235,0.24);
  box-shadow: 0 10px 24px rgba(37,99,235,0.18);
}



/* =========================================================
   MY ACCOUNT AUTH — FORM POLISH + HERO HEADER
   Matches current live markup
   ========================================================= */

/* Left tab area */
.rih-auth-left .rih-auth-tabs{
  display: flex !important;
flex-direction: row !important;
align-items: center !important;
  gap: 14px !important;
  margin-top: 8px !important;
  margin-bottom: 0 !important;
}

.rih-auth-left .rih-auth-tabs .wp-block-button{
  margin: 0 !important;
}

.rih-auth-left .rih-auth-tabs .wp-block-button__link{
  min-width: 136px;
  min-height: 48px;
  padding: 0 20px;
  border-radius: 12px;
  border: 1px solid rgba(255,255,255,0.28);
  background: rgba(255,255,255,0.10);
  color: #ffffff !important;
  font-weight: 700;
  box-shadow: none;
  text-decoration: none !important;
}

.rih-auth-left .rih-auth-tabs .wp-block-button__link:hover{
  background: rgba(255,255,255,0.16);
  color: #ffffff !important;
  text-decoration: none !important;
}

.rih-auth-left .rih-auth-tab-login.is-active .wp-block-button__link,
.rih-auth-left .rih-auth-tab-register.is-active .wp-block-button__link{
  background: #ffffff;
  color: #2563EB !important;
  border-color: rgba(255,255,255,0.82);
  box-shadow: 0 12px 24px rgba(15,23,42,0.12);
}

/* Right hero icon block */
.rih-auth-right > .wp-block-group:first-child{
  margin-bottom: 10px !important;
}

.rih-auth-hero-icon{
  display: inline-flex;
  align-items: center;
  justify-content: center;
  width: 88px;
  height: 88px;
  border-radius: 999px;
  background: linear-gradient(135deg, #60A5FA 0%, #2563EB 55%, #1D4ED8 100%);
  color: #ffffff;
  box-shadow: 0 18px 34px rgba(37,99,235,0.18);
}

/* =========================================================
   MY ACCOUNT — LOGGED-IN AVATAR ALIGNMENT
   ========================================================= */

body.logged-in.woocommerce-account .rih-auth-hero-icon{
  display: none !important;
}

body.logged-in.woocommerce-account .rih-auth-right > .wp-block-group:first-child{
  margin-bottom: 16px !important;
}


.rih-auth-hero-icon svg{
  width: 42px;
  height: 42px;
  display: block;
  stroke: currentColor;
}

/* Right heading */
.rih-auth-hero-title{
  margin: 0 0 22px !important;
  color: #1D4ED8;
  font-size: clamp(1.8rem, 2.2vw, 2.25rem);
  line-height: 1.1;
  font-weight: 800;
}

/* Form card refinement */
.rih-auth-right .woocommerce form.login,
.rih-auth-right .woocommerce form.register{
  background: #ffffff;
  border: 1px solid rgba(37,99,235,0.12);
  border-radius: 22px;
  padding: 28px 28px 26px;
  box-shadow: 0 14px 28px rgba(15,23,42,0.05);
}

/* Labels */
.rih-auth-right .woocommerce form.login label,
.rih-auth-right .woocommerce form.register label{
  color: #0F172A;
  font-size: 14px;
  font-weight: 700;
  margin-bottom: 8px;
}

/* Input rows */
.rih-auth-right .woocommerce form.login p,
.rih-auth-right .woocommerce form.register p{
  margin-bottom: 18px;
}

/* Inputs */
.rih-auth-right .woocommerce form.login .input-text,
.rih-auth-right .woocommerce form.register .input-text,
.rih-auth-right .woocommerce form.login input[type="text"],
.rih-auth-right .woocommerce form.login input[type="email"],
.rih-auth-right .woocommerce form.login input[type="password"],
.rih-auth-right .woocommerce form.register input[type="text"],
.rih-auth-right .woocommerce form.register input[type="email"],
.rih-auth-right .woocommerce form.register input[type="password"]{
  min-height: 54px;
  padding: 0 16px;
  border-radius: 14px;
  border: 1px solid rgba(37,99,235,0.14);
  background: #F8FBFF;
  color: #0F172A;
  box-shadow: none;
}

.rih-auth-right .woocommerce form.login .input-text:focus,
.rih-auth-right .woocommerce form.register .input-text:focus,
.rih-auth-right .woocommerce form.login input[type="text"]:focus,
.rih-auth-right .woocommerce form.login input[type="email"]:focus,
.rih-auth-right .woocommerce form.login input[type="password"]:focus,
.rih-auth-right .woocommerce form.register input[type="text"]:focus,
.rih-auth-right .woocommerce form.register input[type="email"]:focus,
.rih-auth-right .woocommerce form.register input[type="password"]:focus{
  outline: none;
  border-color: rgba(37,99,235,0.38);
  background: #ffffff;
  box-shadow: 0 0 0 3px rgba(96,165,250,0.14);
}

/* Password wrapper */
.rih-auth-right .woocommerce .password-input{
  width: 100%;
}

/* Privacy text */
.rih-auth-right .woocommerce .woocommerce-privacy-policy-text{
  color: #64748B;
  line-height: 1.7;
  font-size: 14px;
  margin: 4px 0 18px;
}

/* Submit buttons */
.rih-auth-right .woocommerce-form-login__submit,
.rih-auth-right .woocommerce form.register button[type="submit"]{
  min-width: 180px;
  min-height: 52px;
  padding: 0 24px;
  border: none;
  border-radius: 999px;
  background: linear-gradient(135deg, #2563EB 0%, #1D4ED8 100%);
  color: #ffffff;
  font-weight: 800;
  font-size: 16px;
  box-shadow: 0 14px 28px rgba(37,99,235,0.18);
  transition: transform .18s ease, filter .18s ease, box-shadow .18s ease;
}

.rih-auth-right .woocommerce-form-login__submit:hover,
.rih-auth-right .woocommerce form.register button[type="submit"]:hover{
  transform: translateY(-1px);
  filter: brightness(1.04);
  color: #ffffff;
}

/* Login form helper links */
.rih-auth-right .woocommerce .lost_password a{
  color: #2563EB;
  font-weight: 600;
}

/* Mobile */
@media (max-width: 920px){
  .rih-auth-left .rih-auth-tabs{
    align-items: stretch !important;
  }

  .rih-auth-left .rih-auth-tabs .wp-block-button,
  .rih-auth-left .rih-auth-tabs .wp-block-button__link{
    width: 100%;
  }

  .rih-auth-hero-icon{
    width: 76px;
    height: 76px;
  }

  .rih-auth-hero-title{
    font-size: 1.7rem;
    margin-bottom: 18px !important;
  }

  .rih-auth-right .woocommerce form.login,
  .rih-auth-right .woocommerce form.register{
    padding: 22px 18px 20px;
  }

  .rih-auth-right .woocommerce-form-login__submit,
  .rih-auth-right .woocommerce form.register button[type="submit"]{
    width: 100%;
    min-width: 0;
  }
}

/* =========================================================
   MY ACCOUNT AUTH — TITLE STATE VISIBILITY
   ========================================================= */

.rih-auth-title-login,
.rih-auth-title-register,
.rih-auth-title-reset{
  display: none;
}

body.woocommerce-account .rih-auth-title-login.is-visible,
body.woocommerce-account .rih-auth-title-register.is-visible,
body.woocommerce-account .rih-auth-title-reset.is-visible{
  display: block;
}

/* =========================================================
   MY ACCOUNT AUTH — HOME LINK (TOP LEFT)
   ========================================================= */

.rih-auth-home{
  display: inline-flex;
  align-items: center;
  gap: 8px;
  margin-bottom: 28px;
  color: rgba(255,255,255,0.9);
  font-weight: 600;
  text-decoration: none !important;
  font-size: 14px;
  transition: all .25s ease;
}

.rih-auth-home__icon{
  display: inline-flex;
  align-items: center;
  justify-content: center;
  opacity: .9;
}

.rih-auth-home__text{
  letter-spacing: .2px;
}

.rih-auth-home:hover{
  color: #ffffff;
  transform: translateX(-2px);
  text-decoration: none !important;
}

.rih-auth-home:hover .rih-auth-home__icon{
  transform: scale(1.05);
}

@media (max-width: 920px){
  .rih-auth-shell{
    min-height: auto;
    display: block;
  }

  .rih-auth-grid > .wp-block-columns{
    border-radius: 22px;
  }

  .rih-auth-left{
    padding: 36px 24px;
  }

  .rih-auth-right{
    padding: 24px;
  }

  .rih-auth-left h2,
  .rih-auth-left .wp-block-heading{
    font-size: 2rem;
  }
}
/* =========================================================
   GLOBAL LINK SYSTEM
   ========================================================= */

a{
  color: #2563EB;
  text-decoration: none;
  transition: color 0.2s ease;
}

a:hover{
  color: #1D4ED8;
}

/* prevent weird overrides */
a:focus,
a:active{
  color: #1D4ED8;
}

/* optional subtle underline on hover */
a:hover{
  text-decoration: underline;
  text-underline-offset: 2px;
}


/* =========================================================
   RIH DIL — MOBILE STICKY SHORTCUT NAV
   Mobile only
   ========================================================= */
@media (max-width: 768px){

  body{
    padding-bottom: 96px;
  }

  .rih-mobile-sticky-nav{
    position: fixed;
    left: 0;
    right: 0;
    bottom: calc(env(safe-area-inset-bottom, 0px) + 12px);
    z-index: 9998;
    pointer-events: none;
    padding-left: 12px;
    padding-right: 12px;
  }

.rih-mobile-sticky-nav__inner{
    max-width: 720px;
    margin: 0 auto;
    padding: 8px;
    border-radius: 18px;
    border: 1px solid rgba(37,99,235,0.14);
    background: linear-gradient(180deg, #ffffff 0%, #f8fbff 100%);
    box-shadow: 0 14px 32px rgba(15,23,42,0.10);
    display: grid;
    grid-template-columns: repeat(4, minmax(0, 1fr));
    gap: 8px;
    pointer-events: auto;
  }

.rih-mobile-sticky-nav__item{
    min-width: 0;
    display: flex;
    flex-direction: column;
    align-items: center;
    justify-content: center;
    gap: 7px;
    min-height: 58px;
    padding: 9px 6px 8px;
    border-radius: 14px;
    border: 1px solid rgba(37,99,235,0.12);
    background: #ffffff;
    color: #0F172A;
    text-decoration: none;
    box-shadow: 0 4px 14px rgba(15,23,42,0.05);
    transition: transform .15s ease, border-color .15s ease, background .15s ease, box-shadow .15s ease, color .15s ease;
    -webkit-tap-highlight-color: transparent;
  }

  .rih-mobile-sticky-nav__item:hover,
  .rih-mobile-sticky-nav__item:focus-visible{
    transform: translateY(-1px);
    border-color: rgba(37,99,235,0.28);
    background: #EEF4FF;
    color: #1D4ED8;
    text-decoration: none;
  }

  .rih-mobile-sticky-nav__item:focus-visible{
    outline: 2px solid rgba(96,165,250,0.55);
    outline-offset: 2px;
  }
  
  .rih-mobile-sticky-nav__item:active{
  transform: scale(0.97);
}

.rih-mobile-sticky-nav__item.is-active{
    background: #EFF6FF;
    border-color: rgba(37,99,235,0.28);
    color: #1D4ED8;
    box-shadow: 0 8px 18px rgba(37,99,235,0.10);
  }

  .rih-mobile-sticky-nav__item.is-active .rih-mobile-sticky-nav__icon,
  .rih-mobile-sticky-nav__item.is-active .rih-mobile-sticky-nav__label{
    color: #1D4ED8;
  }

.rih-mobile-sticky-nav__icon{
  width: 22px;
  height: 22px;
  display: inline-flex;
  align-items: center;
  justify-content: center;
  font-size: 18px;
  line-height: 1;
  color: #2563EB;
}

.rih-mobile-sticky-nav__label{
    display: block;
    max-width: 100%;
    text-align: center;
    font-size: 11px;
    line-height: 1.1;
    font-weight: 700;
    letter-spacing: -.01em;
    color: #0F172A;
    white-space: nowrap;
  }
}

@media (min-width: 769px){
  .rih-mobile-sticky-nav{
    display: none !important;
  }
}


/* =========================================
   FIX: Prevent DOUBLE CONTAINER PADDING
========================================= */
@media (max-width: 768px){
  .rih-bt{
    padding: 28px var(--rihdil-padding-mobile) 40px;
  }
}

/* =========================================================
   RIH DIL — CART DRAWER (FUNCTIONAL FIRST PASS)
   ========================================================= */

.rih-cart-drawer-overlay{
  position: fixed;
  inset: 0;
  background: rgba(15, 23, 42, 0.42);
  backdrop-filter: blur(3px);
  -webkit-backdrop-filter: blur(3px);
  z-index: 9998;
  opacity: 0;
  pointer-events: none;
  transition: opacity .22s ease;
}

.rih-cart-drawer-overlay.is-open{
  opacity: 1;
  pointer-events: auto;
}

.rih-cart-drawer{
  position: fixed;
  top: 0;
  right: 0;
  width: min(430px, 94vw);
  height: 100vh;
  background: linear-gradient(180deg, #ffffff 0%, #f8fbff 100%);
  border-left: 1px solid rgba(37,99,235,0.14);
  z-index: 9999;
  box-shadow: -24px 0 54px rgba(15,23,42,0.16);
  transform: translateX(100%);
  transition: transform .22s ease;
  display: flex;
  flex-direction: column;
  overflow: hidden;
}

.rih-cart-drawer::before{
  content: "";
  position: absolute;
  inset: 0;
  pointer-events: none;
  background: linear-gradient(
    180deg,
    rgba(255,255,255,0.62) 0%,
    rgba(255,255,255,0) 42%
  );
}

.rih-cart-drawer.is-open{
  transform: translateX(0);
}

.rih-cart-drawer__head{
  position: relative;
  z-index: 1;
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 12px;
  padding: 18px 18px 16px;
  border-bottom: 1px solid rgba(37,99,235,0.10);
  background: rgba(255,255,255,0.86);
  backdrop-filter: blur(6px);
  -webkit-backdrop-filter: blur(6px);
}

.rih-cart-drawer__head h3,
.rih-cart-drawer__head h4,
.rih-cart-drawer__head strong{
  margin: 0;
  color: #0F172A;
}

.rih-cart-drawer__head button{
  appearance: none;
  display: inline-flex;
  align-items: center;
  justify-content: center;
  width: 40px;
  height: 40px;
  padding: 0;
  border: 1px solid rgba(37,99,235,0.22);
  border-radius: 12px;
  background: #ffffff;
  color: #2563EB;
  cursor: pointer;
  font-size: 22px;
  line-height: 1;
  font-weight: 700;
  box-shadow: 0 8px 22px rgba(15,23,42,0.05);
  transition: all .15s ease;
}

.rih-cart-drawer__head button:hover{
  transform: translateY(-1px);
  border-color: rgba(37,99,235,0.45);
  background: #EEF4FF;
  color: #1D4ED8;
}

.rih-cart-drawer__head button:focus-visible{
  outline: 2px solid rgba(96,165,250,0.55);
  outline-offset: 2px;
}

.rih-cart-drawer__body{
  position: relative;
  z-index: 1;
  flex: 1;
  overflow: auto;
  padding: 16px 18px 18px;
}

.rih-cart-drawer__foot{
  position: relative;
  z-index: 1;
  display: flex;
  gap: 10px;
  padding: 16px 18px 18px;
  border-top: 1px solid rgba(37,99,235,0.10);
  background: linear-gradient(180deg, rgba(255,255,255,0.96) 0%, #f5f8ff 100%);
}

.rih-cart-drawer__foot .button{
  flex: 1;
  text-align: center;
}

body.rih-cart-drawer-open{
  overflow: hidden;
}

/* =========================================================
   RIH DIL — REFINED MINI-CART CONTENT (LOCKED)
   ========================================================= */

.rih-cart-drawer .woocommerce-mini-cart,
.rih-cart-drawer .woocommerce-mini-cart.cart_list{
  list-style: none;
  margin: 0;
  padding: 0;
}

.rih-cart-drawer .woocommerce-mini-cart-item{
  position: relative;
  padding: 20px 0;
  border-bottom: 1px solid rgba(37,99,235,0.10);
}

.rih-cart-drawer .woocommerce-mini-cart-item:first-child{
  padding-top: 8px;
}

.rih-cart-drawer .woocommerce-mini-cart-item:last-child{
  margin-bottom: 0;
}

/* remove button */
.rih-cart-drawer .woocommerce-mini-cart-item > a.remove{
  position: absolute;
  top: 12px;
  left: -8px;
  width: 24px;
  height: 24px;
  border-radius: 50%;
  background: #ffffff;
  border: 1px solid rgba(37,99,235,0.18);
  color: #64748B !important;
  line-height: 22px;
  text-align: center;
  font-size: 14px;
  font-weight: 700;
  box-shadow: 0 4px 12px rgba(15,23,42,0.08);
  z-index: 10;
}

.rih-cart-drawer .woocommerce-mini-cart-item > a.remove:hover{
  background: #EEF4FF;
  border-color: rgba(37,99,235,0.36);
  color: #1D4ED8 !important;
}

/* title + image */
.rih-cart-drawer .woocommerce-mini-cart-item > a:not(.remove){
  display: flex;
  gap: 16px;
  align-items: center;
  margin: 0 0 12px;
  padding-left: 12px;
  color: #0F172A;
  font-size: 1.06rem;
  font-weight: 700;
  line-height: 1.3;
  text-decoration: none;
  white-space: nowrap;
}

.rih-cart-drawer .woocommerce-mini-cart-item > a:not(.remove):hover{
  color: #1D4ED8;
}

.rih-cart-drawer .woocommerce-mini-cart-item > a:not(.remove) img{
  width: 72px;
  height: 72px;
  flex-shrink: 0;
  object-fit: cover;
  border-radius: 10px;
  border: 1px solid rgba(37,99,235,0.12);
  background: #F8FBFF;
  display: block;
}

/* metadata block */
.rih-cart-drawer .woocommerce-mini-cart-item > .variation{
  display: flex;
  flex-direction: column;
  gap: 4px;
  padding-left: 12px;
  border-left: 2px solid rgba(37,99,235,0.10);
}

.rih-cart-drawer .woocommerce-mini-cart-item > .variation dt,
.rih-cart-drawer .woocommerce-mini-cart-item > .variation dd{
  display: inline-block;
  margin: 0;
  font-size: 13px;
  line-height: 1.4;
  vertical-align: top;
  float: none;
}

.rih-cart-drawer .woocommerce-mini-cart-item > .variation dt{
  width: 46px;
  font-weight: 700;
  color: #64748B;
  text-transform: uppercase;
  font-size: 11px;
  letter-spacing: .02em;
  white-space: nowrap;
  margin-right: 6px;
}

.rih-cart-drawer .woocommerce-mini-cart-item > .variation dd{
  color: #1E293B;
  white-space: nowrap;
}

.rih-cart-drawer .woocommerce-mini-cart-item > .variation dd p{
  display: inline;
  margin: 0;
  white-space: nowrap;
}

/* quantity / price */
.rih-cart-drawer .woocommerce-mini-cart-item > .quantity{
  display: block;
  padding-left: 12px;
  color: #475569;
  font-size: 14px;
  line-height: 1.4;
  white-space: nowrap;
}

.rih-cart-drawer .woocommerce-mini-cart-item > .quantity strong{
  color: #0F172A;
  font-weight: 700;
}

.rih-cart-drawer .woocommerce-mini-cart-item > .quantity .amount{
  color: #0F172A;
  font-weight: 700;
}

/* subtotal */
.rih-cart-drawer .woocommerce-mini-cart__total,
.rih-cart-drawer .woocommerce-mini-cart-total{
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 12px;
  margin: 20px 0 0;
  padding: 20px 0 0;
  border-top: 2px solid #F1F5F9;
  color: #0F172A;
  font-size: 1.05rem;
}

.rih-cart-drawer .woocommerce-mini-cart__total strong,
.rih-cart-drawer .woocommerce-mini-cart-total strong{
  font-weight: 800;
}

.rih-cart-drawer .woocommerce-mini-cart__total .amount,
.rih-cart-drawer .woocommerce-mini-cart-total .amount{
  color: #2563EB;
  font-weight: 800;
}

/* buttons */
.rih-cart-drawer .woocommerce-mini-cart__buttons,
.rih-cart-drawer .woocommerce-mini-cart-buttons{
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 12px;
  margin: 20px 0 0;
}

.rih-cart-drawer .woocommerce-mini-cart__buttons .button,
.rih-cart-drawer .woocommerce-mini-cart-buttons .button,
.rih-cart-drawer .woocommerce.widget_shopping_cart .buttons .button{
  width: 100% !important;
  min-height: 48px;
  display: inline-flex !important;
  align-items: center;
  justify-content: center;
  padding: 12px 16px !important;
  margin: 0 !important;
  border-radius: 12px !important;
  font-size: 0.95rem;
  font-weight: 700;
  line-height: 1.2;
  text-align: center;
  text-decoration: none !important;
  box-shadow: 0 8px 22px rgba(15,23,42,0.05);
}

.rih-cart-drawer .woocommerce-mini-cart__buttons .button.checkout,
.rih-cart-drawer .woocommerce-mini-cart-buttons .button.checkout,
.rih-cart-drawer .woocommerce.widget_shopping_cart .buttons .button.checkout{
  background: linear-gradient(135deg, #2563EB 0%, #1D4ED8 100%) !important;
  color: #ffffff !important;
  border: 1px solid rgba(37,99,235,0.20) !important;
}

.rih-cart-drawer .woocommerce-mini-cart__buttons .button:not(.checkout),
.rih-cart-drawer .woocommerce-mini-cart-buttons .button:not(.checkout),
.rih-cart-drawer .woocommerce.widget_shopping_cart .buttons .button:not(.checkout){
  background: #ffffff !important;
  color: #2563EB !important;
  border: 1px solid rgba(37,99,235,0.25) !important;
}

.rih-cart-drawer .woocommerce-mini-cart__buttons .button:hover,
.rih-cart-drawer .woocommerce-mini-cart-buttons .button:hover,
.rih-cart-drawer .woocommerce.widget_shopping_cart .buttons .button:hover{
  transform: translateY(-1px);
  text-decoration: none !important;
}

.rih-cart-drawer .woocommerce-mini-cart__buttons .button:not(.checkout):hover,
.rih-cart-drawer .woocommerce-mini-cart-buttons .button:not(.checkout):hover,
.rih-cart-drawer .woocommerce.widget_shopping_cart .buttons .button:not(.checkout):hover{
  background: rgba(37,99,235,0.08) !important;
  border-color: rgba(37,99,235,0.45) !important;
  color: #1D4ED8 !important;
}

/* hide Woo injected "View cart" under Add to Cart on builder page */
.rih-gs-pricing-actions a.added_to_cart{
  display: none !important;
}

/* empty state */
.rih-cart-drawer .woocommerce-mini-cart__empty-message,
.rih-cart-drawer .cart_empty{
  margin: 0;
  padding: 18px 16px;
  border: 1px dashed rgba(37,99,235,0.22);
  border-radius: 16px;
  background: rgba(37,99,235,0.05);
  color: #1D4ED8;
  font-size: 0.96rem;
  line-height: 1.5;
  text-align: center;
}

@media (max-width: 640px){
  .rih-cart-drawer .woocommerce-mini-cart-item > a:not(.remove){
    gap: 12px;
    font-size: 1rem;
  }

  .rih-cart-drawer .woocommerce-mini-cart-item > a:not(.remove) img{
    width: 64px;
    height: 64px;
  }

  .rih-cart-drawer .woocommerce-mini-cart-item > .variation,
  .rih-cart-drawer .woocommerce-mini-cart-item > .quantity{
    margin-left: 76px;
  }

  .rih-cart-drawer .woocommerce-mini-cart__buttons,
  .rih-cart-drawer .woocommerce-mini-cart-buttons{
    grid-template-columns: 1fr;
  }
}

.rih-dl__cats .rih-dl__chip.is-active{
  border-color: rgba(37,99,235,0.24) !important;
  background: linear-gradient(135deg, #2563EB 0%, #1D4ED8 100%) !important;
  color: #ffffff !important;
  -webkit-text-fill-color: #ffffff !important;
}



/* =========================================================
   ASTRA HEADER + MOBILE DRAWER OVERRIDE
   ========================================================= */

.ast-header-break-point .ast-mobile-popup-drawer,
.ast-header-break-point .ast-mobile-popup-drawer .ast-mobile-popup-inner,
.ast-header-break-point .ast-mobile-popup-drawer .ast-builder-layout-element,
.ast-header-break-point .ast-mobile-popup-drawer-content,
.ast-header-break-point .ast-mobile-popup-content{
  background:
    radial-gradient(120% 80% at 100% 0%, rgba(96,165,250,0.16) 0%, rgba(96,165,250,0.00) 42%),
    linear-gradient(180deg, #ffffff 0%, #f7fbff 100%) !important;
  backdrop-filter: blur(10px) !important;
  -webkit-backdrop-filter: blur(10px) !important;
}

.ast-header-break-point .ast-mobile-popup-drawer{
  box-shadow: -20px 0 40px rgba(15,23,42,0.14) !important;
  transition: transform .28s ease, opacity .22s ease !important;
}

.ast-header-break-point .ast-mobile-popup-drawer .main-header-menu,
.ast-header-break-point .ast-mobile-popup-drawer .main-header-menu .sub-menu{
  background: transparent !important;
}

.ast-header-break-point .ast-mobile-popup-drawer .main-header-menu > li > a,
.ast-header-break-point .ast-mobile-popup-drawer .main-header-menu .sub-menu a{
  color: #0F172A !important;
  font-weight: 600 !important;
  border-bottom: 1px solid rgba(37,99,235,0.10) !important;
  background: transparent !important;
  transition: background .18s ease, color .18s ease, padding-left .18s ease !important;
}

.ast-header-break-point .ast-mobile-popup-drawer .main-header-menu > li > a:hover,
.ast-header-break-point .ast-mobile-popup-drawer .main-header-menu .sub-menu a:hover{
  color: #2563EB !important;
  background: linear-gradient(90deg, rgba(37,99,235,0.08) 0%, rgba(96,165,250,0.03) 100%) !important;
  padding-left: 22px !important;
}

.ast-header-break-point .ast-mobile-popup-drawer .current-menu-item > a,
.ast-header-break-point .ast-mobile-popup-drawer .current-menu-ancestor > a{
  color: #2563EB !important;
}

.ast-header-break-point .ast-mobile-popup-drawer .menu-toggle-close{
  color: #64748B !important;
  background: #ffffff !important;
}

.ast-header-break-point .ast-mobile-popup-drawer .menu-toggle-close:hover{
  color: #2563EB !important;
  background: #EEF4FF !important;
}

/* =========================================================
   ASTRA MOBILE MENU — EXACT LIVE TARGET
   ========================================================= */

#ast-hf-mobile-menu{
  background: #ffffff !important;
}

#ast-hf-mobile-menu > li{
  position: relative !important;
  background: #ffffff !important;
  margin: 0 !important;
  padding: 0 !important;
}

#ast-hf-mobile-menu > li > a{
  display: block !important;
  padding: 14px 18px !important;
  color: #0F172A !important;
  font-weight: 600 !important;
  background: #ffffff !important;
  border-bottom: 1px solid rgba(37,99,235,0.10) !important;
  transition: background .18s ease, color .18s ease, box-shadow .18s ease, padding-left .18s ease !important;
}

#ast-hf-mobile-menu > li > a:hover,
#ast-hf-mobile-menu > li > a:focus{
  color: #2563EB !important;
  background: linear-gradient(90deg, rgba(37,99,235,0.08) 0%, rgba(96,165,250,0.03) 100%) !important;
  padding-left: 22px !important;
}

#ast-hf-mobile-menu > .current-menu-item,
#ast-hf-mobile-menu > .current_page_item{
  background: linear-gradient(90deg, rgba(37,99,235,0.08) 0%, rgba(96,165,250,0.04) 100%) !important;
}

#ast-hf-mobile-menu > .current-menu-item > a,
#ast-hf-mobile-menu > .current_page_item > a{
  color: #2563EB !important;
  background: transparent !important;
  font-weight: 700 !important;
  box-shadow: inset 4px 0 0 #2563EB !important;
}
/* =========================================================
   ASTRA MOBILE TRIGGER — KEEP ICON VISIBLE
   ========================================================= */

.ast-header-break-point .main-header-menu-toggle,
.ast-header-break-point .menu-toggle.main-header-menu-toggle,
.ast-header-break-point .main-header-menu-toggle[aria-expanded="true"],
.ast-header-break-point .menu-toggle.main-header-menu-toggle[aria-expanded="true"],
.ast-header-break-point .main-header-menu-toggle.ast-mobile-menu-trigger-minimal,
.ast-header-break-point .menu-toggle.main-header-menu-toggle.ast-mobile-menu-trigger-minimal{
  background: #ffffff !important;
  color: #0F172A !important;
  border: 1px solid rgba(37,99,235,0.14) !important;
  border-radius: 12px !important;
  box-shadow: 0 8px 22px rgba(15,23,42,0.05) !important;
}

.ast-header-break-point .main-header-menu-toggle:hover,
.ast-header-break-point .menu-toggle.main-header-menu-toggle:hover,
.ast-header-break-point .main-header-menu-toggle[aria-expanded="true"]:hover,
.ast-header-break-point .menu-toggle.main-header-menu-toggle[aria-expanded="true"]:hover{
  color: #2563EB !important;
  background: #EEF4FF !important;
  border-color: rgba(37,99,235,0.28) !important;
}

.ast-header-break-point .main-header-menu-toggle:focus,
.ast-header-break-point .main-header-menu-toggle:focus-visible{
  outline: 2px solid rgba(96,165,250,0.45) !important;
  outline-offset: 2px !important;
}

.ast-header-break-point .main-header-menu-toggle .mobile-menu-toggle-icon,
.ast-header-break-point .main-header-menu-toggle .ast-mobile-svg,
.ast-header-break-point .main-header-menu-toggle .ahfb-svg-iconset,
.ast-header-break-point .main-header-menu-toggle svg,
.ast-header-break-point .main-header-menu-toggle svg path{
  color: #0F172A !important;
  fill: currentColor !important;
  opacity: 1 !important;
}

.ast-header-break-point .main-header-menu-toggle:hover .mobile-menu-toggle-icon,
.ast-header-break-point .main-header-menu-toggle:hover .ast-mobile-svg,
.ast-header-break-point .main-header-menu-toggle:hover .ahfb-svg-iconset,
.ast-header-break-point .main-header-menu-toggle:hover svg,
.ast-header-break-point .main-header-menu-toggle:hover svg path{
  color: #2563EB !important;
  fill: currentColor !important;
}

.ast-header-break-point .main-header-menu-toggle[aria-expanded="true"] .mobile-menu-toggle-icon,
.ast-header-break-point .main-header-menu-toggle[aria-expanded="true"] .ast-mobile-svg,
.ast-header-break-point .main-header-menu-toggle[aria-expanded="true"] .ahfb-svg-iconset,
.ast-header-break-point .main-header-menu-toggle[aria-expanded="true"] svg,
.ast-header-break-point .main-header-menu-toggle[aria-expanded="true"] svg path{
  color: #0F172A !important;
  fill: currentColor !important;
  opacity: 1 !important;
}


/* =========================================================
   RIH PRIMARY MENU — CART / ACCOUNT ICON ITEMS
   ========================================================= */

.ast-desktop .main-header-menu .rih-menu-icon-item{
  margin-left: 6px;
}

.ast-desktop .main-header-menu .rih-menu-icon-link{
  position: relative;
  width: 40px;
  height: 40px;
  margin-top: -2px;
  padding: 0 !important;
  border-radius: 12px;
  display: inline-flex !important;
  align-items: center;
  justify-content: center;
  background: #ffffff;
  color: #0F172A !important;
  border: 1px solid rgba(37,99,235,0.14);
  box-shadow: 0 8px 22px rgba(15,23,42,0.05);
  transition: all .18s ease;
}

.ast-desktop .main-header-menu .rih-menu-icon-link:hover,
.ast-desktop .main-header-menu .rih-menu-icon-link:focus{
  color: #2563EB !important;
  background: #EEF4FF !important;
  border-color: rgba(37,99,235,0.28);
  transform: translateY(-1px);
  text-decoration: none;
}

.ast-desktop .main-header-menu .rih-menu-icon-svg{
  display: inline-flex;
  align-items: center;
  justify-content: center;
  line-height: 1;
}

.ast-desktop .main-header-menu .rih-menu-icon-svg svg{
  display: block;
  width: 20px;
  height: 20px;
}

.ast-desktop .main-header-menu .rih-menu-icon-link,
.ast-desktop .main-header-menu .rih-menu-icon-link:visited,
.ast-desktop .main-header-menu .rih-menu-icon-link:hover,
.ast-desktop .main-header-menu .rih-menu-icon-link:focus,
.ast-desktop .main-header-menu .rih-menu-icon-link:active{
  color: #0F172A !important;
  -webkit-text-fill-color: #0F172A !important;
}

.ast-desktop .main-header-menu .rih-menu-icon-link:hover,
.ast-desktop .main-header-menu .rih-menu-icon-link:focus{
  color: #2563EB !important;
  background: #EEF4FF !important;
  border-color: rgba(37,99,235,0.28) !important;
  transform: translateY(-1px);
  text-decoration: none !important;
}

.ast-desktop .main-header-menu .rih-menu-icon-link svg,
.ast-desktop .main-header-menu .rih-menu-icon-link svg path,
.ast-desktop .main-header-menu .rih-menu-icon-link svg circle{
  stroke: currentColor !important;
  fill: none !important;
  color: inherit !important;
  opacity: 1 !important;
}

.ast-desktop .main-header-menu .rih-menu-icon-badge{
  position: absolute;
  top: -6px;
  right: -6px;
  min-width: 18px;
  height: 18px;
  padding: 0 5px;
  border-radius: 999px;

  background: #2563EB !important;
  color: #ffffff !important;

  font-size: 11px;
  font-weight: 700;
  line-height: 18px;
  text-align: center;

  box-shadow: 0 4px 10px rgba(37,99,235,0.35);
  
  -webkit-text-fill-color: #ffffff !important;
text-shadow: none !important;

  display: inline-flex;
  align-items: center;
  justify-content: center;
}

@media (max-width: 921px){
  .ast-header-break-point .rih-menu-icon-item{
    display: none !important;
  }
}
/* =========================================================
   ASTRA HEADER — GLOBAL BASE
   ========================================================= */

.ast-primary-header-bar{
  position: sticky;
  top: 0;
  z-index: 100;
  background: rgba(255,255,255,0.92);
  border-bottom: 1px solid rgba(37,99,235,0.12);
  box-shadow:
    0 10px 28px rgba(15,23,42,0.06),
    0 0 0 1px rgba(96,165,250,0.06);
  backdrop-filter: blur(10px);
  -webkit-backdrop-filter: blur(10px);
}


/* =========================================================
   RIH ACCOUNT DROPDOWN — DESKTOP FOUNDATION
   ========================================================= */

.ast-desktop .main-header-menu .rih-account-menu-item{
  position: relative;
  padding-bottom: 10px;
  margin-bottom: -10px;
}

.ast-desktop .main-header-menu .rih-account-dropdown{
  position: absolute;
  top: 100%;
  right: 0;
  min-width: 210px;
  padding: 8px;
  border-radius: 16px;
  background: linear-gradient(180deg, #ffffff 0%, #f8fbff 100%);
  border: 1px solid rgba(37,99,235,0.14);
  box-shadow: 0 18px 40px rgba(15,23,42,0.10);
  opacity: 0;
  visibility: hidden;
  pointer-events: none;
  transform: translateY(6px);
  transition: opacity .18s ease, transform .18s ease, visibility .18s ease;
  z-index: 200;
}

.ast-desktop .main-header-menu .rih-account-menu-item:hover > .rih-account-dropdown,
.ast-desktop .main-header-menu .rih-account-menu-item:focus-within > .rih-account-dropdown{
  opacity: 1;
  visibility: visible;
  pointer-events: auto;
  transform: translateY(0);
}

.ast-desktop .main-header-menu .rih-account-dropdown::before{
  content: "";
  position: absolute;
  top: -7px;
  right: 14px;
  width: 14px;
  height: 14px;
  background: #ffffff;
  border-top: 1px solid rgba(37,99,235,0.14);
  border-left: 1px solid rgba(37,99,235,0.14);
  transform: rotate(45deg);
}

.ast-desktop .main-header-menu .rih-account-menu-item::after{
  content: "";
  position: absolute;
  top: 100%;
  right: 0;
  width: 100%;
  height: 14px;
  background: transparent;
}

.ast-desktop .main-header-menu .rih-account-dropdown__link{
  display: flex !important;
  align-items: center !important;
  justify-content: flex-start !important;
  width: 100%;
  min-height: 0 !important;
  height: auto !important;
  margin: 0 !important;
  padding: 12px 14px !important;
  border: 0 !important;
  border-radius: 12px;
  color: #0F172A !important;
  background: transparent !important;
  text-decoration: none !important;
  font-weight: 600;
  font-size: 14px !important;
  line-height: 1.35 !important;
  white-space: nowrap;
  box-shadow: none !important;
}

.ast-desktop .main-header-menu .rih-account-dropdown__link:hover,
.ast-desktop .main-header-menu .rih-account-dropdown__link:focus{
  background: #EEF4FF;
  color: #2563EB !important;
  transform: translateX(2px);
  text-decoration: none !important;
}

@media (max-width: 921px){
  .ast-header-break-point .rih-account-menu-item{
    display: none !important;
  }

  .ast-header-break-point .rih-account-dropdown{
    display: none !important;
    opacity: 0 !important;
    visibility: hidden !important;
    pointer-events: none !important;
  }

  .ast-header-break-point .rih-account-dropdown__link{
    display: none !important;
  }
}

/* =========================================================
   MY ACCOUNT AUTH — HIDE CUSTOM MOBILE HEADER ICONS
   Prevent stray footer-injected mobile icons on auth page
   ========================================================= */

@media (max-width: 921px){
  /* Hide ONLY on logged-out auth screens */
  body:not(.logged-in).woocommerce-account #rihMobileHeaderIcons{
    display: none !important;
  }
}

/* =========================================================
   MY ACCOUNT AUTH — HIDE HEADER + FOOTER (LOGGED-OUT ONLY)
   Safe: only affects auth shell, not dashboard
   ========================================================= */

/* Hide header + footer ONLY when auth shell is present */
body:not(.logged-in).woocommerce-account:has(.rih-auth-shell) .site-header,
body:not(.logged-in).woocommerce-account:has(.rih-auth-shell) .site-footer{
  display: none !important;
}

/* Remove top spacing gap left by Astra header */
body:not(.logged-in).woocommerce-account:has(.rih-auth-shell) .site-content{
  margin-top: 0 !important;
  padding-top: 0 !important;
}

/* =========================================================
   RIH MOBILE HEADER — ICON BAR
   ========================================================= */

@media (max-width: 921px){

  /* Make header a clean flex row */
  .ast-primary-header-bar .ast-container{
    display: flex;
    align-items: center;
    justify-content: space-between;
  }

  /* Right-side icon group */
  .rih-mobile-icons{
    display: flex;
    align-items: center;
    gap: 10px;
  }

  /* Icon buttons (match your desktop style) */
  .rih-mobile-icon-btn{
    position: relative;
    width: 38px;
    height: 38px;
    border-radius: 12px;
    background: #ffffff;
    border: 1px solid rgba(37,99,235,0.18);
    display: flex;
    align-items: center;
    justify-content: center;
    color: #2563EB;
  }

  /* Badge */
  .rih-mobile-icon-badge{
    position: absolute;
    top: -6px;
    right: -6px;
    background: #2563EB;
    color: #fff;
    font-size: 11px;
    font-weight: 700;
    padding: 2px 6px;
    border-radius: 999px;
  }
  
    /* Make the mobile header row act like:
     hamburger (left) | logo | icons (right) */
  #ast-mobile-header .ast-builder-grid-row{
    position: relative;
    min-height: 72px;
    padding-left: 16px;
    padding-right: 16px;
  }
  
  #ast-mobile-header .site-header-primary-section-left{
    position: relative;
    z-index: 1;
    margin-left: 44px;
  }

  #ast-mobile-header .site-branding{
    display: flex;
    align-items: center;
    min-height: 52px;
  }

  #ast-mobile-header .site-logo-img img,
  #ast-mobile-header .custom-logo{
    max-height: 44px;
    width: auto;
  }

  #ast-mobile-header .site-header-primary-section-right{
    position: absolute;
    left: 2px;
    right: 8px;
    top: 50%;
    transform: translateY(-50%);
    display: flex;
    align-items: center;
    justify-content: space-between;
    gap: 12px;
    pointer-events: none;
  }

  #ast-mobile-header .site-header-primary-section-right > *{
    pointer-events: auto;
  }

  /* Keep the injected icon group on the far right */
  #ast-mobile-header .rih-mobile-icons{
    margin-left: auto;
  }

  /* Slightly smaller mobile icon buttons */
  #ast-mobile-header .rih-mobile-icon-btn{
    width: 36px;
    height: 36px;
  }
  
  #ast-mobile-header .rih-mobile-icon-btn,
#ast-mobile-header .rih-mobile-icon-btn:link,
#ast-mobile-header .rih-mobile-icon-btn:visited,
#ast-mobile-header .rih-mobile-icon-btn:hover,
#ast-mobile-header .rih-mobile-icon-btn:active,
#ast-mobile-header .rih-mobile-icon-btn:focus,
#ast-mobile-header .rih-mobile-icon-btn:focus-visible{
  background: #ffffff !important;
  color: #2563EB !important;
  -webkit-text-fill-color: #2563EB !important;
  border-color: rgba(37,99,235,0.18) !important;
  text-decoration: none !important;
}

#ast-mobile-header .rih-mobile-icon-btn svg,
#ast-mobile-header .rih-mobile-icon-btn svg path,
#ast-mobile-header .rih-mobile-icon-btn svg circle{
  stroke: currentColor !important;
  fill: none !important;
  color: inherit !important;
  opacity: 1 !important;
}
  

#ast-mobile-header .rih-mobile-icon-btn,
#ast-mobile-header .menu-toggle.main-header-menu-toggle{
  -webkit-tap-highlight-color: transparent;
  tap-highlight-color: transparent;
}

#ast-mobile-header .rih-mobile-icon-btn:active,
#ast-mobile-header .rih-mobile-icon-btn:focus,
#ast-mobile-header .rih-mobile-icon-btn:focus-visible{
  background: #ffffff !important;
  border-color: rgba(37,99,235,0.18) !important;
  box-shadow: none !important;
  outline: none !important;
  color: #2563EB !important;
}

#ast-mobile-header .rih-mobile-icon-btn:active svg,
#ast-mobile-header .rih-mobile-icon-btn:focus svg,
#ast-mobile-header .rih-mobile-icon-btn:focus-visible svg,
#ast-mobile-header .rih-mobile-icon-btn:active svg path,
#ast-mobile-header .rih-mobile-icon-btn:focus svg path,
#ast-mobile-header .rih-mobile-icon-btn:focus-visible svg path{
  color: #2563EB !important;
  stroke: currentColor !important;
  fill: none !important;
}

  /* Smaller cart badge */
#ast-mobile-header .rih-mobile-icon-badge{
  position: absolute;
  top: -5px;
  right: -5px;
  min-width: 16px;
  height: 16px;
  padding: 0 4px;
  font-size: 10px;
  font-weight: 700;
  line-height: 16px;
  display: inline-flex;
  align-items: center;
  justify-content: center;
  border-radius: 999px;
  background: #2563EB !important;
  color: #ffffff !important;
  -webkit-text-fill-color: #ffffff !important;
  text-shadow: none !important;
  border: none !important;
}

.rih-menu-icon-badge,
.rih-mobile-icon-badge {
  transition: opacity 0.2s ease, transform 0.2s ease;
  opacity: 0;
  transform: scale(0.9);
}

.rih-menu-icon-badge[style*="inline-flex"],
.rih-mobile-icon-badge[style*="inline-flex"] {
  opacity: 1;
  transform: scale(1);
}
  


#ast-mobile-header{
  background: #ffffff !important;
}

#ast-mobile-header{
  -webkit-transform: translateZ(0);
  transform: translateZ(0);
  will-change: transform;
}

}

/* =========================================================
   MOBILE HEADER ICON FIX (KEEP VISIBLE, CLEAN LAYOUT)
========================================================= */
@media (max-width: 768px){

  /* Make header right section flex clean */
  .site-header-primary-section-right{
    display:flex !important;
    align-items:center;
    gap:10px;
  }

  /* Clean icon container */
  .rih-menu-icon-item{
    margin:0 !important;
    padding:0 !important;
  }

  /* Icon buttons */
  .rih-menu-icon-link{
    display:inline-flex !important;
    align-items:center;
    justify-content:center;
    width:36px;
    height:36px;
    border-radius:10px;
  }

  /* SVG size consistency */
  .rih-menu-icon-svg svg{
    width:20px;
    height:20px;
  }

  /* Badge position fix */
  .rih-menu-icon-badge{
    position:absolute;
    top:-4px;
    right:-4px;
    font-size:10px;
    padding:2px 5px;
    border-radius:999px;
  }

  /* Prevent menu wrapping weirdness */
  .main-header-menu{
    display:flex !important;
    align-items:center;
  }

}

/* =========================================================
   RIH DIL — CUSTOM FOOTER
   Full replacement
   ========================================================= */

.rih-footer{
  margin-top: 56px;
  background:
    radial-gradient(120% 120% at 100% 0%, rgba(96,165,250,0.10) 0%, rgba(96,165,250,0) 42%),
    linear-gradient(180deg, #f8fbff 0%, #f3f8ff 100%);
  border-top: 1px solid rgba(37,99,235,0.10);
  color: var(--rih-text);
}

.rih-footer__inner{
  max-width: var(--rihdil-container);
  margin: 0 auto;
  padding-left: var(--rihdil-padding-desktop);
  padding-right: var(--rihdil-padding-desktop);
  box-sizing: border-box;
}

/* 3 equal visual columns */
.rih-footer__grid{
  display: grid;
  grid-template-columns: repeat(3, minmax(0, 1fr));
  gap: 60px;
  align-items: start;
  padding: 42px 0 36px;
}

.rih-footer__col{
  min-width: 0;
}

/* -----------------------------------------
   COLUMN 1 — BRAND
   ----------------------------------------- */

.rih-footer__brand{
  display: flex;
  flex-direction: column;
  align-items: flex-start;
  justify-content: flex-start;
  text-align: left;
  width: 100%;
  min-width: 0;
  justify-self: start;
}

.rih-footer__logo-link{
  display: inline-flex;
  align-self: flex-start;
  text-decoration: none;
}

.rih-footer__logo{
  display: block;
  width: auto;
  max-width: 210px;
  height: auto;
  margin-bottom: 6px;
}

.rih-footer__tagline{
  margin: 18px 0 0;
  max-width: 320px;
  font-size: 1rem;
  line-height: 1.8;
  color: var(--rih-text);
  text-align: left;
}

.rih-footer__social{
  display: flex;
  flex-wrap: wrap;
  justify-content: flex-start;
  align-items: center;
  gap: 12px;
  margin-top: 20px;
  width: 100%;
}

.rih-footer__social-link{
  width: 38px;
  height: 38px;
  display: inline-flex;
  align-items: center;
  justify-content: center;
  border-radius: 12px;
  background: #ffffff;
  border: 1px solid rgba(37,99,235,0.18);
  box-shadow: 0 8px 22px rgba(15,23,42,0.05);
  color: #2563EB;
  text-decoration: none;
  transition: transform .15s ease, background .15s ease, border-color .15s ease, color .15s ease, box-shadow .15s ease;
}

.rih-footer__social-link i{
  display: block;
  font-size: 16px;
  line-height: 1;
}

.rih-footer__social-link:hover{
  transform: translateY(-2px);
  background: #EEF4FF;
  border-color: rgba(37,99,235,0.42);
  color: #1D4ED8;
  text-decoration: none;
}

/* -----------------------------------------
   COLUMN 2 — SHOP
   ----------------------------------------- */

.rih-footer__nav{
  justify-self: center;
  width: 100%;
  max-width: 260px;
  text-align: left;
}

/* -----------------------------------------
   COLUMN 3 — STACK
   ----------------------------------------- */

.rih-footer__stack{
  justify-self: end;
  width: 100%;
  max-width: 320px;
  display: flex;
  flex-direction: column;
  gap: 30px;
  text-align: left;
}

.rih-footer__group{
  margin: 0;
}

/* -----------------------------------------
   TITLES + LINKS
   ----------------------------------------- */

.rih-footer__title{
  margin: 0 0 18px;
  font-size: 1.28rem;
  font-weight: 600;
  line-height: 1.2;
  letter-spacing: -0.01em;
  color: var(--rih-text);
}

.rih-footer__list{
  list-style: none;
  margin: 0;
  padding: 0;
}

.rih-footer__list li{
  margin: 0 0 12px;
  padding: 0;
}

.rih-footer__list li:last-child{
  margin-bottom: 0;
}

.rih-footer__list a{
  color: var(--rih-text);
  font-size: 1rem;
  line-height: 1.55;
  text-decoration: none;
  transition: color .18s ease;
}

.rih-footer__list a:hover{
  color: #2563EB;
  text-decoration: none;
  transform: translateX(2px);
}

.rih-footer__social-link:focus-visible,
.rih-footer__list a:focus-visible,
.rih-footer__logo-link:focus-visible{
  outline: 2px solid rgba(96,165,250,0.55);
  outline-offset: 3px;
}

/* -----------------------------------------
   BOTTOM ROW
   ----------------------------------------- */

.rih-footer__bottom{
  border-top: 1px solid rgba(37,99,235,0.10);
}

.rih-footer__copyright{
  margin: 0;
  padding: 18px 0 22px;
  text-align: center;
  color: var(--rih-muted);
  font-size: 0.94rem;
  line-height: 1.7;
}

/* screen-reader helper */
.screen-reader-text{
  position: absolute !important;
  width: 1px !important;
  height: 1px !important;
  padding: 0 !important;
  margin: -1px !important;
  overflow: hidden !important;
  clip: rect(0, 0, 0, 0) !important;
  white-space: nowrap !important;
  border: 0 !important;
}

/* -----------------------------------------
   TABLET
   ----------------------------------------- */

@media (max-width: 1024px){
  .rih-footer__grid{
    grid-template-columns: repeat(3, minmax(0, 1fr));
    gap: 34px;
  }

  .rih-footer__nav{
    max-width: 100%;
    justify-self: start;
  }

  .rih-footer__stack{
    max-width: 100%;
    justify-self: start;
  }

  .rih-footer__title{
    font-size: 1.16rem;
  }
}

/* -----------------------------------------
   MOBILE
   ----------------------------------------- */

@media (max-width: 768px){
  .rih-footer{
    margin-top: 42px;
  }

  .rih-footer__inner{
    padding-left: var(--rihdil-padding-mobile);
    padding-right: var(--rihdil-padding-mobile);
  }

  .rih-footer__grid{
    grid-template-columns: 1fr;
    gap: 28px;
    padding: 28px 0 24px;
  }

  .rih-footer__brand,
  .rih-footer__nav,
  .rih-footer__stack{
    justify-self: start;
    max-width: 100%;
  }

  .rih-footer__logo{
    max-width: 178px;
  }

  .rih-footer__tagline{
    max-width: none;
    margin-top: 16px;
    font-size: 0.97rem;
    line-height: 1.75;
  }

  .rih-footer__social{
    margin-top: 16px;
    gap: 10px;
  }

  .rih-footer__social-link{
    width: 36px;
    height: 36px;
    border-radius: 10px;
  }

  .rih-footer__title{
    margin-bottom: 14px;
    font-size: 1.1rem;
  }

  .rih-footer__stack{
    gap: 22px;
  }

  .rih-footer__list li{
    margin-bottom: 10px;
  }

  .rih-footer__list a{
    font-size: 0.98rem;
  }

  .rih-footer__copyright{
    padding: 16px 0 18px;
    font-size: 0.9rem;
  }
}


/* =========================================
   CUSTOM FOOTER — RESET ASTRA HTML WIDGET WRAPPER
   ========================================= */

.site-footer .ast-footer-html-1,
.site-footer .ast-footer-html-1.footer-widget-area,
.site-footer .ast-footer-html-1.widget-area,
.site-footer .ast-footer-html-1.site-footer-focus-item,
.site-footer .ast-footer-html-1 .ast-header-html,
.site-footer .ast-footer-html-1 .ast-builder-html-element{
  background: transparent !important;
  background-image: none !important;
  border: 0 !important;
  border-radius: 0 !important;
  box-shadow: none !important;
  padding: 0 !important;
  margin: 0 !important;
}

/* kill shop / woocommerce widget styling leakage */
.woocommerce .site-footer .ast-footer-html-1,
.woocommerce .site-footer .ast-footer-html-1.footer-widget-area,
.woocommerce .site-footer .ast-footer-html-1.widget-area,
.woocommerce .site-footer .ast-footer-html-1.site-footer-focus-item,
.woocommerce .site-footer .ast-footer-html-1 .ast-header-html,
.woocommerce .site-footer .ast-footer-html-1 .ast-builder-html-element,
.post-type-archive-product .site-footer .ast-footer-html-1,
.post-type-archive-product .site-footer .ast-footer-html-1.footer-widget-area,
.post-type-archive-product .site-footer .ast-footer-html-1.widget-area,
.post-type-archive-product .site-footer .ast-footer-html-1.site-footer-focus-item,
.post-type-archive-product .site-footer .ast-footer-html-1 .ast-header-html,
.post-type-archive-product .site-footer .ast-footer-html-1 .ast-builder-html-element{
  background: transparent !important;
  background-image: none !important;
  border: 0 !important;
  border-radius: 0 !important;
  box-shadow: none !important;
  padding: 0 !important;
  margin: 0 !important;
}

/* make sure only your footer controls the visual box */
.site-footer .ast-footer-html-1 > .ast-header-html > .ast-builder-html-element{
  display: block !important;
  width: 100%;
}

/* Woo/My Account safe footer logo clamp */
.site-footer .rih-footer__logo,
.site-footer .rih-footer__logo img,
.woocommerce .site-footer .rih-footer__logo,
.woocommerce .site-footer .rih-footer__logo img,
.woocommerce-account .site-footer .rih-footer__logo,
.woocommerce-account .site-footer .rih-footer__logo img{
  display: block !important;
  width: auto !important;
  max-width: 210px !important;
  height: auto !important;
}

@media (max-width: 768px){
  .site-footer .rih-footer__logo,
  .site-footer .rih-footer__logo img,
  .woocommerce .site-footer .rih-footer__logo,
  .woocommerce .site-footer .rih-footer__logo img,
  .woocommerce-account .site-footer .rih-footer__logo,
  .woocommerce-account .site-footer .rih-footer__logo img{
    max-width: 178px !important;
  }
}

/* =========================================================
   RIH DIL — MY ACCOUNT BOTTOM SPACING FIX (FINAL POLISH)
   ========================================================= */

.woocommerce-account .woocommerce-MyAccount-content{
  padding-bottom: 60px;
}

@media (max-width: 768px){
  .woocommerce-account .woocommerce-MyAccount-content{
    padding-bottom: 80px;
  }
}

/* =========================================================
   RIH DIL — HEADER SIDE PADDING CLEAN FIX
   ========================================================= */

.site-primary-header-wrap .ast-builder-grid-row-container{
  padding-left: 0 !important;
  padding-right: 0 !important;
}

/* =========================================================
   RIH DIL — REMOVE PAGE SIDE PADDING (ASTRA BLOCK CONTAINER)
   ========================================================= */

.entry-content > .wp-block-group{
  padding-left: 0 !important;
  padding-right: 0 !important;
}



/* =========================================================
   RIH DIL — AUTH MOBILE STRIP (FROM LEFT PANEL)
   ========================================================= */

@media (max-width: 768px){

  .rih-auth-grid > .wp-block-columns{
    display: flex !important;
    flex-direction: column !important;
  }

  /* Left panel becomes top strip */
  .rih-auth-left{
    width: 100% !important;
    max-width: 100% !important;
    border-radius: 0 0 16px 16px !important;
    margin-bottom: 16px;
  }

  /* Optional: reduce height so it's not too tall */
  .rih-auth-left h2{
    font-size: 22px;
  }

  .rih-auth-left p{
    font-size: 14px;
  }

}

/* =========================================================
   RIH DIL — AUTH PAGE BASE BACKGROUND FIX
   ========================================================= */
@media (max-width: 768px){
body:not(.logged-in).woocommerce-account:has(.rih-auth-shell){
  background: var(--rih-bg) !important;
}
}

/* =========================================================
   RIH — Special Product Frontend Print Size UI
   ========================================================= */

.single-product .rih-special-printsize-ui{
  margin: 0 0 18px;
  padding: 16px;
  border-radius: 18px;
}

.single-product .rih-special-printsize-ui__head{
  margin: 0 0 10px;
}

.single-product .rih-special-printsize-ui__head strong{
  display: block;
  margin: 0 0 6px;
  font-size: 12px;
  font-weight: 700;
  letter-spacing: .06em;
  text-transform: uppercase;
  color: #2563EB;
}

.single-product #rih-print-size-select{
  width: 100%;
  min-height: 46px;
  border-radius: 12px;
  border: 1px solid rgba(37,99,235,0.18);
  background: #ffffff;
  color: #0F172A;
  padding: 0 14px;
  box-shadow: inset 0 1px 2px rgba(15,23,42,0.03);
}

.single-product #rih-print-size-select:focus{
  outline: none;
  border-color: rgba(37,99,235,0.42);
  box-shadow: 0 0 0 3px rgba(96,165,250,0.18);
}

.single-product #rih-print-size-meta{
  margin-top: 10px;
  padding: 12px 14px;
  border-radius: 14px;
  background: #ffffff;
  border: 1px solid rgba(37,99,235,0.12);
}

.single-product #rih-print-size-measurement{
  margin: 0 0 6px;
  color: #334155;
  font-size: 14px;
}

.single-product #rih-print-size-price{
  margin: 0;
  color: #0F172A;
  font-size: 15px;
  font-weight: 700;
}

.single-product #rih-print-size-error{
  display: none;
  margin-top: 10px;
  padding: 10px 12px;
  border-radius: 12px;
  background: #fff;
  border: 1px solid rgba(220,38,38,0.18);
  color: #b91c1c;
  font-weight: 600;
  font-size: 13px;
}

.single-product .rih-special-price-current{
  font-weight: 700;
  color: #0F172A;
}

.single-product .rih-special-price-regular{
  margin-left: 6px;
  opacity: .65;
  color: #64748B;
}

@media (max-width: 768px){
  .single-product .rih-special-printsize-ui{
    padding: 14px;
    border-radius: 16px;
  }

  .single-product #rih-print-size-select{
    min-height: 44px;
  }

  .single-product #rih-print-size-meta{
    padding: 11px 12px;
  }
}

/* =========================================================
   RIH — Special Product Frontend Gallery
   ========================================================= */

.single-product .rih-special-gallery{
  width: 100%;
  margin: 0 0 24px;
}

.single-product .rih-special-gallery__frame{
  padding: 14px;
}

.single-product .rih-special-gallery__stage{
  position: relative;
  width: 100%;
  aspect-ratio: 4 / 5;
  border-radius: 18px;
  overflow: hidden;
  background: #f8fbff;
  border: 1px solid rgba(37,99,235,0.10);
}

.single-product .rih-special-gallery__base,
.single-product .rih-special-gallery__overlay{
  position: absolute;
  inset: 0;
  width: 100%;
  height: 100%;
  object-fit: cover;
  display: block;
}

.single-product .rih-special-gallery__base{
  z-index: 1;
}

.single-product .rih-special-gallery__overlay{
  z-index: 2;
  pointer-events: none;
}

.single-product .rih-special-gallery__controls{
  margin-top: 16px;
  padding: 12px;
  border-radius: 14px;
  background: linear-gradient(180deg, #f1f5ff 0%, #e6eeff 100%);
  border: 1px solid rgba(37,99,235,0.18);
  box-shadow: inset 0 1px 0 rgba(255,255,255,0.6);
}

.single-product .rih-special-gallery__header{
  display: flex;
  align-items: baseline;
  gap: 10px;
  flex-wrap: wrap;
  margin-bottom: 10px;
}

.single-product .rih-special-gallery__title{
  font-size: 12px;
  font-weight: 700;
  color: #2563eb;
  text-transform: uppercase;
  letter-spacing: 0.6px;
}

.single-product .rih-special-gallery__hint{
  font-size: 12px;
  color: #64748b;
}

.single-product .rih-special-gallery__swatches{
  display: flex;
  flex-wrap: wrap;
  gap: 10px;
}

.single-product .rih-special-gallery__swatch{
  appearance: none;
  border: 1px solid rgba(37,99,235,0.25);
  background: #ffffff;
  color: #0f172a;
  border-radius: 999px;
  padding: 8px 14px;
  font-size: 13px;
  font-weight: 600;
  cursor: pointer;
  transition: all .15s ease;
}

.single-product .rih-special-gallery__swatch:hover{
  background: #eef4ff;
  border-color: #2563eb;
}

.single-product .rih-special-gallery__swatch.is-active{
  background: #2563eb;
  color: #fff;
  border-color: transparent;
  box-shadow: 0 6px 18px rgba(37,99,235,0.25);
}

.single-product .rih-special-gallery__swatch:focus-visible{
  outline: 2px solid rgba(96,165,250,0.55);
  outline-offset: 2px;
}

.single-product .rih-special-gallery__swatch.is-active:hover{
  background: #1D4ED8;
  color: #fff;
  border-color: transparent;
}

.single-product .rih-special-gallery__swatch[disabled]{
  opacity: .5;
  cursor: not-allowed;
  transform: none;
}
@media (max-width: 768px){
  .single-product .rih-special-gallery__frame{
    padding: 12px;
  }

  .single-product .rih-special-gallery__controls{
    padding: 10px;
  }

  .single-product .rih-special-gallery__swatches{
    gap: 8px;
  }

  .single-product .rih-special-gallery__swatch{
    padding: 9px 12px;
    font-size: 13px;
  }
}

/* =========================================================
   RIH — Special Product Gallery Layout Fix
   ========================================================= */

.single-product div.product.rih-special-product-card > .woocommerce-product-gallery,
.single-product div.product.rih-special-product-card > .woocommerce-product-gallery.images,
.single-product div.product.rih-special-product-card > .woocommerce-product-gallery.woocommerce-product-gallery--without-images,
.single-product div.product.rih-special-product-card > .woocommerce-product-gallery > .woocommerce-product-gallery__wrapper,
.single-product div.product.rih-special-product-card > .woocommerce-product-gallery .woocommerce-product-gallery__image--placeholder{
  display: none !important;
  width: 0 !important;
  min-width: 0 !important;
  max-width: 0 !important;
  margin: 0 !important;
  padding: 0 !important;
  border: 0 !important;
  overflow: hidden !important;
}

.single-product div.product.rih-special-product-card > .rih-special-gallery{
  width: 48% !important;
  float: left !important;
  margin: 0 3.8% 2em 0 !important;
  clear: none !important;
  display: block !important;
}

.single-product div.product.rih-special-product-card > .summary{
  width: 48% !important;
  float: right !important;
  clear: none !important;
}

.single-product div.product.rih-special-product-card::after{
  content: "";
  display: table;
  clear: both;
}

@media (max-width: 768px){
  .single-product div.product.rih-special-product-card > .rih-special-gallery,
  .single-product div.product.rih-special-product-card > .summary{
    width: 100% !important;
    float: none !important;
    margin-right: 0 !important;
  }
  
    .single-product.rih-special-product div.product{
    gap: 16px;
  }

  .single-product div.product.rih-special-product-card .summary > .woocommerce-product-details__short-description{
    padding: 12px 14px;
    border-radius: 14px;
  }

  .single-product div.product.rih-special-product-card form.cart{
    border-radius: 16px;
  }
}

/* =========================================================
   RIH — Special Product Summary Spacing
   ========================================================= */

.single-product div.product.rih-special-product-card .summary > .product_title{
  margin-bottom: 10px;
}

.single-product div.product.rih-special-product-card .summary > p.price,
.single-product div.product.rih-special-product-card .summary > span.price{
  margin: 0 0 14px;
}

.single-product div.product.rih-special-product-card .summary > .woocommerce-product-details__short-description{
  margin: 0 0 16px;
  padding: 14px 16px;
  border: 1px solid rgba(37,99,235,0.10);
  border-radius: 16px;
  background: #f8fbff;
  color: #334155;
}

.single-product div.product.rih-special-product-card .summary > .woocommerce-product-details__short-description p:last-child{
  margin-bottom: 0;
}

.single-product div.product.rih-special-product-card .summary .rih-special-printsize-ui{
  margin-bottom: 16px;
}

.single-product .rih-special-gallery__frame{
  border: 1px solid rgba(37,99,235,0.12);
  border-radius: 22px;
  background: linear-gradient(180deg, #ffffff 0%, #f8fbff 100%);
  box-shadow: 0 18px 40px rgba(15,23,42,0.06);
}

.single-product .rih-special-gallery__stage{
  box-shadow: inset 0 1px 0 rgba(255,255,255,0.65);
}

/* =========================================================
   RIH — Special Product Layout Balance
   ========================================================= */

.single-product.rih-special-product div.product{
  display: grid;
  grid-template-columns: 1.05fr 0.95fr;
  gap: 28px;
  align-items: start;
}

.single-product.rih-special-product div.product .summary{
  position: sticky;
  top: 90px;
}

@media (max-width: 900px){
  .single-product.rih-special-product div.product{
    grid-template-columns: 1fr;
    gap: 18px;
  }

  .single-product.rih-special-product div.product .summary{
    position: relative;
    top: auto;
  }
}


/* =========================================================
   RIH DIL — Latest Posts Showcase Shortcode
   Uses global system from style.css + home.css language
   ========================================================= */

.rih-post-showcase{
  width: 100%;
  padding: 40px 0 68px;
}

.rih-post-showcase__grid{
  display: grid;
  grid-template-columns: minmax(0, .92fr) minmax(0, 1.08fr);
  gap: 24px;
  align-items: center;
}

.rih-post-showcase__content{
  max-width: 560px;
}

.rih-post-showcase__title{
  margin: 0 0 14px;
  color: #0f172a;
  font-size: clamp(34px, 3.2vw, 48px);
  font-weight: 800;
  line-height: 1.06;
  letter-spacing: -0.03em;
}

.rih-post-showcase__tagline{
  margin: 0 0 22px;
  max-width: 48ch;
  color: #64748b;
  font-size: 16px;
  line-height: 1.72;
}

.rih-post-showcase__actions{
  margin-top: 0;
}

.rih-post-showcase__slider-col{
  min-width: 0;
}

.rih-post-showcase__frame{
  position: relative;
  overflow: hidden;
  min-height: 620px;
  padding: 18px;
  border-radius: 22px;
  background: linear-gradient(180deg, #ffffff 0%, #f8fbff 100%);
  border: 1px solid rgba(37,99,235,0.14);
  box-shadow: 0 18px 40px rgba(15,23,42,0.08);
}

.rih-post-showcase__frame::before{
  content: "";
  position: absolute;
  inset: 0;
  pointer-events: none;
  border-radius: inherit;
  background:
    radial-gradient(520px 220px at 0% 0%, rgba(96,165,250,0.10), transparent 70%),
    linear-gradient(180deg, rgba(255,255,255,0.50) 0%, rgba(255,255,255,0) 46%);
}

.rih-post-showcase__track{
  position: relative;
  min-height: 584px;
  z-index: 1;
}

.rih-post-showcase__card{
  position: absolute;
  inset: 0;
  display: flex;
  flex-direction: column;
  background: linear-gradient(180deg, #ffffff 0%, #f8fbff 100%);
  border: 1px solid rgba(37,99,235,0.12);
  border-radius: 18px;
  overflow: hidden;
  box-shadow: 0 14px 34px rgba(15,23,42,0.08);
  opacity: 0;
  transform: translateY(70px);
  transition: transform .7s ease, opacity .7s ease;
  pointer-events: none;
}

.rih-post-showcase__card.is-active{
  opacity: 1;
  transform: translateY(0);
  pointer-events: auto;
}

.rih-post-showcase__media{
  display: block;
  aspect-ratio: 16 / 9;
  overflow: hidden;
  line-height: 0;
  border-radius: 18px 18px 0 0;
}

.rih-post-showcase__image{
  width: 100%;
  height: 100%;
  object-fit: cover;
  display: block;
  border-radius: 18px 18px 0 0;
}

.rih-post-showcase__placeholder{
  display: block;
  width: 100%;
  height: 100%;
  background: linear-gradient(180deg, #eef4ff 0%, #f8fbff 100%);
}

.rih-post-showcase__body{
  display: flex;
  flex-direction: column;
  gap: 12px;
  padding: 22px;
}

.rih-post-showcase__post-title{
  margin: 0;
  font-size: clamp(1.35rem, 2vw, 1.9rem);
  line-height: 1.16;
  letter-spacing: -0.02em;
  color: #0f172a;
}

.rih-post-showcase__post-title a{
  color: inherit;
  text-decoration: none;
}

.rih-post-showcase__post-title a:hover{
  color: #1d4ed8;
  text-decoration: none;
}

.rih-post-showcase__meta{
  font-size: 13px;
  color: #64748b;
}

.rih-post-showcase__excerpt{
  color: #475569;
  font-size: 14px;
  line-height: 1.72;
}

@media (max-width: 921px){
  .rih-post-showcase{
    padding: 34px 0 54px;
  }

  .rih-post-showcase__grid{
    grid-template-columns: 1fr;
    gap: 22px;
  }

  .rih-post-showcase__content{
    max-width: none;
  }

  .rih-post-showcase__frame{
    min-height: 560px;
  }

  .rih-post-showcase__track{
    min-height: 524px;
  }

  .rih-post-showcase__title{
    font-size: clamp(30px, 5vw, 44px);
  }

  .rih-post-showcase__tagline{
    font-size: 16px;
  }
}

@media (max-width: 768px){
  .rih-post-showcase{
    padding: 26px 0 42px;
  }

  .rih-post-showcase__grid{
    gap: 18px;
  }

  .rih-post-showcase__title{
    font-size: 32px;
  }

  .rih-post-showcase__tagline{
    font-size: 15px;
    line-height: 1.65;
    margin-bottom: 18px;
  }

  .rih-post-showcase__actions .rih-btn{
    width: 100%;
  }

  .rih-post-showcase__frame{
    min-height: 470px;
    padding: 14px;
    border-radius: 18px;
  }

  .rih-post-showcase__track{
    min-height: 442px;
  }

  .rih-post-showcase__body{
    padding: 18px;
    gap: 10px;
  }

  .rih-post-showcase__excerpt{
    font-size: 13px;
    line-height: 1.65;
  }
}

@media (max-width: 560px){
  .rih-post-showcase__frame{
    min-height: 430px;
  }

  .rih-post-showcase__track{
    min-height: 404px;
  }

  .rih-post-showcase__post-title{
    font-size: 1.25rem;
  }
}

/* =========================================================
   RIH — STEP GUIDE SHORTCODE
   ========================================================= */

.rih-step-guide{
  padding: 60px 0;
}

.rih-step-guide__inner{
  max-width: var(--rihdil-container);
  margin: 0 auto;
  padding: 0 var(--rihdil-padding-desktop);
}

/* ======================
   HEAD
   ====================== */

.rih-step-guide__head{
  text-align: center;
  max-width: 720px;
  margin: 0 auto 40px;
}

.rih-step-guide__title{
  font-size: 2rem;
  font-weight: 700;
  margin-bottom: 10px;
}

.rih-step-guide__intro{
  color: var(--rih-muted);
  font-size: 1rem;
  line-height: 1.6;
}

/* ======================
   GRID
   ====================== */

.rih-step-guide__grid{
  display: grid;
  grid-template-columns: repeat(4, 1fr);
  gap: 24px;
}

/* ======================
   CARD
   ====================== */

.rih-step-guide__card{
  padding: 22px;
  text-align: center;
  display: flex;
  flex-direction: column;
  align-items: center;
}

/* step number */
.rih-step-guide__step-number{
  font-size: 12px;
  font-weight: 600;
  letter-spacing: .06em;
  text-transform: uppercase;
  color: var(--rih-gold);
  margin-bottom: 10px;
}

/* icon */
.rih-step-guide__icon-wrap{
  margin-bottom: 14px;
}

.rih-step-guide__icon{
  width: 72px;
  height: 72px;
  object-fit: contain;
}

/* title */
.rih-step-guide__card-title{
  font-size: 1.1rem;
  font-weight: 600;
  margin-bottom: 8px;
}

/* line */
.rih-step-guide__card-line{
  font-size: 0.95rem;
  color: var(--rih-muted);
  line-height: 1.5;
}

.rih-step-guide__time{
  margin-top: 6px;
  font-size: 0.8rem;
  font-weight: 600;
  color: var(--rih-gold);
  background: rgba(37,99,235,0.08);
  padding: 4px 10px;
  border-radius: 999px;
  display: inline-block;
}

/* ======================
   CTA
   ====================== */

.rih-step-guide__actions{
  margin-top: 36px;
  text-align: center;
}

/* ======================
   MOBILE
   ====================== */

@media (max-width: 768px){

  .rih-step-guide__grid{
    grid-template-columns: repeat(2, 1fr);
    gap: 18px;
  }

  .rih-step-guide{
    padding: 40px 0;
  }

  .rih-step-guide__inner{
    padding: 0 var(--rihdil-padding-mobile);
  }
}