/*
Theme Name: Astra Child
Theme URI: https://wpastra.com/
Description: Astra Child Theme for Eyecasions responsive header and footer.
Author: SiteKori
Author URI: https://sitekori.com/
Template: astra
Version: 1.0.0
Text Domain: astra-child
*/

/* ==========================================================================
   CSS Custom Properties (Variables)
   ========================================================================== */
:root {
  --color-primary: #0084d1;
  --color-primary-hover: #026ca8;
  --color-bg-light: #ecf2f7;
  --color-bg-dark: #1e293b;
  --color-text-dark: #334155;
  --color-text-muted: #64748b;
  --color-text-light: #ffffff;
  --color-border: #cbd5e1;
  --font-family: -apple-system, BlinkMacSystemFont, "Segoe UI", Roboto, Oxygen-Sans, Ubuntu, Cantarell, "Helvetica Neue", sans-serif;
}

/* ==========================================================================
   General Theme Resets for Custom Header & Footer
   ========================================================================== */
.custom-header-container,
.custom-footer-container {
  font-family: var(--font-family);
  box-sizing: border-box;
}
.custom-header-container *,
.custom-footer-container * {
  box-sizing: border-box;
}

/* Hide Astra's default header and footer when our custom templates are loaded */
.site-header,
.site-footer,
#mysticky-nav {
  display: none !important;
}

/* ==========================================================================
   Header Top Row (Desktop)
   ========================================================================== */
.custom-header-top {
  background-color: var(--color-bg-light);
  padding: 15px 40px;
  display: flex;
  justify-content: space-between;
  align-items: center;
  border-bottom: 1px solid rgba(0, 0, 0, 0.05);
}

.header-logo-col {
  flex: 0 0 auto;
}

.header-logo-col a {
  display: block;
}

.header-logo-img {
  max-height: 50px;
  width: auto;
  display: block;
}

/* Search Box styling matching the screenshot */
.header-search-col {
  flex: 0 1 550px;
  margin: 0 30px;
}

.header-search-form {
  display: flex;
  width: 100%;
}

.header-search-group {
  display: flex;
  width: 100%;
  border: 1.5px solid var(--color-primary);
  border-radius: 4px;
  background-color: var(--color-bg-light);
  overflow: hidden;
  position: relative;
}

.header-search-icon-inside {
  position: absolute;
  left: 15px;
  top: 50%;
  transform: translateY(-50%);
  color: var(--color-text-muted);
  display: flex;
  align-items: center;
  pointer-events: none;
  z-index: 5;
}

.custom-header-container .header-search-input {
  flex: 1 1 auto;
  border: none !important;
  background: transparent !important;
  padding: 10px 15px 10px 45px !important;
  font-size: 14px;
  color: var(--color-text-dark);
  outline: none !important;
  height: 42px !important;
  box-shadow: none !important;
}

.custom-header-container .header-search-input::placeholder {
  color: var(--color-text-muted) !important;
  text-transform: capitalize;
}

.header-search-btn {
  background-color: var(--color-primary);
  color: var(--color-text-light);
  border: none;
  padding: 0 25px;
  font-size: 14px;
  font-weight: 600;
  cursor: pointer;
  height: 42px;
  display: flex;
  align-items: center;
  justify-content: center;
  transition: background-color 0.2s ease-in-out;
}

.header-search-btn:hover {
  background-color: var(--color-primary-hover);
}

/* Right Column: Cart and Sign In */
.header-right-col {
  display: flex;
  align-items: center;
  gap: 25px;
  flex: 0 0 auto;
}

.header-cart-wrapper {
  position: relative;
  display: flex;
  align-items: center;
}

.header-cart-link {
  color: var(--color-text-dark);
  display: flex;
  align-items: center;
  text-decoration: none;
  padding: 5px;
  transition: color 0.2s;
}

.header-cart-link:hover {
  color: var(--color-primary);
}

.header-cart-link svg {
  width: 24px;
  height: 24px;
}

.cart-contents-count {
  position: absolute;
  top: -6px;
  right: -8px;
  background-color: var(--color-primary);
  color: var(--color-text-light);
  font-size: 10px;
  font-weight: bold;
  border-radius: 50%;
  min-width: 18px;
  height: 18px;
  display: flex;
  align-items: center;
  justify-content: center;
  padding: 2px;
}

.header-signin-btn {
  background-color: var(--color-primary);
  color: var(--color-text-light);
  border: none;
  border-radius: 20px;
  padding: 8px 24px;
  font-size: 14px;
  font-weight: 600;
  text-decoration: none;
  display: inline-flex;
  align-items: center;
  justify-content: center;
  transition: background-color 0.2s, transform 0.1s;
}

.header-signin-btn:hover {
  background-color: var(--color-primary-hover);
  color: var(--color-text-light);
}

.header-signin-btn:active {
  transform: scale(0.98);
}

/* ==========================================================================
   Header Bottom Row (Desktop)
   ========================================================================== */
.custom-header-bottom {
  background-color: var(--color-bg-dark);
  display: flex;
  align-items: stretch;
  justify-content: space-between;
  padding: 0 40px;
  border-bottom: 2px solid var(--color-primary);
  position: relative;
  z-index: 99;
}

/* Toggle Menu Column */
.custom-header-bottom .header-category-toggle {
  background-color: var(--color-primary) !important;
  color: var(--color-text-light) !important;
  display: flex !important;
  align-items: center !important;
  justify-content: center !important;
  width: 50px !important;
  min-height: 50px !important;
  cursor: pointer !important;
  border: none !important;
  outline: none !important;
  padding: 0 !important;
  margin: 0 !important;
  transition: background-color 0.2s;
}

.custom-header-bottom .header-category-toggle:hover {
  background-color: var(--color-primary-hover) !important;
}

.custom-header-bottom .header-category-toggle svg {
  width: 24px !important;
  height: 24px !important;
  display: block !important;
  stroke: var(--color-text-light) !important;
}

/* Navigation Menu */
.header-nav-col {
  flex: 1;
  display: flex;
  align-items: center;
  padding-left: 20px;
}

.eyecasions-nav-menu {
  display: flex;
  list-style: none;
  margin: 0;
  padding: 0;
  height: 100%;
}

.eyecasions-nav-menu > li {
  position: relative;
  display: flex;
  align-items: center;
  height: 100%;
}

.eyecasions-nav-menu > li > a {
  color: var(--color-text-light);
  text-decoration: none;
  font-size: 14px;
  font-weight: 500;
  padding: 15px 18px;
  display: flex;
  align-items: center;
  gap: 6px;
  transition: background-color 0.2s, color 0.2s;
  height: 100%;
}

.eyecasions-nav-menu > li > a:hover {
  color: var(--color-text-light) !important;
  background-color: rgba(255, 255, 255, 0.08) !important;
}

.eyecasions-nav-menu > li.current-menu-item > a,
.eyecasions-nav-menu > li.current-menu-ancestor > a,
.eyecasions-nav-menu > li.current-menu-parent > a,
.eyecasions-nav-menu > li.current_page_item > a,
.eyecasions-nav-menu > li.current_page_parent > a,
.eyecasions-nav-menu > li.current_page_ancestor > a {
  color: var(--color-text-light) !important;
  background-color: var(--color-primary) !important;
}

/* Dropdown Menu styling */
.eyecasions-nav-menu li ul.sub-menu {
  position: absolute;
  top: 100%;
  left: 0;
  background-color: #ffffff;
  list-style: none;
  margin: 0;
  padding: 10px 0;
  min-width: 200px;
  box-shadow: 0 4px 15px rgba(0, 0, 0, 0.15);
  border-top: 3px solid var(--color-primary);
  opacity: 0;
  visibility: hidden;
  transform: translateY(10px);
  transition: opacity 0.2s, transform 0.2s, visibility 0.2s;
  z-index: 999;
}

.eyecasions-nav-menu li:hover > ul.sub-menu {
  opacity: 1;
  visibility: visible;
  transform: translateY(0);
}

.eyecasions-nav-menu li ul.sub-menu li {
  position: relative;
}

.eyecasions-nav-menu li ul.sub-menu li a {
  color: var(--color-text-dark);
  text-decoration: none;
  font-size: 13px;
  font-weight: 500;
  padding: 8px 20px;
  display: flex;
  justify-content: space-between;
  align-items: center;
  transition: background-color 0.2s, color 0.2s;
}

.eyecasions-nav-menu li ul.sub-menu li a:hover {
  background-color: #f1f5f9;
  color: var(--color-primary);
}

.eyecasions-nav-menu li ul.sub-menu li ul.sub-menu {
  top: 0;
  left: 100%;
  margin-top: -10px;
}

/* Submenu indicator arrows */
.eyecasions-nav-menu li.menu-item-has-children > a::after {
  content: "";
  display: inline-block;
  width: 5px;
  height: 5px;
  border-right: 1.5px solid currentColor;
  border-bottom: 1.5px solid currentColor;
  transform: rotate(45deg);
  margin-top: -2px;
  transition: transform 0.2s ease;
  flex-shrink: 0;
}

.eyecasions-nav-menu li ul.sub-menu li.menu-item-has-children > a::after {
  transform: rotate(-45deg);
  margin-top: 0;
}

/* Phone Column */
.header-phone-col {
  display: flex;
  align-items: center;
  flex: 0 0 auto;
}

.header-phone-link {
  color: var(--color-text-light);
  text-decoration: none;
  font-size: 14px;
  font-weight: 500;
  display: flex;
  align-items: center;
  gap: 8px;
  transition: color 0.2s;
}

.header-phone-link:hover {
  color: var(--color-primary);
}

.header-phone-link svg {
  width: 16px;
  height: 16px;
}

/* ==========================================================================
   Mobile Header Bar (Mobile Only)
   ========================================================================== */
.custom-header-mobile {
  display: none;
  background-color: var(--color-bg-light);
  padding: 12px 20px;
  align-items: center;
  justify-content: space-between;
  border-bottom: 2px solid var(--color-primary);
  position: sticky;
  top: 0;
  z-index: 1000;
}

.mobile-logo-img {
  max-height: 38px;
  width: auto;
  display: block;
}

.mobile-actions {
  display: flex;
  align-items: center;
  gap: 20px;
}

.mobile-cart-wrapper {
  position: relative;
}

.mobile-cart-link {
  color: var(--color-text-dark);
  display: flex;
  align-items: center;
  text-decoration: none;
}

.mobile-cart-link svg {
  width: 24px;
  height: 24px;
}

.mobile-menu-toggle-btn {
  background: none;
  border: none;
  color: var(--color-text-dark);
  cursor: pointer;
  padding: 5px;
  display: flex;
  align-items: center;
  justify-content: center;
}

.mobile-menu-toggle-btn svg {
  width: 26px;
  height: 26px;
}

/* ==========================================================================
   Mobile Responsive Side Drawer Menu
   ========================================================================== */
.drawer-overlay {
  position: fixed;
  top: 0;
  left: 0;
  width: 100%;
  height: 100%;
  background-color: rgba(0, 0, 0, 0.5);
  z-index: 10000;
  opacity: 0;
  visibility: hidden;
  transition: opacity 0.3s, visibility 0.3s;
}

.drawer-overlay.active {
  opacity: 1;
  visibility: visible;
}

.mobile-menu-drawer {
  position: fixed;
  top: 0;
  left: -300px;
  width: 290px;
  height: 100%;
  background-color: #ffffff;
  z-index: 10001;
  box-shadow: 4px 0 20px rgba(0, 0, 0, 0.15);
  display: flex;
  flex-direction: column;
  transition: left 0.3s ease-out;
}

.mobile-menu-drawer.active {
  left: 0;
}

.drawer-header {
  padding: 20px;
  display: flex;
  justify-content: space-between;
  align-items: center;
  border-bottom: 1px solid #f1f5f9;
}

.drawer-logo-img {
  max-height: 35px;
  width: auto;
}

.drawer-close-btn {
  background: none;
  border: none;
  color: var(--color-text-muted);
  cursor: pointer;
  padding: 5px;
  display: flex;
  align-items: center;
  justify-content: center;
}

.drawer-close-btn svg {
  width: 20px;
  height: 20px;
}

.drawer-content {
  flex: 1;
  overflow-y: auto;
  padding: 20px;
}

/* Search inside Mobile Drawer */
.drawer-search-wrapper {
  margin-bottom: 20px;
}

.drawer-search-form {
  display: flex;
  border: 1px solid var(--color-border);
  border-radius: 4px;
  overflow: hidden;
  background-color: #f8fafc;
}

.drawer-search-input {
  flex: 1;
  border: none;
  padding: 8px 12px;
  font-size: 13px;
  background: transparent;
  outline: none;
}

.drawer-search-btn {
  background-color: var(--color-primary);
  border: none;
  color: #fff;
  padding: 0 15px;
  cursor: pointer;
  display: flex;
  align-items: center;
  justify-content: center;
}

.drawer-search-btn svg {
  width: 14px;
  height: 14px;
}

/* Mobile Vertical Menu */
.drawer-nav-menu {
  list-style: none;
  padding: 0;
  margin: 0 0 25px 0;
}

.drawer-nav-menu li {
  position: relative;
  border-bottom: 1px solid #f1f5f9;
}

.drawer-nav-menu li a {
  color: var(--color-text-dark);
  text-decoration: none;
  font-size: 14px;
  font-weight: 500;
  padding: 12px 0;
  display: flex;
  justify-content: space-between;
  align-items: center;
  transition: color 0.2s ease;
}

.drawer-nav-menu li.current-menu-item > a,
.drawer-nav-menu li.current-menu-ancestor > a,
.drawer-nav-menu li.current-menu-parent > a,
.drawer-nav-menu li.current_page_item > a,
.drawer-nav-menu li.current_page_parent > a,
.drawer-nav-menu li.current_page_ancestor > a {
  color: var(--color-primary) !important;
  font-weight: 700 !important;
}

.drawer-nav-menu li.menu-item-has-children > a {
  padding-right: 40px; /* Space for expand button */
}

.drawer-submenu-toggle {
  position: absolute;
  right: 0;
  top: 0;
  width: 40px;
  height: 45px;
  background: none;
  border: none;
  cursor: pointer;
  display: flex;
  align-items: center;
  justify-content: center;
  color: var(--color-text-muted);
}

.drawer-submenu-toggle svg {
  width: 10px;
  height: 10px;
  transition: transform 0.2s;
}

.drawer-submenu-toggle.active svg {
  transform: rotate(180deg);
}

.drawer-nav-menu li ul.sub-menu {
  list-style: none;
  padding: 0 0 0 15px;
  margin: 0;
  display: none; /* Toggled by JS */
  background-color: #f8fafc;
}

.drawer-nav-menu li ul.sub-menu li {
  border: none;
}

.drawer-nav-menu li ul.sub-menu li a {
  padding: 8px 0;
  font-size: 13px;
  color: var(--color-text-muted);
}

.drawer-footer-actions {
  margin-top: 10px;
  display: flex;
  flex-direction: column;
  gap: 15px;
}

.drawer-signin-btn {
  background-color: var(--color-primary);
  color: #fff;
  text-align: center;
  padding: 10px;
  border-radius: 20px;
  font-size: 14px;
  font-weight: 600;
  text-decoration: none;
  display: block;
}

.drawer-phone-link {
  color: var(--color-text-dark);
  text-decoration: none;
  font-size: 14px;
  font-weight: 500;
  display: flex;
  align-items: center;
  justify-content: center;
  gap: 8px;
}

.drawer-phone-link svg {
  width: 14px;
  height: 14px;
  color: var(--color-primary);
}

/* ==========================================================================
   Footer Component Styles
   ========================================================================== */
.custom-footer-top {
  background-color: var(--color-bg-light);
  padding: 35px 20px;
}

.footer-nav-menu {
  display: flex;
  justify-content: center;
  align-items: center;
  gap: 40px;
  list-style: none;
  margin: 0;
  padding: 0;
  flex-wrap: wrap;
}

.footer-nav-menu li a {
  color: var(--color-text-dark);
  text-decoration: none;
  font-size: 15px;
  font-weight: 500;
  transition: color 0.2s;
}

.footer-nav-menu li a:hover {
  color: var(--color-primary);
}

.custom-footer-bottom {
  background-color: var(--color-bg-dark);
  padding: 20px 40px;
  display: flex;
  justify-content: space-between;
  align-items: center;
  flex-wrap: wrap;
  gap: 20px;
}

.footer-copyright-col {
  color: #94a3b8;
  font-size: 13px;
  line-height: 1.6;
  display: flex;
  flex-wrap: wrap;
  align-items: center;
  gap: 5px;
}

.footer-developer-credit {
  display: flex;
  align-items: center;
  gap: 6px;
  margin-left: 10px;
}

.footer-credit-separator {
  color: rgba(255, 255, 255, 0.15);
}

.footer-sitekori-logo {
  height: 18px !important;
  width: auto !important;
  max-height: 18px !important;
  max-width: 100px !important;
  display: inline-block !important;
  vertical-align: middle !important;
  transition: opacity 0.2s !important;
  filter: brightness(0) invert(1) !important;
}

.footer-sitekori-logo:hover {
  opacity: 0.8;
}

/* Payment Icons alignment styling */
.footer-payment-col {
  display: flex;
  align-items: center;
  gap: 8px;
}

.payment-card-badge {
  background-color: #ffffff;
  border-radius: 3px;
  padding: 3px 6px;
  display: flex;
  align-items: center;
  justify-content: center;
  height: 26px;
  width: 40px;
  box-shadow: 0 1px 3px rgba(0,0,0,0.1);
}

.payment-card-badge svg {
  width: 100%;
  height: 100%;
}

/* ==========================================================================
   Responsive Breakpoints
   ========================================================================== */
@media screen and (max-width: 991px) {
  /* Hide desktop header segments */
  .custom-header-top,
  .custom-header-bottom {
    display: none !important;
  }
  
  /* Show mobile header */
  .custom-header-mobile {
    display: flex;
  }
  
  /* Footer responsive adjustments */
  .custom-footer-bottom {
    flex-direction: column;
    text-align: center;
    justify-content: center;
    padding: 25px 20px;
  }
  
  .footer-copyright-col {
    justify-content: center;
    flex-direction: column;
    gap: 8px;
  }
  
  .footer-developer-credit {
    margin-left: 0;
  }
  
  .footer-credit-separator {
    display: none;
  }
  
  .footer-payment-col {
    justify-content: center;
  }
  
  .footer-nav-menu {
    gap: 20px;
  }
}

@media screen and (max-width: 575px) {
  .footer-nav-menu {
    flex-direction: column;
    gap: 15px;
  }
}

/* ==========================================================================
   Drawer Switching and Categories Styles
   ========================================================================== */
.drawer-desktop-categories-wrapper {
  margin-bottom: 25px;
}

.drawer-section-title {
  font-size: 15px;
  font-weight: 600;
  color: var(--color-text-dark);
  margin-top: 0;
  margin-bottom: 15px;
  padding-bottom: 8px;
  border-bottom: 2px solid var(--color-primary);
  text-transform: uppercase;
  letter-spacing: 0.5px;
}

.drawer-categories-menu {
  list-style: none;
  padding: 0;
  margin: 0;
}

.drawer-categories-menu li {
  border-bottom: 1px solid #f1f5f9;
}

.drawer-categories-menu li a {
  color: var(--color-text-dark);
  text-decoration: none;
  font-size: 14px;
  font-weight: 500;
  padding: 12px 0;
  display: flex;
  justify-content: space-between;
  align-items: center;
  transition: color 0.2s;
}

.drawer-categories-menu li a:hover {
  color: var(--color-primary);
}

.drawer-categories-menu li a .category-count {
  color: var(--color-text-muted);
  font-size: 12px;
  font-weight: normal;
  background-color: #f1f5f9;
  padding: 2px 8px;
  border-radius: 12px;
}

/* Hide/Show rules for Mobile vs Desktop (Drawer Contents) */
@media screen and (min-width: 992px) {
  .drawer-mobile-menu-wrapper {
    display: none !important;
  }
  .drawer-desktop-categories-wrapper {
    display: block !important;
  }
}

@media screen and (max-width: 991px) {
  .drawer-mobile-menu-wrapper {
    display: block !important;
  }
  .drawer-desktop-categories-wrapper {
    display: none !important;
  }
}

.footer-payment-img {
  max-height: 32px;
  width: auto;
  display: block;
}

/* ==========================================================================
   Banner Slider Section
   ========================================================================== */
.banner-slider-container {
  position: relative;
  width: 100%;
  aspect-ratio: 2000 / 813;
  background-color: #000000;
  overflow: hidden;
  border-radius: 8px;
}

.banner-slider {
  width: 100%;
  height: 100%;
}

.banner-slide {
  position: absolute;
  top: 0;
  left: 0;
  width: 100%;
  height: 100%;
  background-size: cover;
  background-position: center;
  opacity: 0;
  visibility: hidden;
  transition: opacity 0.8s ease-in-out, visibility 0.8s ease-in-out;
  display: flex;
  align-items: center;
  justify-content: center;
  z-index: 1;
}

.banner-slide.active {
  opacity: 1;
  visibility: visible;
  z-index: 2;
}

.banner-slide-content {
  text-align: center;
  color: #ffffff;
  max-width: 800px;
  padding: 20px;
  z-index: 10;
  transform: translateY(20px);
  opacity: 0;
  transition: transform 0.8s ease-in-out 0.2s, opacity 0.8s ease-in-out 0.2s;
}

.banner-slide.active .banner-slide-content {
  transform: translateY(0);
  opacity: 1;
}

.banner-slide-title {
  font-size: 48px;
  font-weight: 800;
  margin-bottom: 20px;
  line-height: 1.2;
  text-shadow: 0 2px 10px rgba(0,0,0,0.5);
  color: #ffffff !important;
}

.banner-slide-description {
  font-size: 18px;
  line-height: 1.6;
  margin-bottom: 35px;
  text-shadow: 0 1px 8px rgba(0,0,0,0.5);
}

.banner-slide-description p {
  color: #f1f5f9 !important;
  margin: 0;
}

.banner-slide-btn {
  background-color: var(--color-primary);
  color: var(--color-text-light) !important;
  font-size: 15px;
  font-weight: 600;
  padding: 12px 35px;
  border-radius: 30px;
  text-decoration: none;
  display: inline-flex;
  align-items: center;
  justify-content: center;
  transition: all 0.3s ease;
  box-shadow: 0 4px 15px rgba(0, 132, 209, 0.3);
}

.banner-slide-btn:hover {
  background-color: var(--color-primary-hover);
  transform: translateY(-2px);
  box-shadow: 0 6px 20px rgba(0, 132, 209, 0.4);
}

/* Arrows */
.banner-arrow {
  position: absolute;
  top: 50%;
  transform: translateY(-50%);
  background-color: rgba(255, 255, 255, 0.15);
  color: #ffffff;
  border: none;
  width: 50px;
  height: 50px;
  border-radius: 50%;
  cursor: pointer;
  z-index: 100;
  display: flex;
  align-items: center;
  justify-content: center;
  backdrop-filter: blur(5px);
  -webkit-backdrop-filter: blur(5px);
  transition: background-color 0.3s, transform 0.2s;
  outline: none;
}

.banner-arrow:hover {
  background-color: rgba(255, 255, 255, 0.3);
}

.banner-arrow:active {
  transform: translateY(-50%) scale(0.95);
}

.banner-arrow svg {
  width: 24px;
  height: 24px;
  stroke: currentColor;
}

.arrow-left {
  left: 20px;
}

.arrow-right {
  right: 20px;
}

/* Dots */
.banner-dots {
  position: absolute;
  bottom: 25px;
  left: 50%;
  transform: translateX(-50%);
  z-index: 100;
  display: flex;
  gap: 12px;
}

.banner-dot {
  width: 10px;
  height: 10px;
  border-radius: 50%;
  background-color: rgba(255, 255, 255, 0.4);
  cursor: pointer;
  transition: all 0.3s ease;
}

.banner-dot.active {
  background-color: var(--color-primary);
  transform: scale(1.2);
  width: 20px;
  border-radius: 10px;
}

@media screen and (max-width: 991px) {
  .banner-slider-container {
    width: 100vw !important;
    position: relative !important;
    left: 50% !important;
    right: 50% !important;
    margin-left: -50vw !important;
    margin-right: -50vw !important;
    max-width: 100vw !important;
    border-radius: 0 !important;
  }
}

@media screen and (max-width: 767px) {
  .banner-slider-container {
    height: auto !important;
  }
  .banner-arrow {
    width: 40px;
    height: 40px;
  }
  .banner-arrow svg {
    width: 18px;
    height: 18px;
  }
  .arrow-left {
    left: 10px;
  }
  .arrow-right {
    right: 10px;
  }
}

.banner-slide-link-overlay {
  position: absolute;
  top: 0;
  left: 0;
  width: 100%;
  height: 100%;
  display: block;
  z-index: 10;
}

/* ==========================================================================
   Category Slider Styles
   ========================================================================== */
.category-slider-section {
  background-color: #f0f5fa;
  padding: 30px 20px 20px 20px;
  position: relative;
  overflow: hidden;
  user-select: none;
  -webkit-user-select: none;
  -moz-user-select: none;
  -ms-user-select: none;
}

.category-slider-header {
  text-align: center;
  margin-bottom: 20px;
}

.category-slider-title {
  font-size: 20px;
  font-weight: 700;
  color: var(--color-text-dark);
  margin: 0;
  text-transform: uppercase;
  letter-spacing: 1px;
}

.category-slider-outer {
  position: relative;
  display: flex;
  align-items: center;
  max-width: 1200px;
  margin: 0 auto;
  padding: 0 50px;
}

.category-slider-track-container {
  flex: 1;
  overflow-x: auto;
  scrollbar-width: none; /* Hide scrollbar for Firefox */
  -ms-overflow-style: none;  /* IE/Edge */
  position: relative;
  padding: 15px 0; /* Add padding to prevent card shadows from being clipped */
  cursor: grab;
  scroll-behavior: smooth;
}

.category-slider-track-container::-webkit-scrollbar {
  display: none; /* Hide scrollbar for Chrome/Safari */
}

.category-slider-track-container:active {
  cursor: grabbing;
}

.category-slider-track {
  display: flex;
  gap: 25px;
}

.category-card {
  flex: 0 0 210px; /* Fixed card width on desktop */
  background: #ffffff;
  border-radius: 12px;
  padding: 24px 16px;
  border: 1px solid #e2e8f0;
  box-shadow: 0 4px 6px -1px rgba(0, 0, 0, 0.05), 0 2px 4px -1px rgba(0, 0, 0, 0.03);
  transition: transform 0.3s cubic-bezier(0.4, 0, 0.2, 1), 
              box-shadow 0.3s cubic-bezier(0.4, 0, 0.2, 1), 
              border-color 0.3s cubic-bezier(0.4, 0, 0.2, 1);
}

.category-card-link {
  text-decoration: none;
  display: block;
  text-align: center;
  color: inherit;
}

.category-image-wrapper {
  width: 110px;
  height: 110px;
  margin: 0 auto 18px auto;
  border-radius: 50%;
  overflow: hidden;
  background-color: #f8fafc;
  display: flex;
  align-items: center;
  justify-content: center;
  border: 3px solid #f1f5f9;
  transition: border-color 0.3s ease;
}

.category-card-img {
  width: 100%;
  height: 100%;
  object-fit: cover;
  transition: transform 0.5s cubic-bezier(0.4, 0, 0.2, 1);
}

.category-card-name {
  font-size: 16px;
  font-weight: 700;
  color: var(--color-text-dark);
  margin: 0 0 8px 0;
  transition: color 0.3s ease;
  line-height: 1.3;
}

.category-card-count {
  font-size: 12px;
  font-weight: 600;
  color: var(--color-text-muted);
  display: inline-block;
  background: #f1f5f9;
  padding: 4px 12px;
  border-radius: 20px;
  transition: background 0.3s ease, color 0.3s ease;
}

/* Hover States */
.category-card:hover {
  transform: translateY(-6px);
  box-shadow: 0 10px 20px -3px rgba(0, 132, 209, 0.12), 0 4px 6px -2px rgba(0, 132, 209, 0.05);
  border-color: rgba(0, 132, 209, 0.3);
}

.category-card:hover .category-image-wrapper {
  border-color: var(--color-primary);
}

.category-card:hover .category-card-img {
  transform: scale(1.1);
}

.category-card:hover .category-card-name {
  color: var(--color-primary);
}

.category-card:hover .category-card-count {
  background: var(--color-primary);
  color: #ffffff;
}

/* Category Slider Navigation Arrows */
.category-arrow {
  position: absolute !important;
  top: 50% !important;
  transform: translateY(-50%) !important;
  background-color: #ffffff !important;
  border: 1.5px solid #e2e8f0 !important;
  width: 44px !important;
  height: 44px !important;
  min-width: 44px !important;
  min-height: 44px !important;
  border-radius: 50% !important;
  cursor: pointer !important;
  z-index: 999 !important;
  display: flex !important;
  align-items: center !important;
  justify-content: center !important;
  padding: 0 !important;
  margin: 0 !important;
  transition: all 0.25s ease !important;
  box-shadow: 0 2px 8px rgba(0,0,0,0.06) !important;
  outline: none !important;
}

.category-arrow svg {
  width: 18px !important;
  height: 18px !important;
  stroke: var(--color-text-dark) !important;
  stroke-width: 2.5px !important;
  fill: none !important;
  display: block !important;
  transition: transform 0.2s ease !important;
}

.category-arrow.arrow-left {
  left: 10px !important;
}

.category-arrow.arrow-right {
  right: 10px !important;
}

.category-arrow:hover {
  background-color: var(--color-primary) !important;
  border-color: var(--color-primary) !important;
  box-shadow: 0 4px 12px rgba(0, 132, 209, 0.3) !important;
}

.category-arrow:hover svg {
  stroke: #ffffff !important;
}

.category-arrow.arrow-left:hover svg {
  transform: translateX(-2px) !important;
}

.category-arrow.arrow-right:hover svg {
  transform: translateX(2px) !important;
}

.category-arrow:active {
  transform: translateY(-50%) scale(0.95);
}

/* Responsive adjustments */
@media screen and (max-width: 991px) {
  .category-slider-section {
    padding: 40px 20px;
  }
  
  .category-slider-outer {
    padding: 0;
  }
  
  .category-arrow {
    display: none !important; /* Hide arrows on touch screens */
  }
  
  .category-slider-track-container {
    overflow-x: auto;
    padding: 10px 0;
    scrollbar-width: none; /* Firefox */
    -ms-overflow-style: none;  /* IE/Edge */
  }
  
  .category-slider-track-container::-webkit-scrollbar {
    display: none; /* Chrome/Safari */
  }
  
  .category-slider-track {
    transform: none !important; /* Reset transform for touch scrolling */
    gap: 16px;
    padding-left: 10px;
    padding-right: 10px;
  }
  
  .category-card {
    flex: 0 0 160px; /* Smaller card size on mobile/tablet */
    padding: 16px 12px;
  }
  
  .category-image-wrapper {
    width: 90px;
    height: 90px;
    margin-bottom: 12px;
  }
  
  .category-card-name {
    font-size: 14px;
  }
  
  .category-card-count {
    font-size: 11px;
    padding: 3px 10px;
  }
}

@media screen and (max-width: 575px) {
  .category-slider-title {
    font-size: 18px;
  }
}

/* ==========================================================================
   Homepage Custom Wrapper (Prevents side-by-side flex layout inside theme containers)
   ========================================================================== */
.homepage-custom-wrapper {
  display: block !important;
  width: 100% !important;
  clear: both !important;
  float: none !important;
}

/* ==========================================================================
   Homepage Product Grid Styles (Grouped by Category)
   ========================================================================== */
.homepage-products-section {
  padding: 40px 0;
  background-color: transparent;
  user-select: auto !important; /* Allow product interactions */
  -webkit-user-select: auto !important;
}

.category-products-block {
  margin-bottom: 50px;
}

.category-products-block:last-child {
  margin-bottom: 20px;
}

.category-block-header {
  display: flex;
  justify-content: space-between;
  align-items: center;
  margin-bottom: 25px;
  border-bottom: 1.5px solid #e2e8f0;
  padding-bottom: 12px;
}

.category-block-title {
  font-size: 22px;
  font-weight: 800;
  color: var(--color-text-dark);
  margin: 0;
  text-transform: uppercase;
  letter-spacing: 0.5px;
  position: relative;
}

.category-block-view-all {
  font-size: 14px;
  color: var(--color-primary) !important;
  text-decoration: none !important;
  font-weight: 700;
  transition: color 0.2s ease;
  display: inline-flex;
  align-items: center;
}

.category-block-view-all:hover {
  color: var(--color-primary-hover) !important;
}

.products-grid {
  display: grid;
  grid-template-columns: repeat(4, 1fr);
  gap: 25px;
}

.product-card {
  position: relative;
  background: #ffffff;
  border-radius: 12px;
  border: 1px solid #e2e8f0;
  overflow: hidden;
  display: flex;
  flex-direction: column;
  transition: transform 0.3s cubic-bezier(0.4, 0, 0.2, 1), 
              box-shadow 0.3s cubic-bezier(0.4, 0, 0.2, 1), 
              border-color 0.3s cubic-bezier(0.4, 0, 0.2, 1);
  box-shadow: 0 4px 6px -1px rgba(0, 0, 0, 0.02), 0 2px 4px -1px rgba(0, 0, 0, 0.01);
}

.product-card:hover {
  transform: translateY(-6px);
  box-shadow: 0 12px 25px -5px rgba(0, 0, 0, 0.08), 0 8px 10px -6px rgba(0, 0, 0, 0.03);
  border-color: rgba(0, 132, 209, 0.25);
}

.product-image-container {
  position: relative;
  width: 100%;
  padding-top: 100%; /* 1:1 Aspect Ratio */
  overflow: hidden;
  background-color: #f8fafc;
}

.product-card-img {
  position: absolute;
  top: 0;
  left: 0;
  width: 100%;
  height: 100%;
  object-fit: cover;
  transition: transform 0.5s cubic-bezier(0.4, 0, 0.2, 1);
}

.product-card:hover .product-card-img {
  transform: scale(1.06);
}

.product-badge-sale {
  position: absolute;
  top: 12px;
  left: 12px;
  background-color: #ef4444;
  color: #ffffff;
  font-size: 10px;
  font-weight: 700;
  padding: 4px 10px;
  border-radius: 20px;
  text-transform: uppercase;
  z-index: 10;
  box-shadow: 0 2px 6px rgba(239, 68, 68, 0.2);
}

.product-details {
  padding: 18px;
  display: flex;
  flex-direction: column;
  flex-grow: 1;
}

.product-card-title {
  font-size: 15px;
  font-weight: 700;
  color: var(--color-text-dark);
  margin: 0 0 4px 0;
  text-decoration: none !important;
  display: -webkit-box;
  -webkit-line-clamp: 2;
  -webkit-box-orient: vertical;
  overflow: hidden;
  line-height: 1.35;
  transition: color 0.2s ease;
}

.product-card-title:hover {
  color: var(--color-primary);
}

.product-card-price-row {
  display: flex;
  align-items: center;
  gap: 8px;
  margin-bottom: 12px;
  min-height: 24px;
}

.product-price {
  font-size: 16px;
  font-weight: 700;
  color: var(--color-primary);
}

.product-price-original {
  font-size: 13px;
  color: var(--color-text-muted);
  text-decoration: line-through;
}

/* WooCommerce Loop Add to Cart Button Override */
.product-add-to-cart-wrapper {
  margin-top: auto;
  position: relative;
}

.product-add-to-cart-wrapper a.button.add_to_cart_button {
  display: inline-flex !important;
  align-items: center !important;
  justify-content: center !important;
  background-color: var(--color-primary) !important;
  color: #ffffff !important;
  border: none !important;
  border-radius: 20px !important;
  padding: 9px 18px !important;
  font-size: 13px !important;
  font-weight: 600 !important;
  text-decoration: none !important;
  cursor: pointer !important;
  transition: all 0.25s ease !important;
  width: 100% !important;
  text-transform: capitalize !important;
  box-shadow: none !important;
  line-height: 1.4 !important;
}

.product-add-to-cart-wrapper a.button.add_to_cart_button:hover {
  background-color: var(--color-primary-hover) !important;
  transform: translateY(-1px) !important;
}

/* Spinner and dynamic cart links */
.product-add-to-cart-wrapper a.button.add_to_cart_button.loading {
  opacity: 0.85 !important;
}

.product-add-to-cart-wrapper a.button.add_to_cart_button.loading::after {
  content: "" !important;
  display: inline-block !important;
  width: 12px !important;
  height: 12px !important;
  margin-left: 8px !important;
  border: 2px solid #ffffff !important;
  border-top-color: transparent !important;
  border-radius: 50% !important;
  animation: button-spinner 0.6s linear infinite !important;
}

.product-add-to-cart-wrapper .added_to_cart.wc-forward {
  display: block !important;
  text-align: center !important;
  margin-top: 8px !important;
  font-size: 12px !important;
  font-weight: 700 !important;
  color: #10b981 !important;
  text-decoration: none !important;
  transition: color 0.2s !important;
}

.product-add-to-cart-wrapper .added_to_cart.wc-forward:hover {
  color: #059669 !important;
  text-decoration: underline !important;
}

/* Responsive Product Grid Breakpoints */
@media screen and (max-width: 991px) {
  .category-products-block {
    margin-bottom: 40px;
  }
  .category-block-title {
    font-size: 18px;
  }
  .products-grid {
    grid-template-columns: repeat(2, 1fr);
    gap: 20px;
  }
}

@media screen and (max-width: 575px) {
  .homepage-products-section {
    padding: 25px 0;
  }
  .category-products-block {
    margin-bottom: 30px;
  }
  .category-block-header {
    margin-bottom: 15px;
    padding-bottom: 8px;
    align-items: center !important;
  }
  .category-block-title {
    font-size: 16px;
  }
  .category-block-view-all {
    font-size: 12px;
  }
  .products-grid {
    gap: 12px;
  }
  .product-details {
    padding: 12px;
  }
  .product-card-title {
    font-size: 13px;
    margin-bottom: 4px;
  }
  .product-price {
    font-size: 14px;
  }
  .product-price-original {
    font-size: 12px;
  }
  .product-add-to-cart-wrapper a.button.add_to_cart_button {
    font-size: 12px !important;
    padding: 8px 12px !important;
  }
}

/* ==========================================================================
   Global Page Background Color Override
   ========================================================================== */
body,
.site,
#page,
#content,
.site-content,
#primary,
#main,
.ast-plain-container,
.ast-page-builder-template,
.ast-separate-container,
.elementor-page,
.elementor-inner {
  background-color: #f0f5fa !important;
}

/* ==========================================================================
   WooCommerce Single Product Page Styles
   ========================================================================== */
/* Remove single product top page padding and margins */
.single-product .site-content,
.single-product #primary,
.single-product #content,
.single-product .ast-woocommerce-container {
  padding-top: 0 !important;
  margin-top: 0 !important;
}

/* Main Card Wrapper */
.single-product div.product {
  background: #ffffff !important;
  border-radius: 16px !important;
  padding: 40px !important;
  box-shadow: 0 10px 30px -10px rgba(0, 0, 0, 0.04) !important;
  border: 1px solid #e2e8f0 !important;
  margin-top: 0 !important;
  margin-bottom: 50px !important;
  display: flex !important;
  flex-wrap: wrap !important;
  gap: 40px !important;
}

/* Fix columns widths for flex layout */
.single-product div.product .woocommerce-product-gallery {
  flex: 1 1 450px !important;
  max-width: 100% !important;
}

.single-product div.product .summary {
  flex: 1 1 500px !important;
  max-width: 100% !important;
  float: none !important;
  width: auto !important;
  padding: 0 !important;
}

/* Image gallery styling */
.woocommerce-product-gallery {
  border-radius: 12px !important;
  overflow: hidden !important;
}

.woocommerce-product-gallery img {
  border-radius: 12px !important;
  object-fit: cover !important;
}

.woocommerce-product-gallery .flex-control-thumbs {
  display: flex !important;
  gap: 10px !important;
  margin-top: 15px !important;
  padding: 0 !important;
}

.woocommerce-product-gallery .flex-control-thumbs li {
  flex: 0 0 80px !important;
  list-style: none !important;
}

.woocommerce-product-gallery .flex-control-thumbs img {
  border-radius: 6px !important;
  border: 2px solid transparent !important;
  transition: border-color 0.2s ease !important;
  cursor: pointer !important;
}

.woocommerce-product-gallery .flex-control-thumbs img.flex-active {
  border-color: var(--color-primary) !important;
}

/* Summary Details */
.single-product .product_title.entry-title {
  font-size: 28px !important;
  font-weight: 800 !important;
  color: var(--color-text-dark) !important;
  margin-bottom: 12px !important;
  line-height: 1.25 !important;
  letter-spacing: -0.3px !important;
}

.single-product .woocommerce-product-rating {
  display: flex !important;
  align-items: center !important;
  gap: 8px !important;
  margin-bottom: 15px !important;
}

.single-product .woocommerce-product-rating .star-rating {
  float: none !important;
  color: #f59e0b !important; /* Premium amber star color */
  font-size: 14px !important;
}

.single-product .woocommerce-product-rating .woocommerce-review-link {
  font-size: 13px !important;
  color: var(--color-text-muted) !important;
  text-decoration: none !important;
}

.single-product .woocommerce-product-rating .woocommerce-review-link:hover {
  color: var(--color-primary) !important;
}

/* Price block */
.single-product .summary .price {
  font-size: 24px !important;
  font-weight: 700 !important;
  color: var(--color-primary) !important;
  margin-bottom: 20px !important;
  display: flex !important;
  align-items: center !important;
  gap: 10px !important;
}

.single-product .summary .price del {
  font-size: 16px !important;
  color: var(--color-text-muted) !important;
  font-weight: normal !important;
}

.single-product .summary .price ins {
  text-decoration: none !important;
  background: transparent !important;
}

/* Short description */
.single-product .woocommerce-product-details__short-description {
  font-size: 15px !important;
  line-height: 1.6 !important;
  color: #475569 !important;
  margin-bottom: 0 !important;
  border-bottom: 1px solid #f1f5f9 !important;
  padding-bottom: 0 !important;
}

/* Add to Cart Area */
/* Add to Cart Area - Ensure quantity and add to cart are side-by-side and perfectly aligned on all screens */
.single-product form.cart,
.single-product form.cart .woocommerce-variation-add-to-cart {
  display: flex !important;
  flex-direction: row !important;
  flex-wrap: nowrap !important;
  align-items: center !important;
  justify-content: flex-start !important;
  gap: 12px !important;
  margin-bottom: 30px !important;
  width: 100% !important;
  float: none !important;
  clear: none !important;
}

/* Quantity input box container */
.single-product form.cart .quantity,
.woocommerce-cart .quantity {
  margin: 0 !important;
  display: inline-flex !important;
  align-items: center !important;
  justify-content: space-between !important;
  border: 1.5px solid var(--color-border) !important;
  border-radius: 23px !important;
  background-color: #f8fafc !important;
  overflow: hidden !important;
  height: 46px !important;
  min-height: 46px !important;
  max-height: 46px !important;
  padding: 0 !important;
  width: 120px !important;
  min-width: 120px !important;
  max-width: 120px !important;
  flex: 0 0 120px !important;
  box-sizing: border-box !important;
}

.single-product form.cart .quantity input.qty,
.woocommerce-cart .quantity input.qty {
  width: 50px !important;
  height: 100% !important;
  border: none !important;
  background: transparent !important;
  font-size: 15px !important;
  font-weight: 700 !important;
  color: var(--color-text-dark) !important;
  text-align: center !important;
  padding: 0 !important;
  margin: 0 !important;
  outline: none !important;
  -moz-appearance: textfield !important; /* Firefox hide spinner */
  box-shadow: none !important;
  flex: 1 1 auto !important;
}

.single-product form.cart .quantity input.qty:focus,
.woocommerce-cart .quantity input.qty:focus {
  border-color: var(--color-primary) !important;
}

/* Add to cart button */
.single-product form.cart button.single_add_to_cart_button.button {
  height: 46px !important;
  min-height: 46px !important;
  max-height: 46px !important;
  margin: 0 !important;
  padding: 0 30px !important;
  background-color: var(--color-primary) !important;
  color: #ffffff !important;
  border-radius: 23px !important;
  font-size: 15px !important;
  font-weight: 700 !important;
  letter-spacing: 0.3px !important;
  border: none !important;
  cursor: pointer !important;
  transition: all 0.3s ease !important;
  box-shadow: 0 4px 14px rgba(0, 132, 209, 0.2) !important;
  display: inline-flex !important;
  align-items: center !important;
  justify-content: center !important;
  flex: 0 0 auto !important;
  width: auto !important;
  white-space: nowrap !important;
}

.single-product form.cart button.single_add_to_cart_button.button:hover {
  background-color: var(--color-primary-hover) !important;
  transform: translateY(-1px) !important;
  box-shadow: 0 6px 20px rgba(0, 132, 209, 0.3) !important;
}

/* Meta list */
.single-product .product_meta {
  font-size: 13px !important;
  color: var(--color-text-muted) !important;
  border-top: 1px solid #f1f5f9 !important;
  padding-top: 20px !important;
  line-height: 2 !important;
}

.single-product .product_meta > span {
  display: block !important;
}

.single-product .product_meta strong,
.single-product .product_meta span.sku_wrapper,
.single-product .product_meta span.posted_in {
  color: var(--color-text-dark) !important;
  font-weight: 600 !important;
}

.single-product .product_meta a {
  color: var(--color-primary) !important;
  text-decoration: none !important;
  font-weight: 600 !important;
}

.single-product .product_meta a:hover {
  text-decoration: underline !important;
}

/* Tabs layout */
.single-product .woocommerce-tabs.wc-tabs-wrapper {
  width: 100% !important;
  margin-top: 25px !important;
  border-top: 1px solid #e2e8f0 !important;
  padding-top: 20px !important;
}

.single-product .woocommerce-tabs ul.tabs {
  display: flex !important;
  gap: 30px !important;
  list-style: none !important;
  padding: 0 0 10px 0 !important;
  margin: 0 0 30px 0 !important;
  border-bottom: 2.5px solid #f1f5f9 !important;
}

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

.single-product .woocommerce-tabs ul.tabs li a {
  font-size: 16px !important;
  font-weight: 700 !important;
  color: var(--color-text-muted) !important;
  text-decoration: none !important;
  padding-bottom: 12px !important;
  display: block !important;
  position: relative !important;
  transition: color 0.3s ease !important;
}

.single-product .woocommerce-tabs ul.tabs li a:hover {
  color: var(--color-primary) !important;
}

.single-product .woocommerce-tabs ul.tabs li.active a {
  color: var(--color-primary) !important;
}

.single-product .woocommerce-tabs ul.tabs li.active a::after {
  content: "" !important;
  position: absolute !important;
  bottom: -2.5px !important;
  left: 0 !important;
  width: 100% !important;
  height: 3px !important;
  background-color: var(--color-primary) !important;
  border-radius: 2px !important;
}

.single-product .woocommerce-tabs .woocommerce-Tabs-panel {
  font-size: 15px !important;
  line-height: 1.7 !important;
  color: #475569 !important;
}

.single-product .woocommerce-tabs .woocommerce-Tabs-panel h2 {
  display: none !important; /* Hide redundant headings inside panels */
}

/* Reviews styling */
#reviews #comments {
  margin-bottom: 30px !important;
}

#reviews #comments ol.commentlist {
  padding: 0 !important;
  list-style: none !important;
}

#reviews #comments ol.commentlist li {
  background-color: #f8fafc !important;
  border: 1px solid #e2e8f0 !important;
  border-radius: 12px !important;
  padding: 20px !important;
  margin-bottom: 20px !important;
}

#reviews #comments ol.commentlist li img.avatar {
  border-radius: 50% !important;
  border: 2px solid #ffffff !important;
  box-shadow: 0 2px 6px rgba(0,0,0,0.05) !important;
}

/* Related Products Grid Styling */
.single-product .related.products {
  width: 100% !important;
  margin-top: 20px !important;
  border-top: 1px solid #e2e8f0 !important;
  padding-top: 20px !important;
}

.single-product .related.products h2 {
  font-size: 22px !important;
  font-weight: 800 !important;
  color: var(--color-text-dark) !important;
  margin-bottom: 25px !important;
  text-transform: uppercase !important;
  letter-spacing: 0.5px !important;
  padding-bottom: 12px !important;
  border-bottom: 1.5px solid #cbd5e1 !important;
}

/* Make WooCommerce loops match our premium products grid style */
.woocommerce ul.products,
.woocommerce-page ul.products {
  display: grid !important;
  grid-template-columns: repeat(4, 1fr) !important;
  gap: 25px !important;
  list-style: none !important;
  padding: 0 !important;
  margin: 0 0 40px 0 !important;
  clear: both !important;
}

.woocommerce ul.products::before,
.woocommerce ul.products::after,
.woocommerce-page ul.products::before,
.woocommerce-page ul.products::after {
  display: none !important; /* Remove float clearings */
}

.woocommerce ul.products li.product,
.woocommerce-page ul.products li.product {
  position: relative !important;
  background: #ffffff !important;
  border-radius: 12px !important;
  border: 1px solid #e2e8f0 !important;
  overflow: hidden !important;
  display: flex !important;
  flex-direction: column !important;
  padding: 0 !important;
  margin: 0 !important;
  width: auto !important;
  float: none !important;
  transition: transform 0.3s cubic-bezier(0.4, 0, 0.2, 1), 
              box-shadow 0.3s cubic-bezier(0.4, 0, 0.2, 1), 
              border-color 0.3s cubic-bezier(0.4, 0, 0.2, 1) !important;
  box-shadow: 0 4px 6px -1px rgba(0, 0, 0, 0.02), 0 2px 4px -1px rgba(0, 0, 0, 0.01) !important;
}

.woocommerce ul.products li.product:hover,
.woocommerce-page ul.products li.product:hover {
  transform: translateY(-6px) !important;
  box-shadow: 0 12px 25px -5px rgba(0, 0, 0, 0.08), 0 8px 10px -6px rgba(0, 0, 0, 0.03) !important;
  border-color: rgba(0, 132, 209, 0.25) !important;
}

/* Loop card Thumbnail Container (forces 1:1 square aspect ratio) */
.woocommerce ul.products li.product .astra-shop-thumbnail-wrap,
.woocommerce-page ul.products li.product .astra-shop-thumbnail-wrap {
  position: relative !important;
  width: 100% !important;
  padding-top: 100% !important; /* 1:1 Aspect Ratio square box */
  overflow: hidden !important;
  background-color: #f8fafc !important;
  margin: 0 !important;
  border-bottom: 1px solid #cbd5e1 !important;
}

/* Ensure the image link fills the parent container so it is clickable and has correct height dimensions */
.woocommerce ul.products li.product .astra-shop-thumbnail-wrap a.woocommerce-LoopProduct-link,
.woocommerce ul.products li.product .astra-shop-thumbnail-wrap a.woocommerce-loop-product__link,
.woocommerce-page ul.products li.product .astra-shop-thumbnail-wrap a.woocommerce-LoopProduct-link,
.woocommerce-page ul.products li.product .astra-shop-thumbnail-wrap a.woocommerce-loop-product__link {
  position: absolute !important;
  top: 0 !important;
  left: 0 !important;
  width: 100% !important;
  height: 100% !important;
  display: block !important;
  margin: 0 !important;
  padding: 0 !important;
}

/* Loop product card image inside thumbnail wrapper */
.woocommerce ul.products li.product .astra-shop-thumbnail-wrap img,
.woocommerce-page ul.products li.product .astra-shop-thumbnail-wrap img {
  position: absolute !important;
  top: 0 !important;
  left: 0 !important;
  width: 100% !important;
  height: 100% !important;
  object-fit: cover !important;
  margin: 0 !important;
  display: block !important;
  transition: transform 0.5s cubic-bezier(0.4, 0, 0.2, 1) !important;
}

.woocommerce ul.products li.product:hover .astra-shop-thumbnail-wrap img,
.woocommerce-page ul.products li.product:hover .astra-shop-thumbnail-wrap img {
  transform: scale(1.06) !important;
}

/* Hide Astra's default loop overlay actions inside image container to match homepage card design */
.woocommerce ul.products li.product .astra-shop-thumbnail-wrap a.add_to_cart_button,
.woocommerce-page ul.products li.product .astra-shop-thumbnail-wrap a.add_to_cart_button {
  display: none !important;
}

/* Loop card Sale Badge */
.woocommerce ul.products li.product .astra-shop-thumbnail-wrap span.ast-onsale-card,
.woocommerce ul.products li.product .astra-shop-thumbnail-wrap span.onsale,
.woocommerce-page ul.products li.product .astra-shop-thumbnail-wrap span.ast-onsale-card,
.woocommerce-page ul.products li.product .astra-shop-thumbnail-wrap span.onsale {
  position: absolute !important;
  top: 12px !important;
  left: 12px !important;
  right: auto !important;
  background-color: #ef4444 !important;
  color: #ffffff !important;
  font-size: 10px !important;
  font-weight: 700 !important;
  padding: 4px 10px !important;
  border-radius: 20px !important;
  text-transform: uppercase !important;
  z-index: 10 !important;
  box-shadow: 0 2px 6px rgba(239, 68, 68, 0.2) !important;
  min-height: auto !important;
  line-height: 1.4 !important;
  width: auto !important;
  height: auto !important;
  border: none !important;
}

/* Loop card Summary Details Wrapper */
.woocommerce ul.products li.product .astra-shop-summary-wrap,
.woocommerce-page ul.products li.product .astra-shop-summary-wrap {
  padding: 18px !important;
  display: flex !important;
  flex-direction: column !important;
  flex-grow: 1 !important;
  background: #ffffff !important;
  box-sizing: border-box !important;
}

/* Hide product category in card summary to match homepage cards */
.woocommerce ul.products li.product .astra-shop-summary-wrap .ast-woo-product-category,
.woocommerce-page ul.products li.product .astra-shop-summary-wrap .ast-woo-product-category {
  display: none !important;
}

/* Product title link */
.woocommerce ul.products li.product .astra-shop-summary-wrap a.ast-loop-product__link,
.woocommerce-page ul.products li.product .astra-shop-summary-wrap a.ast-loop-product__link {
  text-decoration: none !important;
  margin: 0 0 4px 0 !important;
  display: block !important;
}

.woocommerce ul.products li.product h2.woocommerce-loop-product__title,
.woocommerce-page ul.products li.product h2.woocommerce-loop-product__title {
  font-size: 15px !important;
  font-weight: 700 !important;
  color: var(--color-text-dark) !important;
  margin: 0 !important;
  padding: 0 !important;
  min-height: 40px !important;
  line-height: 1.35 !important;
  display: -webkit-box !important;
  -webkit-line-clamp: 2 !important;
  -webkit-box-orient: vertical !important;
  overflow: hidden !important;
  transition: color 0.2s ease !important;
  text-transform: none !important;
  letter-spacing: normal !important;
}

.woocommerce ul.products li.product:hover h2.woocommerce-loop-product__title,
.woocommerce-page ul.products li.product:hover h2.woocommerce-loop-product__title {
  color: var(--color-primary) !important;
}

/* Price row inside summary wrapper */
.woocommerce ul.products li.product .price,
.woocommerce-page ul.products li.product .price {
  font-size: 16px !important;
  font-weight: 700 !important;
  color: var(--color-primary) !important;
  margin: 0 0 12px 0 !important;
  display: flex !important;
  align-items: center !important;
  gap: 8px !important;
  background: transparent !important;
  padding: 0 !important;
  min-height: 24px !important;
}

.woocommerce ul.products li.product .price del,
.woocommerce-page ul.products li.product .price del {
  font-size: 13px !important;
  color: var(--color-text-muted) !important;
  font-weight: normal !important;
  text-decoration: line-through !important;
  margin: 0 !important;
  display: inline-block !important;
  order: 2 !important;
}

.woocommerce ul.products li.product .price ins,
.woocommerce-page ul.products li.product .price ins {
  text-decoration: none !important;
  background: transparent !important;
  display: inline-block !important;
  font-weight: 700 !important;
  color: var(--color-primary) !important;
  margin: 0 !important;
  order: 1 !important;
}

.woocommerce ul.products li.product .price .woocommerce-Price-amount,
.woocommerce-page ul.products li.product .price .woocommerce-Price-amount {
  font-size: 16px !important;
  font-weight: 700 !important;
  color: var(--color-primary) !important;
}

.woocommerce ul.products li.product .price del .woocommerce-Price-amount,
.woocommerce-page ul.products li.product .price del .woocommerce-Price-amount {
  font-size: 13px !important;
  color: var(--color-text-muted) !important;
  font-weight: normal !important;
}

/* Loop card button inside summary wrapper */
.woocommerce ul.products li.product a.button,
.woocommerce-page ul.products li.product a.button {
  margin: auto 0 0 0 !important; /* Push to bottom of card details */
  display: inline-flex !important;
  align-items: center !important;
  justify-content: center !important;
  background-color: var(--color-primary) !important;
  color: #ffffff !important;
  border: none !important;
  border-radius: 20px !important;
  padding: 9px 18px !important;
  font-size: 13px !important;
  font-weight: 600 !important;
  text-decoration: none !important;
  transition: all 0.25s ease !important;
  width: 100% !important;
  text-transform: capitalize !important;
  cursor: pointer !important;
  box-shadow: none !important;
  line-height: 1.4 !important;
  float: none !important;
}

.woocommerce ul.products li.product a.button:hover,
.woocommerce-page ul.products li.product a.button:hover {
  background-color: var(--color-primary-hover) !important;
  transform: translateY(-1px) !important;
}

/* Spinner and dynamic cart links */
.woocommerce ul.products li.product a.button.loading,
.woocommerce-page ul.products li.product a.button.loading {
  opacity: 0.85 !important;
}

.woocommerce ul.products li.product a.button.loading::after,
.woocommerce-page ul.products li.product a.button.loading::after {
  content: "" !important;
  display: inline-block !important;
  width: 12px !important;
  height: 12px !important;
  margin-left: 8px !important;
  border: 2px solid #ffffff !important;
  border-top-color: transparent !important;
  border-radius: 50% !important;
  animation: button-spinner 0.6s linear infinite !important;
}

.woocommerce ul.products li.product .added_to_cart.wc-forward,
.woocommerce-page ul.products li.product .added_to_cart.wc-forward {
  margin: 8px 0 0 0 !important;
  text-align: center !important;
  display: block !important;
  font-size: 12px !important;
  font-weight: 700 !important;
  color: #10b981 !important;
  text-decoration: none !important;
  transition: color 0.2s !important;
}

/* Remove WooCommerce Shop & Archive Header/Title */
.woocommerce-products-header {
  display: none !important;
}

/* Result count and sorting alignment overrides inside Custom Premium Filter Bar */
.custom-shop-filter-bar {
  background-color: #ffffff !important;
  border-radius: 16px !important;
  box-shadow: 0 4px 20px rgba(0, 0, 0, 0.04) !important;
  border: 1px solid #f1f5f9 !important;
  padding: 16px 24px !important;
  margin-bottom: 30px !important;
  display: flex !important;
  justify-content: space-between !important;
  align-items: center !important;
  flex-wrap: wrap !important;
  gap: 16px !important;
  box-sizing: border-box !important;
  width: 100% !important;
}

/* Reset default result count margins and floats inside filter bar */
.custom-shop-filter-bar .woocommerce-result-count {
  margin: 0 !important;
  float: none !important;
  line-height: 1.4 !important;
  font-size: 14px !important;
  font-weight: 500 !important;
  color: var(--color-text-muted) !important;
}

.custom-shop-filter-bar .woocommerce-result-count strong {
  color: var(--color-text-dark) !important;
  font-weight: 700 !important;
}

/* Right side controls */
.custom-shop-filter-bar .filter-bar-right {
  display: flex !important;
  align-items: center !important;
  gap: 16px !important;
  flex-wrap: wrap !important;
}

/* Category select custom styling */
.custom-shop-filter-bar .filter-category-select-wrapper {
  position: relative !important;
  display: inline-block !important;
}

.custom-shop-filter-bar select.custom-category-select {
  height: 42px !important;
  padding: 0 35px 0 18px !important;
  border: 1.5px solid var(--color-border) !important;
  border-radius: 21px !important;
  font-size: 14px !important;
  font-weight: 600 !important;
  color: var(--color-text-dark) !important;
  outline: none !important;
  background-color: #ffffff !important;
  cursor: pointer !important;
  box-shadow: none !important;
  transition: all 0.2s ease !important;
  -webkit-appearance: none !important;
  -moz-appearance: none !important;
  appearance: none !important;
  background-image: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' width='16' height='16' viewBox='0 0 24 24' fill='none' stroke='%2364748b' stroke-width='2.5' stroke-linecap='round' stroke-linejoin='round'%3E%3Cpolyline points='6 9 12 15 18 9'%3E%3C/polyline%3E%3C/svg%3E") !important;
  background-repeat: no-repeat !important;
  background-position: right 15px center !important;
  background-size: 12px !important;
  width: auto !important;
}

.custom-shop-filter-bar select.custom-category-select:focus,
.custom-shop-filter-bar select.custom-category-select:hover {
  border-color: var(--color-primary) !important;
}

/* Clear filter button styling */
.custom-shop-filter-bar .filter-clear-btn {
  display: inline-flex !important;
  align-items: center !important;
  justify-content: center !important;
  height: 42px !important;
  padding: 0 20px !important;
  border: 1.5px solid #fca5a5 !important; /* light red/coral border */
  border-radius: 21px !important;
  background-color: #ffffff !important;
  color: #ef4444 !important; /* theme red color */
  font-size: 14px !important;
  font-weight: 600 !important;
  text-decoration: none !important;
  cursor: pointer !important;
  transition: all 0.2s ease !important;
  gap: 6px !important;
  box-sizing: border-box !important;
}

.custom-shop-filter-bar .filter-clear-btn:hover {
  background-color: #fef2f2 !important;
  border-color: #ef4444 !important;
  color: #b91c1c !important;
}

.custom-shop-filter-bar .filter-clear-btn .clear-icon {
  font-size: 12px !important;
  font-weight: 800 !important;
}

/* Sort wrapper */
.custom-shop-filter-bar .filter-sort-wrapper {
  display: flex !important;
  align-items: center !important;
  gap: 8px !important;
}

.custom-shop-filter-bar .sort-by-label {
  font-size: 14px !important;
  font-weight: 600 !important;
  color: var(--color-text-muted) !important;
  white-space: nowrap !important;
}

/* Reset default sorting form margins and float */
.custom-shop-filter-bar .woocommerce-ordering {
  margin: 0 !important;
  float: none !important;
  display: block !important;
}

/* Custom premium styling for orderby select dropdown */
.woocommerce-ordering select.orderby {
  height: 42px !important;
  padding: 0 35px 0 15px !important;
  border: 1.5px solid var(--color-border) !important;
  border-radius: 21px !important;
  font-size: 14px !important;
  font-weight: 600 !important;
  color: var(--color-text-dark) !important;
  outline: none !important;
  background-color: #ffffff !important;
  cursor: pointer !important;
  box-shadow: none !important;
  transition: all 0.2s ease !important;
  -webkit-appearance: none !important;
  -moz-appearance: none !important;
  appearance: none !important;
  background-image: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' width='16' height='16' viewBox='0 0 24 24' fill='none' stroke='%2364748b' stroke-width='2.5' stroke-linecap='round' stroke-linejoin='round'%3E%3Cpolyline points='6 9 12 15 18 9'%3E%3C/polyline%3E%3C/svg%3E") !important;
  background-repeat: no-repeat !important;
  background-position: right 15px center !important;
  background-size: 12px !important;
}

.woocommerce-ordering select.orderby:focus {
  border-color: var(--color-primary) !important;
}

/* WooCommerce Pagination Styling */
.woocommerce-pagination {
  text-align: center !important;
  margin-top: 40px !important;
  margin-bottom: 50px !important;
  width: 100% !important;
  clear: both !important;
}

.woocommerce-pagination ul.page-numbers {
  display: inline-flex !important;
  gap: 8px !important;
  list-style: none !important;
  padding: 0 !important;
  margin: 0 !important;
  border: none !important;
}

.woocommerce-pagination ul.page-numbers li {
  margin: 0 !important;
  padding: 0 !important;
  border: none !important;
}

.woocommerce-pagination ul.page-numbers li .page-numbers {
  display: inline-flex !important;
  align-items: center !important;
  justify-content: center !important;
  min-width: 40px !important;
  height: 40px !important;
  border-radius: 50% !important;
  font-size: 14px !important;
  font-weight: 700 !important;
  color: var(--color-text-dark) !important;
  text-decoration: none !important;
  background-color: #ffffff !important;
  border: 1.5px solid var(--color-border) !important;
  transition: all 0.2s ease !important;
}

.woocommerce-pagination ul.page-numbers li .page-numbers.current {
  background-color: var(--color-primary) !important;
  border-color: var(--color-primary) !important;
  color: #ffffff !important;
}

.woocommerce-pagination ul.page-numbers li a.page-numbers:hover {
  border-color: var(--color-primary) !important;
  color: var(--color-primary) !important;
  background-color: var(--color-bg-light) !important;
}

/* Responsive constraints */
@media screen and (max-width: 991px) {
  .single-product div.product {
    padding: 25px !important;
    gap: 20px !important; /* Reduce gap between product image and summary by 50% */
  }
  .single-product div.product .woocommerce-product-gallery {
    margin-bottom: 0 !important;
  }
  .woocommerce ul.products,
  .woocommerce-page ul.products,
  .single-product .related.products ul.products {
    grid-template-columns: repeat(2, 1fr) !important;
    gap: 20px !important;
  }

  /* Custom filter bar responsive style for tablet and mobile */
  .custom-shop-filter-bar {
    padding: 16px 20px !important;
    flex-direction: column !important;
    align-items: stretch !important;
    gap: 14px !important;
  }
  .custom-shop-filter-bar .filter-bar-left {
    text-align: center !important;
    width: 100% !important;
  }
  .custom-shop-filter-bar .filter-bar-right {
    width: 100% !important;
    display: flex !important;
    flex-wrap: wrap !important;
    gap: 12px !important;
    align-items: center !important;
    justify-content: center !important;
  }
  .custom-shop-filter-bar .filter-category-select-wrapper {
    flex: 1 1 calc(50% - 6px) !important;
    max-width: 100% !important;
  }
  .custom-shop-filter-bar select.custom-category-select {
    width: 100% !important;
    text-align: center !important;
  }
  .custom-shop-filter-bar .filter-clear-btn {
    flex: 1 1 calc(50% - 6px) !important;
    max-width: 100% !important;
    text-align: center !important;
  }
  .custom-shop-filter-bar .filter-sort-wrapper {
    flex: 1 1 100% !important;
    width: 100% !important;
    justify-content: space-between !important;
  }
  .custom-shop-filter-bar .filter-sort-wrapper select.orderby {
    flex-grow: 1 !important;
    width: auto !important;
  }
  .custom-shop-filter-bar .woocommerce-ordering {
    flex-grow: 1 !important;
    display: block !important;
  }
}

@media screen and (max-width: 575px) {
  .single-product div.product {
    padding: 15px !important;
    margin-top: 15px !important;
    gap: 20px !important;
  }
  .single-product div.product .woocommerce-product-gallery {
    margin-bottom: 0 !important;
  }
  .single-product .product_title.entry-title {
    font-size: 22px !important;
  }
  .woocommerce ul.products,
  .woocommerce-page ul.products,
  .single-product .related.products ul.products {
    grid-template-columns: repeat(2, 1fr) !important;
    gap: 12px !important;
  }
}

/* Quantity Input styling with Custom Plus/Minus buttons */
/* Hide default browser spinners */
.single-product form.cart .quantity input.qty::-webkit-outer-spin-button,
.single-product form.cart .quantity input.qty::-webkit-inner-spin-button,
.woocommerce-cart .quantity input.qty::-webkit-outer-spin-button,
.woocommerce-cart .quantity input.qty::-webkit-inner-spin-button {
  -webkit-appearance: none !important;
  margin: 0 !important;
}

.single-product form.cart .quantity button,
.woocommerce-cart .quantity button {
  width: 35px !important;
  height: 100% !important;
  border: none !important;
  background: transparent !important;
  cursor: pointer !important;
  font-size: 20px !important;
  font-weight: 600 !important;
  display: inline-flex !important;
  align-items: center !important;
  justify-content: center !important;
  color: var(--color-text-muted) !important;
  transition: all 0.2s ease !important;
  padding: 0 !important;
  margin: 0 !important;
  box-shadow: none !important;
  border-radius: 0 !important;
  flex: 0 0 35px !important;
}

.single-product form.cart .quantity button:hover,
.woocommerce-cart .quantity button:hover {
  background-color: #e2e8f0 !important;
  color: var(--color-primary) !important;
}

.single-product form.cart .quantity button:active,
.woocommerce-cart .quantity button:active {
  background-color: #cbd5e1 !important;
}

/* Hide single product categories list in summary */
.single-product-category {
  display: none !important;
}

/* ==========================================================================
   WooCommerce Cart Page Redesign
   ========================================================================== */

/* Cart Page Grid Container */
.woocommerce-cart .woocommerce {
  display: grid !important;
  grid-template-columns: 2.2fr 1fr !important;
  gap: 35px !important;
  align-items: start !important;
  margin-top: 30px !important;
  margin-bottom: 50px !important;
}

/* For empty cart messages and general notices, make them span full width */
.woocommerce-cart .woocommerce-notices-wrapper,
.woocommerce-cart .woocommerce-error,
.woocommerce-cart .woocommerce-info,
.woocommerce-cart .woocommerce-message,
.woocommerce-cart .cart-empty {
  grid-column: 1 / -1 !important;
  width: 100% !important;
}

/* 1. Left side form styling */
.woocommerce-cart .woocommerce-cart-form {
  background-color: #ffffff !important;
  border-radius: 16px !important;
  border: 1px solid #e2e8f0 !important;
  box-shadow: 0 4px 20px rgba(0, 0, 0, 0.03) !important;
  padding: 25px !important;
  overflow: hidden !important;
}

/* Cart Table Layout */
.woocommerce-cart table.cart {
  width: 100% !important;
  border-collapse: collapse !important;
  margin-bottom: 0 !important;
  border: none !important;
}

.woocommerce-cart table.cart thead {
  border-bottom: 2px solid #cbd5e1 !important;
}

.woocommerce-cart table.cart thead th {
  background-color: #f8fafc !important;
  padding: 16px 12px !important;
  font-weight: 700 !important;
  color: var(--color-text-dark) !important;
  font-size: 14px !important;
  text-transform: uppercase !important;
  letter-spacing: 0.5px !important;
  border: none !important;
}

.woocommerce-cart table.cart tbody tr.cart_item {
  border-bottom: 1px solid #e2e8f0 !important;
}

.woocommerce-cart table.cart tbody td {
  padding: 20px 12px !important;
  vertical-align: middle !important;
  border: none !important;
  color: var(--color-text-dark) !important;
  font-size: 14px !important;
}

/* Product Remove Button */
.woocommerce-cart table.cart a.remove {
  display: inline-flex !important;
  align-items: center !important;
  justify-content: center !important;
  width: 28px !important;
  height: 28px !important;
  border-radius: 50% !important;
  background-color: #fef2f2 !important;
  color: #ef4444 !important;
  font-size: 16px !important;
  font-weight: 700 !important;
  transition: all 0.2s ease !important;
  text-decoration: none !important;
  margin: 0 auto !important;
}

.woocommerce-cart table.cart a.remove:hover {
  background-color: #ef4444 !important;
  color: #ffffff !important;
}

/* Product Thumbnail */
.woocommerce-cart table.cart td.product-thumbnail img {
  width: 70px !important;
  height: 70px !important;
  object-fit: cover !important;
  border-radius: 8px !important;
  border: 1px solid #e2e8f0 !important;
}

/* Product Name Link */
.woocommerce-cart table.cart td.product-name a {
  color: var(--color-text-dark) !important;
  font-weight: 700 !important;
  font-size: 15px !important;
  text-decoration: none !important;
  transition: color 0.2s ease !important;
}

.woocommerce-cart table.cart td.product-name a:hover {
  color: var(--color-primary) !important;
}

/* Price & Subtotal text formatting */
.woocommerce-cart table.cart td.product-price,
.woocommerce-cart table.cart td.product-subtotal {
  font-weight: 700 !important;
  color: var(--color-text-dark) !important;
}

.woocommerce-cart table.cart td.product-subtotal {
  color: var(--color-primary) !important;
}

.woocommerce-cart table.cart td.product-price .woocommerce-Price-amount,
.woocommerce-cart table.cart td.product-subtotal .woocommerce-Price-amount {
  font-size: 15px !important;
}

/* Actions footer row */
.woocommerce-cart table.cart td.actions {
  padding: 25px 0 0 0 !important;
  display: flex !important;
  justify-content: space-between !important;
  align-items: center !important;
  flex-wrap: wrap !important;
  gap: 15px !important;
  border-top: none !important;
}

/* Coupon form wrapper */
.woocommerce-cart table.cart td.actions .coupon {
  display: flex !important;
  align-items: center !important;
  gap: 10px !important;
  float: none !important;
  margin: 0 !important;
}

.woocommerce-cart table.cart td.actions .coupon label {
  display: none !important; /* Hide redundant label */
}

/* Coupon input box */
.woocommerce-cart table.cart td.actions .coupon input#coupon_code {
  width: 180px !important;
  height: 42px !important;
  border: 1.5px solid var(--color-border) !important;
  border-radius: 21px !important;
  padding: 0 16px !important;
  font-size: 13px !important;
  font-weight: 500 !important;
  outline: none !important;
  background-color: #f8fafc !important;
  transition: all 0.2s ease !important;
  box-shadow: none !important;
  margin: 0 !important;
}

.woocommerce-cart table.cart td.actions .coupon input#coupon_code:focus {
  border-color: var(--color-primary) !important;
  background-color: #ffffff !important;
}

/* Apply Coupon button */
.woocommerce-cart table.cart td.actions .coupon button.button {
  height: 42px !important;
  border-radius: 21px !important;
  padding: 0 22px !important;
  font-size: 13px !important;
  font-weight: 700 !important;
  background-color: var(--color-primary) !important;
  color: #ffffff !important;
  border: none !important;
  cursor: pointer !important;
  transition: all 0.25s ease !important;
  box-shadow: none !important;
  line-height: 42px !important;
}

.woocommerce-cart table.cart td.actions .coupon button.button:hover {
  background-color: var(--color-primary-hover) !important;
  transform: translateY(-1px) !important;
}

/* Update Cart button styling */
.woocommerce-cart table.cart td.actions button[name="update_cart"] {
  height: 42px !important;
  border-radius: 21px !important;
  padding: 0 25px !important;
  font-size: 13px !important;
  font-weight: 700 !important;
  background-color: transparent !important;
  color: var(--color-primary) !important;
  border: 2px solid var(--color-primary) !important;
  cursor: pointer !important;
  transition: all 0.25s ease !important;
  margin: 0 !important;
  float: none !important;
  display: inline-flex !important;
  align-items: center !important;
  justify-content: center !important;
  line-height: 1 !important;
  text-transform: uppercase !important;
  letter-spacing: 0.5px !important;
}

.woocommerce-cart table.cart td.actions button[name="update_cart"]:hover:not(:disabled) {
  background-color: var(--color-primary) !important;
  color: #ffffff !important;
  transform: translateY(-1px) !important;
  box-shadow: 0 4px 12px rgba(0, 132, 209, 0.15) !important;
}

.woocommerce-cart table.cart td.actions button[name="update_cart"]:disabled {
  opacity: 0.5 !important;
  cursor: not-allowed !important;
  background-color: transparent !important;
  color: var(--color-text-muted) !important;
  border-color: var(--color-border) !important;
}

/* 2. Right side totals card styling */
.woocommerce-cart .cart-collaterals {
  width: 100% !important;
}

.woocommerce-cart .cart_totals {
  background-color: #ffffff !important;
  border-radius: 16px !important;
  border: 1px solid #e2e8f0 !important;
  box-shadow: 0 4px 20px rgba(0, 0, 0, 0.03) !important;
  padding: 30px !important;
  position: sticky !important;
  top: 100px !important;
  z-index: 10 !important;
  width: 100% !important;
  float: none !important;
}

.woocommerce-cart .cart_totals h2 {
  font-size: 20px !important;
  font-weight: 800 !important;
  color: var(--color-text-dark) !important;
  text-transform: uppercase !important;
  letter-spacing: 0.5px !important;
  margin-bottom: 20px !important;
  padding-bottom: 12px !important;
  border-bottom: 1.5px solid #cbd5e1 !important;
}

/* Cart Totals Table */
.woocommerce-cart .cart_totals table.shop_table {
  width: 100% !important;
  border-collapse: collapse !important;
  border: none !important;
  margin-bottom: 25px !important;
}

.woocommerce-cart .cart_totals table.shop_table tr {
  border-bottom: 1px solid #f1f5f9 !important;
}

.woocommerce-cart .cart_totals table.shop_table tr.order-total {
  border-bottom: none !important;
  border-top: 1.5px solid #e2e8f0 !important;
}

.woocommerce-cart .cart_totals table.shop_table th,
.woocommerce-cart .cart_totals table.shop_table td {
  padding: 14px 0 !important;
  border: none !important;
  background: transparent !important;
  text-align: left !important;
}

.woocommerce-cart .cart_totals table.shop_table td {
  text-align: right !important;
}

.woocommerce-cart .cart_totals table.shop_table th {
  font-weight: 600 !important;
  color: var(--color-text-muted) !important;
  font-size: 14px !important;
  width: 35% !important;
}

.woocommerce-cart .cart_totals table.shop_table td {
  font-weight: 700 !important;
  color: var(--color-text-dark) !important;
  font-size: 14px !important;
}

.woocommerce-cart .cart_totals table.shop_table tr.order-total th {
  color: var(--color-text-dark) !important;
  font-size: 15px !important;
}

.woocommerce-cart .cart_totals table.shop_table tr.order-total td {
  color: var(--color-primary) !important;
  font-size: 20px !important;
}

/* Shipping Calculator & Selectors inside Totals Card */
.woocommerce-cart .cart_totals .shipping-calculator-button {
  color: var(--color-primary) !important;
  font-weight: 700 !important;
  text-decoration: none !important;
}

.woocommerce-cart .cart_totals .shipping-calculator-button:hover {
  text-decoration: underline !important;
}

/* Shipping calculator inputs */
.woocommerce-cart .cart_totals select.country_to_state,
.woocommerce-cart .cart_totals select.state_select,
.woocommerce-cart .cart_totals input.input-text {
  height: 38px !important;
  border: 1.5px solid var(--color-border) !important;
  border-radius: 19px !important;
  padding: 0 15px !important;
  font-size: 13px !important;
  font-weight: 500 !important;
  outline: none !important;
  background-color: #ffffff !important;
  width: 100% !important;
  margin-bottom: 10px !important;
  color: var(--color-text-dark) !important;
}

.woocommerce-cart .cart_totals select.country_to_state:focus,
.woocommerce-cart .cart_totals select.state_select:focus,
.woocommerce-cart .cart_totals input.input-text:focus {
  border-color: var(--color-primary) !important;
}

/* Shipping method list */
.woocommerce-cart ul#shipping_method {
  list-style: none !important;
  padding: 0 !important;
  margin: 0 !important;
  text-align: right !important;
}

.woocommerce-cart ul#shipping_method li {
  margin-bottom: 8px !important;
  display: flex !important;
  align-items: center !important;
  justify-content: flex-end !important;
  gap: 8px !important;
  font-size: 13px !important;
}

.woocommerce-cart ul#shipping_method li input[type="radio"] {
  margin: 0 !important;
  cursor: pointer !important;
}

/* Proceed to Checkout Button */
.woocommerce-cart .wc-proceed-to-checkout {
  padding: 0 !important;
}

.woocommerce-cart .wc-proceed-to-checkout a.checkout-button.button.alt {
  display: flex !important;
  align-items: center !important;
  justify-content: center !important;
  height: 50px !important;
  border-radius: 25px !important;
  background-color: var(--color-primary) !important;
  color: #ffffff !important;
  font-size: 15px !important;
  font-weight: 700 !important;
  text-transform: uppercase !important;
  letter-spacing: 0.5px !important;
  box-shadow: 0 4px 14px rgba(0, 132, 209, 0.2) !important;
  transition: all 0.3s ease !important;
  width: 100% !important;
  margin: 0 !important;
  cursor: pointer !important;
}

.woocommerce-cart .wc-proceed-to-checkout a.checkout-button.button.alt:hover {
  background-color: var(--color-primary-hover) !important;
  transform: translateY(-2px) !important;
  box-shadow: 0 6px 20px rgba(0, 132, 209, 0.3) !important;
}

/* Empty Cart Page Styling */
.woocommerce-cart .cart-empty {
  text-align: center !important;
  padding: 50px 30px !important;
  background-color: #ffffff !important;
  border-radius: 16px !important;
  border: 1px solid #e2e8f0 !important;
  box-shadow: 0 4px 20px rgba(0, 0, 0, 0.03) !important;
  color: var(--color-text-dark) !important;
  font-size: 18px !important;
  font-weight: 600 !important;
  margin-bottom: 25px !important;
}

.woocommerce-cart .return-to-shop {
  text-align: center !important;
  width: 100% !important;
}

.woocommerce-cart .return-to-shop a.button {
  display: inline-flex !important;
  align-items: center !important;
  justify-content: center !important;
  height: 46px !important;
  border-radius: 23px !important;
  background-color: var(--color-primary) !important;
  color: #ffffff !important;
  padding: 0 35px !important;
  font-size: 14px !important;
  font-weight: 700 !important;
  text-decoration: none !important;
  transition: all 0.25s ease !important;
  box-shadow: 0 4px 14px rgba(0, 132, 209, 0.15) !important;
}

.woocommerce-cart .return-to-shop a.button:hover {
  background-color: var(--color-primary-hover) !important;
  transform: translateY(-1px) !important;
  box-shadow: 0 6px 20px rgba(0, 132, 209, 0.25) !important;
}

/* ==========================================================================
   Cart Page Responsive Styles
   ========================================================================== */
@media screen and (max-width: 991px) {
  .woocommerce-cart .woocommerce {
    grid-template-columns: 1fr !important;
    gap: 30px !important;
  }
  
  .woocommerce-cart .cart_totals {
    position: static !important;
  }
  
  .woocommerce-cart table.cart thead {
    display: none !important; /* Hide column labels on small tablet/mobile */
  }
  
  .woocommerce-cart table.cart tbody tr.cart_item {
    display: flex !important;
    flex-wrap: wrap !important;
    position: relative !important;
    padding: 15px 15px 15px 105px !important; /* Leave room for thumbnail on left */
    border-bottom: 1.5px dashed #cbd5e1 !important;
    align-items: center !important;
    min-height: 110px !important;
  }
  
  .woocommerce-cart table.cart tbody td {
    border: none !important;
    color: var(--color-text-dark) !important;
    font-size: 14px !important;
    padding: 4px 0 !important;
    display: flex !important;
    align-items: center !important;
  }

  .woocommerce-cart table.cart tbody td.product-remove {
    position: absolute !important;
    right: 10px !important;
    top: 10px !important;
    padding: 0 !important;
    z-index: 10 !important;
    width: auto !important;
    justify-content: center !important;
  }

  .woocommerce-cart table.cart tbody td.product-remove::before {
    display: none !important;
  }
  
  .woocommerce-cart table.cart tbody td.product-thumbnail {
    position: absolute !important;
    left: 15px !important;
    top: 15px !important;
    padding: 0 !important;
    width: 75px !important;
    height: 75px !important;
    display: flex !important;
    justify-content: center !important;
  }

  .woocommerce-cart table.cart tbody td.product-thumbnail::before {
    display: none !important;
  }

  .woocommerce-cart table.cart td.product-thumbnail img {
    width: 100% !important;
    height: 100% !important;
    object-fit: cover !important;
  }

  .woocommerce-cart table.cart tbody td.product-name {
    flex: 1 1 100% !important;
    width: 100% !important;
    padding: 0 25px 8px 0 !important; /* padding-right to avoid overlapping with remove button */
    text-align: left !important;
    display: block !important;
  }

  .woocommerce-cart table.cart tbody td.product-name::before {
    display: none !important;
  }

  .woocommerce-cart table.cart tbody td.product-price {
    flex: 1 1 auto !important;
    justify-content: flex-start !important;
    text-align: left !important;
  }

  .woocommerce-cart table.cart tbody td.product-quantity {
    flex: 0 0 auto !important;
    justify-content: flex-end !important;
  }

  .woocommerce-cart table.cart tbody td.product-quantity::before {
    display: none !important;
  }

  .woocommerce-cart table.cart tbody td.product-subtotal {
    flex: 1 1 100% !important;
    border-top: 1px solid #f1f5f9 !important;
    padding-top: 8px !important;
    margin-top: 4px !important;
    justify-content: space-between !important;
  }

  /* Add label prefix matching data-title for price and subtotal */
  .woocommerce-cart table.cart tbody td.product-price::before,
  .woocommerce-cart table.cart tbody td.product-subtotal::before {
    content: attr(data-title) ": " !important;
    font-weight: 700 !important;
    color: var(--color-text-muted) !important;
    margin-right: 5px !important;
  }
  
  .woocommerce-cart table.cart td.actions {
    flex-direction: column !important;
    align-items: stretch !important;
  }
  
  .woocommerce-cart table.cart td.actions .coupon {
    flex-direction: column !important;
    align-items: stretch !important;
    width: 100% !important;
  }
  
  .woocommerce-cart table.cart td.actions .coupon input#coupon_code {
    width: 100% !important;
  }
  
  .woocommerce-cart table.cart td.actions button[name="update_cart"] {
    width: 100% !important;
    justify-content: center !important;
  }
}

/* ==========================================================================
   WooCommerce Checkout Page Redesign
   ========================================================================== */

/* Checkout Page Grid Layout */
.woocommerce-checkout .woocommerce {
  display: block !important;
}

.woocommerce-checkout form.checkout {
  display: grid !important;
  grid-template-columns: 1.2fr 1fr !important;
  gap: 35px !important;
  align-items: start !important;
  margin-top: 30px !important;
  margin-bottom: 50px !important;
  width: 100% !important;
}

/* Ensure validation notices/errors span the full width of the grid */
.woocommerce-checkout form.checkout .woocommerce-NoticeGroup,
.woocommerce-checkout form.checkout .woocommerce-error,
.woocommerce-checkout form.checkout .woocommerce-message,
.woocommerce-checkout form.checkout .woocommerce-info {
  grid-column: 1 / -1 !important;
  width: 100% !important;
  margin-bottom: 20px !important;
}

/* Explicit Grid Placements to keep Left and Right columns aligned */
.woocommerce-checkout #customer_details {
  grid-column: 1 !important;
  grid-row: 1 !important;
}

.woocommerce-checkout #order_review_heading {
  display: none !important;
}

.woocommerce-checkout #order_review {
  grid-column: 2 !important;
  grid-row: 1 !important;
}

.woocommerce-checkout wc-order-attribution-inputs {
  display: none !important;
}

/* Left Column: Customer details (billing and shipping fields) */
.woocommerce-checkout #customer_details {
  background-color: #ffffff !important;
  border-radius: 16px !important;
  border: 1px solid #e2e8f0 !important;
  box-shadow: 0 4px 20px rgba(0, 0, 0, 0.03) !important;
  padding: 30px !important;
  width: 100% !important;
}

/* Right Column: Order Review */
.woocommerce-checkout #order_review {
  background-color: #ffffff !important;
  border-radius: 16px !important;
  border: 1px solid #e2e8f0 !important;
  box-shadow: 0 4px 20px rgba(0, 0, 0, 0.03) !important;
  padding: 30px !important;
  width: 100% !important;
}

/* Form field elements checkout overrides */
.woocommerce-checkout .form-row input.input-text,
.woocommerce-checkout .form-row select,
.woocommerce-checkout .form-row textarea {
  height: 42px !important;
  border: 1.5px solid var(--color-border) !important;
  border-radius: 21px !important;
  padding: 0 16px !important;
  font-size: 13px !important;
  background-color: #f8fafc !important;
  outline: none !important;
  box-shadow: none !important;
  transition: all 0.2s ease !important;
}

.woocommerce-checkout .form-row textarea {
  height: 100px !important;
  border-radius: 12px !important;
  padding: 12px 16px !important;
}

.woocommerce-checkout .form-row input.input-text:focus,
.woocommerce-checkout .form-row select:focus,
.woocommerce-checkout .form-row textarea:focus {
  border-color: var(--color-primary) !important;
  background-color: #ffffff !important;
}

/* Checkout payment place order button */
.woocommerce-checkout #place_order {
  display: flex !important;
  align-items: center !important;
  justify-content: center !important;
  height: 50px !important;
  border-radius: 25px !important;
  background-color: var(--color-primary) !important;
  color: #ffffff !important;
  font-size: 15px !important;
  font-weight: 700 !important;
  text-transform: uppercase !important;
  letter-spacing: 0.5px !important;
  box-shadow: 0 4px 14px rgba(0, 132, 209, 0.2) !important;
  transition: all 0.3s ease !important;
  width: 100% !important;
  cursor: pointer !important;
  border: none !important;
}

.woocommerce-checkout #place_order:hover {
  background-color: var(--color-primary-hover) !important;
  transform: translateY(-2px) !important;
  box-shadow: 0 6px 20px rgba(0, 132, 209, 0.3) !important;
}

@media screen and (max-width: 991px) {
  .woocommerce-checkout form.checkout {
    grid-template-columns: 1fr !important;
    gap: 30px !important;
  }
  
  .woocommerce-checkout #customer_details {
    grid-column: auto !important;
    grid-row: auto !important;
  }
  
  .woocommerce-checkout #order_review_heading {
    display: none !important;
  }
  
  .woocommerce-checkout #order_review {
    grid-column: auto !important;
    grid-row: auto !important;
    border-radius: 16px !important;
    padding: 20px !important;
  }
}

/* Custom Checkout Shipment Section (under Billing Details) */
.custom-checkout-shipping-section {
  margin-top: 30px !important;
  border-top: 1px solid var(--color-border) !important;
  padding-top: 25px !important;
}

.custom-checkout-shipping-section h3 {
  font-size: 14px !important;
  font-weight: 800 !important;
  text-transform: uppercase !important;
  letter-spacing: 0.5px !important;
  color: var(--color-text-dark) !important;
  margin-bottom: 15px !important;
}

.custom-shipping-pills-container {
  display: flex !important;
  gap: 15px !important;
}

.custom-shipping-pill {
  flex: 1 !important;
  background-color: #f8fafc !important;
  border: 1.5px solid var(--color-border) !important;
  border-radius: 22px !important;
  padding: 12px 20px !important;
  font-size: 13px !important;
  font-weight: 700 !important;
  color: var(--color-text-dark) !important;
  text-align: center !important;
  cursor: pointer !important;
  transition: all 0.2s ease !important;
  display: flex !important;
  flex-direction: column !important;
  align-items: center !important;
  justify-content: center !important;
  line-height: 1.4 !important;
}

.custom-shipping-pill:hover {
  border-color: var(--color-primary) !important;
  background-color: #ffffff !important;
}

.custom-shipping-pill.active {
  background-color: var(--color-primary) !important;
  border-color: var(--color-primary) !important;
  color: #ffffff !important;
  box-shadow: 0 4px 12px rgba(0, 132, 209, 0.2) !important;
}

.custom-shipping-pill.active span.woocommerce-Price-amount {
  color: #ffffff !important;
}

.custom-shipping-pill span.woocommerce-Price-amount {
  font-weight: 800 !important;
  color: var(--color-primary) !important;
  display: block !important;
  margin-top: 2px !important;
}

/* Hide original shipping checkbox and wrapper */
#ship-to-different-address,
.woocommerce-shipping-fields {
  display: none !important;
}

/* Hide privacy policy text block in checkout */
.woocommerce-privacy-policy-text {
  display: none !important;
}

/* Ensure the add-to-cart form allows wrapping of children */
.woocommerce div.product form.cart {
  flex-wrap: wrap !important;
  display: flex !important;
}

.eyecasions-custom-product-fields {
  margin: 15px 0 20px 0 !important;
  font-family: var(--font-family) !important;
  width: 100% !important;
  flex: 0 0 100% !important;
  max-width: 100% !important;
  box-sizing: border-box !important;
}

.eyecasions-custom-product-fields .custom-fields-title {
  font-size: 15px !important;
  font-weight: 700 !important;
  color: var(--color-text-dark) !important;
  margin-top: 0 !important;
  margin-bottom: 15px !important;
  text-transform: uppercase !important;
  letter-spacing: 0.5px !important;
}

.eyecasions-custom-product-fields .custom-field-group {
  margin-bottom: 15px !important;
}

.eyecasions-custom-product-fields .custom-field-group:last-child {
  margin-bottom: 0 !important;
}

.eyecasions-custom-product-fields .custom-field-group label {
  display: block !important;
  font-size: 13px !important;
  color: var(--color-text-dark) !important;
  margin-bottom: 6px !important;
  font-weight: 600 !important;
}

.eyecasions-custom-product-fields .custom-field-group label span.required {
  color: #ef4444 !important;
  font-weight: 700 !important;
}

.eyecasions-custom-product-fields .custom-field-group label span.optional-label {
  color: var(--color-text-muted) !important;
  font-size: 11px !important;
  font-weight: normal !important;
  margin-left: 4px !important;
}

/* Dropdown */
.eyecasions-custom-product-fields select.custom-fields-select {
  width: 100% !important;
  height: 42px !important;
  border: 1.5px solid #cbd5e1 !important;
  border-radius: 8px !important;
  padding: 0 12px !important;
  font-size: 13px !important;
  color: var(--color-text-dark) !important;
  background-color: #ffffff !important;
  outline: none !important;
  transition: border-color 0.2s ease !important;
  box-shadow: none !important;
}

.eyecasions-custom-product-fields select.custom-fields-select:focus {
  border-color: var(--color-primary) !important;
}

/* Textarea */
.eyecasions-custom-product-fields textarea.custom-fields-textarea {
  width: 100% !important;
  border: 1.5px solid #cbd5e1 !important;
  border-radius: 8px !important;
  padding: 10px 12px !important;
  font-size: 13px !important;
  color: var(--color-text-dark) !important;
  background-color: #ffffff !important;
  outline: none !important;
  transition: border-color 0.2s ease !important;
  resize: vertical !important;
  box-shadow: none !important;
}

.eyecasions-custom-product-fields textarea.custom-fields-textarea:focus {
  border-color: var(--color-primary) !important;
}

/* Custom File Uploader styling */
.eyecasions-custom-product-fields .custom-file-upload-wrapper {
  position: relative !important;
  display: flex !important;
  align-items: center !important;
  width: 100% !important;
  height: 42px !important;
  border: 1.5px solid #cbd5e1 !important;
  border-radius: 8px !important;
  background-color: #ffffff !important;
  overflow: hidden !important;
  cursor: pointer !important;
}

.eyecasions-custom-product-fields .custom-file-upload-wrapper:hover {
  border-color: var(--color-primary) !important;
}

.eyecasions-custom-product-fields input.custom-fields-file {
  position: absolute !important;
  top: 0 !important;
  left: 0 !important;
  width: 100% !important;
  height: 100% !important;
  opacity: 0 !important;
  cursor: pointer !important;
  z-index: 2 !important;
}

.eyecasions-custom-product-fields .file-custom-button {
  display: inline-flex !important;
  align-items: center !important;
  justify-content: center !important;
  gap: 8px !important;
  height: 100% !important;
  padding: 0 15px !important;
  background-color: #f1f5f9 !important;
  color: var(--color-text-dark) !important;
  border-right: 1.5px solid #cbd5e1 !important;
  font-size: 12px !important;
  font-weight: 700 !important;
  white-space: nowrap !important;
  pointer-events: none !important;
  transition: all 0.2s ease !important;
}

.eyecasions-custom-product-fields .custom-file-upload-wrapper:hover .file-custom-button {
  background-color: var(--color-primary) !important;
  color: #ffffff !important;
  border-right-color: var(--color-primary) !important;
}

.eyecasions-custom-product-fields .file-name-display {
  padding: 0 12px !important;
  font-size: 12px !important;
  color: var(--color-text-muted) !important;
  white-space: nowrap !important;
  overflow: hidden !important;
  text-overflow: ellipsis !important;
  pointer-events: none !important;
  min-width: 0 !important;
  max-width: 100% !important;
  flex: 1 !important;
  display: block !important;
  width: 0 !important;
}

/* Link styling in cart */
.cart-file-link {
  color: var(--color-primary) !important;
  font-weight: bold !important;
  text-decoration: underline !important;
}

.cart-file-link:hover {
  color: var(--color-primary-hover) !important;
}

/* Prescription Type Tabs styling */
.prescription-type-tabs {
  display: flex !important;
  flex-wrap: nowrap !important;
  gap: 10px !important;
  background-color: transparent !important;
  border: none !important;
  padding: 0 !important;
  margin-bottom: 20px !important;
  width: 100% !important;
  box-sizing: border-box !important;
}

.prescription-tab {
  flex: 1 1 0% !important;
  min-width: 0 !important;
  background: #ffffff !important;
  border: 1px solid #cbd5e1 !important;
  border-radius: 4px !important;
  padding: 12px 10px !important;
  cursor: pointer !important;
  text-align: left !important;
  outline: none !important;
  transition: all 0.2s ease !important;
  box-shadow: none !important;
  margin: 0 !important;
  display: flex !important;
  flex-direction: column !important;
  justify-content: center !important;
  box-sizing: border-box !important;
}

@media (max-width: 480px) {
  .prescription-type-tabs {
    gap: 6px !important;
  }
  .prescription-tab {
    padding: 8px 6px !important;
  }
  .prescription-tab .tab-title {
    font-size: 11px !important;
    margin-bottom: 4px !important;
  }
  .prescription-tab .tab-price {
    font-size: 11px !important;
  }
}

.prescription-tab:hover {
  border-color: #8c8f94 !important;
  background-color: #f6f7f7 !important;
  color: inherit !important;
}

.prescription-tab.active {
  border: 2px solid var(--color-primary) !important;
  padding: 11px 13px !important;
  background-color: #ffffff !important;
  color: inherit !important;
  box-shadow: 0 2px 8px rgba(0, 0, 0, 0.05) !important;
}

.prescription-tab .tab-title {
  font-weight: 600 !important;
  color: #3c434a !important;
  margin-bottom: 6px !important;
  font-size: 13px !important;
  line-height: 1.2 !important;
  display: block !important;
}

.prescription-tab .tab-price {
  font-weight: 700 !important;
  color: #958e09 !important;
  font-size: 14px !important;
  line-height: 1.2 !important;
  display: block !important;
}

.prescription-tab .tab-price .woocommerce-Price-amount {
  color: #958e09 !important;
}

.eyecasions-prescription-fields-wrapper {
  transition: all 0.3s ease-in-out !important;
}

/* Power Options Left & Right Eye Columns styling */
.power-options-flex {
  display: flex !important;
  gap: 15px !important;
  width: 100% !important;
  box-sizing: border-box !important;
  margin-bottom: 0 !important;
}

.power-field-column {
  flex: 1 !important;
  min-width: 0 !important;
}

@media (max-width: 480px) {
  .power-options-flex {
    flex-direction: column !important;
    gap: 10px !important;
  }
}

/* Custom spacing adjustments on Single Product page */
.ast-stock-detail {
  margin-bottom: 0 !important;
}

/* ==========================================================================
   Order Received (Thank You) Page Customizations
   ========================================================================== */
.woocommerce-order-received {
  background-color: #f8fafc !important;
}

.woocommerce-order-received .site-content {
  background-color: transparent !important;
  padding: 40px 0 !important;
}

/* Reset the main content container and make it look premium */
.woocommerce-order-received #primary {
  max-width: 800px !important;
  margin: 0 auto !important;
  background-color: #ffffff !important;
  border-radius: 16px !important;
  border: 1px solid #e2e8f0 !important;
  box-shadow: 0 10px 30px rgba(0, 0, 0, 0.03) !important;
  padding: 40px !important;
  box-sizing: border-box !important;
}

/* Success Message Banner */
.woocommerce-order-received p.woocommerce-thankyou-order-received {
  background-color: #f0fdf4 !important;
  border: 1px solid #bbf7d0 !important;
  border-radius: 12px !important;
  padding: 30px !important;
  color: #16a34a !important;
  font-size: 18px !important;
  font-weight: 700 !important;
  text-align: center !important;
  margin-bottom: 30px !important;
  display: flex !important;
  flex-direction: column !important;
  align-items: center !important;
  gap: 12px !important;
  font-family: var(--font-family) !important;
}

.woocommerce-order-received p.woocommerce-thankyou-order-received::before {
  content: "" !important;
  display: block !important;
  width: 48px !important;
  height: 48px !important;
  background-color: #16a34a !important;
  border-radius: 50% !important;
  background-image: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' viewBox='0 0 24 24' fill='none' stroke='%23ffffff' stroke-width='3' stroke-linecap='round' stroke-linejoin='round'%3E%3Cpolyline points='20 6 9 17 4 12'/%3E%3C/svg%3E") !important;
  background-size: 24px !important;
  background-repeat: no-repeat !important;
  background-position: center !important;
  box-shadow: 0 4px 10px rgba(22, 163, 74, 0.2) !important;
}

/* Order Overview Flexbox Grid */
.woocommerce-order-received ul.woocommerce-order-overview {
  display: flex !important;
  flex-wrap: wrap !important;
  justify-content: center !important;
  gap: 15px !important;
  margin: 0 0 40px 0 !important;
  padding: 0 !important;
  list-style: none !important;
  list-style-type: none !important;
  border: none !important;
}

.woocommerce-order-received ul.woocommerce-order-overview li {
  flex: 1 1 180px !important;
  max-width: 100% !important;
  background-color: #f8fafc !important;
  border: 1px solid #e2e8f0 !important;
  border-radius: 10px !important;
  padding: 15px !important;
  text-align: center !important;
  font-size: 11px !important;
  color: var(--color-text-muted) !important;
  text-transform: uppercase !important;
  letter-spacing: 0.5px !important;
  display: inline-flex !important;
  flex-direction: column !important;
  justify-content: center !important;
  gap: 5px !important;
  float: none !important;
  margin: 0 !important;
  box-sizing: border-box !important;
  border-right: 1px solid #e2e8f0 !important;
}

.woocommerce-order-received ul.woocommerce-order-overview li::after {
  display: none !important;
}

.woocommerce-order-received ul.woocommerce-order-overview li strong {
  font-size: 14px !important;
  color: var(--color-text-dark) !important;
  text-transform: none !important;
  letter-spacing: normal !important;
  font-weight: 700 !important;
  word-break: break-all !important;
}

/* Headings */
.woocommerce-order-received h2 {
  font-size: 20px !important;
  font-weight: 700 !important;
  color: var(--color-text-dark) !important;
  margin-top: 40px !important;
  margin-bottom: 20px !important;
  border-bottom: 2px solid #f1f5f9 !important;
  padding-bottom: 10px !important;
}

/* Order Details Table */
.woocommerce-order-received table.woocommerce-table--order-details {
  width: 100% !important;
  border-collapse: separate !important;
  border-spacing: 0 !important;
  border: 1px solid #e2e8f0 !important;
  border-radius: 12px !important;
  overflow: hidden !important;
  margin-bottom: 30px !important;
}

.woocommerce-order-received table.woocommerce-table--order-details th,
.woocommerce-order-received table.woocommerce-table--order-details td {
  padding: 15px 20px !important;
  border-bottom: 1px solid #e2e8f0 !important;
  font-size: 14px !important;
  color: var(--color-text-dark) !important;
}

.woocommerce-order-received table.woocommerce-table--order-details thead th {
  background-color: #f8fafc !important;
  font-weight: 700 !important;
  border-bottom: 2px solid #e2e8f0 !important;
}

.woocommerce-order-received table.woocommerce-table--order-details tbody tr:last-child td {
  border-bottom: 1px solid #e2e8f0 !important;
}

.woocommerce-order-received table.woocommerce-table--order-details tfoot th,
.woocommerce-order-received table.woocommerce-table--order-details tfoot td {
  border-top: none !important;
  border-bottom: 1px solid #e2e8f0 !important;
}

.woocommerce-order-received table.woocommerce-table--order-details tfoot tr:last-child th,
.woocommerce-order-received table.woocommerce-table--order-details tfoot tr:last-child td {
  border-bottom: none !important;
  font-size: 16px !important;
  font-weight: 800 !important;
  color: var(--color-primary) !important;
}

.woocommerce-order-received table.woocommerce-table--order-details tfoot th {
  font-weight: 700 !important;
}

/* Customer Addresses Grid */
.woocommerce-order-received section.woocommerce-customer-details {
  display: block !important;
  margin-top: 40px !important;
}

.woocommerce-order-received .woocommerce-columns--addresses,
.woocommerce-order-received .woocommerce-columns,
.woocommerce-order-received .col2-set {
  display: flex !important;
  flex-direction: row !important;
  flex-wrap: wrap !important;
  gap: 20px !important;
  margin: 0 !important;
  padding: 0 !important;
  float: none !important;
  width: 100% !important;
}

.woocommerce-order-received .woocommerce-column,
.woocommerce-order-received .col-1,
.woocommerce-order-received .col-2 {
  flex: 1 1 280px !important;
  max-width: 100% !important;
  width: auto !important;
  float: none !important;
  margin: 0 !important;
  background-color: #f8fafc !important;
  border: 1px solid #e2e8f0 !important;
  border-radius: 12px !important;
  padding: 25px !important;
  box-sizing: border-box !important;
}

.woocommerce-order-received .woocommerce-column__title {
  font-size: 16px !important;
  font-weight: 700 !important;
  margin-top: 0 !important;
  margin-bottom: 15px !important;
  border-bottom: 1.5px solid #e2e8f0 !important;
  padding-bottom: 8px !important;
}

.woocommerce-order-received address {
  font-style: normal !important;
  font-size: 14px !important;
  line-height: 1.6 !important;
  color: var(--color-text-dark) !important;
}

/* Responsive adjustment */
@media (max-width: 768px) {
  .woocommerce-order-received #primary {
    padding: 20px !important;
  }
}

/* Sticky Social Media Sidebar */
.eyecasions-social-sidebar {
  position: fixed !important;
  right: 0 !important;
  top: 50% !important;
  transform: translateY(-50%) !important;
  z-index: 99999 !important;
  display: flex !important;
  flex-direction: column !important;
  gap: 8px !important;
}

.eyecasions-social-sidebar .social-icon {
  display: flex !important;
  align-items: center !important;
  justify-content: flex-end !important;
  padding: 12px !important;
  color: #ffffff !important;
  text-decoration: none !important;
  border-radius: 24px 0 0 24px !important;
  box-shadow: -2px 2px 8px rgba(0, 0, 0, 0.15) !important;
  transition: all 0.3s cubic-bezier(0.25, 0.8, 0.25, 1) !important;
  background: #333 !important;
  cursor: pointer !important;
  overflow: hidden !important;
}

.eyecasions-social-sidebar .social-icon .social-label {
  max-width: 0 !important;
  opacity: 0 !important;
  overflow: hidden !important;
  white-space: nowrap !important;
  transition: max-width 0.3s ease, opacity 0.3s ease, margin 0.3s ease !important;
  font-family: inherit !important;
  font-size: 14px !important;
  font-weight: 600 !important;
  margin-right: 0 !important;
}

.eyecasions-social-sidebar .social-icon:hover {
  padding-left: 20px !important;
  box-shadow: -4px 4px 12px rgba(0, 0, 0, 0.25) !important;
  transform: translateX(-5px) !important;
}

.eyecasions-social-sidebar .social-icon:hover .social-label {
  max-width: 100px !important;
  opacity: 1 !important;
  margin-right: 10px !important;
}

.eyecasions-social-sidebar .social-icon.facebook {
  background-color: #1877F2 !important;
}

.eyecasions-social-sidebar .social-icon.instagram {
  background: linear-gradient(45deg, #f09433 0%, #e6683c 25%, #dc2743 50%, #cc2366 75%, #bc1888 100%) !important;
}

.eyecasions-social-sidebar .social-icon.whatsapp {
  background-color: #25D366 !important;
}

.eyecasions-social-sidebar .social-icon .icon-svg {
  display: block !important;
  flex-shrink: 0 !important;
}

