/*
Theme Name: FixFlip Storefront Child
Theme URI: https://fixflip.com
Author: Center Street
Description: Storefront Child Theme for FixFlip MVP
Template: storefront
Version: 1.1.0
Text Domain: fixflip-storefront-child
*/

:root {
      --ink: #141414;
      --muted: #5f6f82;
      --line: #d7e0ea;
      --paper: #f6f9fc;
      --white: #ffffff;
      --signal: #2f80ed;
      --signal-dark: #1d5fb8;
      --forest: #0b1a30; /* Adjusted slightly darker to match reference */
      --forest-light: #12365f;
      --clay: #5d7fa6;
      --steel: #65727a;
      --blue: #1e5d9e;
      --yellow: #fbe122; /* Matches reference CTA */
      --shadow: 0 10px 30px rgba(0, 0, 0, .1);
    }

    * {
      box-sizing: border-box;
      margin: 0;
      padding: 0;
    }

    body {
      color: var(--ink);
      background: var(--paper);
      font-family: 'Inter', ui-sans-serif, system-ui, -apple-system, sans-serif;
      line-height: 1.4;
    }

    h1, h2, h3, h4, .hero-title, .section-title {
      font-family: 'Archivo', sans-serif;
      text-transform: uppercase;
      font-weight: 700;
    }

    a {
      color: inherit;
      text-decoration: none;
    }

    button {
      font: inherit;
      border: none;
      cursor: pointer;
    }

    .site-shell {
      min-height: 100vh;
      display: flex;
      flex-direction: column;
    }

    /* Top Navigation (Two-Tier) */
    .top-header-wrapper {
      background: var(--white);
      border-bottom: 1px solid var(--line);
      position: sticky;
      top: 0;
      z-index: 50;
    }

    .header-tier-1 {
      padding: 16px 40px;
      display: grid;
      grid-template-columns: 200px 1fr auto;
      align-items: center;
      gap: 40px;
      max-width: 1400px;
      margin: 0 auto;
    }

    .brand {
      display: flex;
      align-items: center;
      font-size: 32px;
      font-weight: 900;
      letter-spacing: -0.5px;
      color: var(--forest-light);
    }

    .search-container {
      max-width: 450px;
      width: 100%;
      position: relative;
    }

    .search-bar {
      width: 100%;
      height: 48px;
      border-radius: 4px;
      border: 1px solid rgba(20, 20, 20, 0.15);
      padding: 0 48px 0 20px;
      font-size: 14px;
      background: var(--white);
    }

    .search-icon {
      position: absolute;
      right: 16px;
      top: 50%;
      transform: translateY(-50%);
      width: 20px;
      height: 20px;
      stroke: var(--forest-light);
      stroke-width: 2;
      fill: none;
      cursor: pointer;
    }

    .user-links {
      display: flex;
      align-items: center;
      gap: 24px;
      color: var(--forest-light);
    }
    
    .header-icon {
      width: 24px;
      height: 24px;
      stroke: currentColor;
      stroke-width: 1.8;
      fill: none;
      cursor: pointer;
    }

    .cart-wrapper {
      display: flex;
      align-items: center;
      gap: 12px;
      cursor: pointer;
    }

    .cart-icon-container {
      position: relative;
    }

    .cart-badge {
      position: absolute;
      top: -6px;
      right: -8px;
      background: #007bff;
      color: var(--white);
      font-size: 10px;
      font-weight: 800;
      width: 16px;
      height: 16px;
      display: flex;
      align-items: center;
      justify-content: center;
      border-radius: 50%;
    }

    .cart-info {
      display: flex;
      flex-direction: column;
      font-size: 11px;
      font-weight: 600;
      color: var(--ink);
    }

    .cart-info strong {
      font-size: 14px;
      font-weight: 800;
    }

    .header-tier-2 {
      padding: 0 40px;
      display: flex;
      justify-content: space-between;
      align-items: center;
      font-size: 14px;
      font-weight: 700;
      max-width: 1400px;
      margin: 0 auto;
      color: var(--ink);
    }

    .nav-categories {
      display: flex;
      gap: 32px;
      align-items: center;
    }

    .nav-categories a {
      padding: 16px 0;
      display: flex;
      align-items: center;
      gap: 8px;
    }

    .nav-categories a:hover {
      color: var(--signal);
    }

    .all-categories {
      display: flex;
      align-items: center;
      gap: 8px;
    }

    .all-categories svg {
      width: 18px;
      height: 18px;
      stroke: var(--signal);
      stroke-width: 2;
    }

    .promo-badge {
      display: flex;
      align-items: center;
      background: var(--paper);
      border-radius: 4px;
      overflow: hidden;
      font-size: 12px;
      font-weight: 800;
    }

    .promo-icon {
      background: var(--forest-light);
      color: var(--white);
      padding: 8px 12px;
      display: flex;
      align-items: center;
    }

    .promo-icon svg {
      width: 16px;
      height: 16px;
      stroke: currentColor;
      stroke-width: 2;
      fill: none;
    }

    .promo-text {
      padding: 8px 16px;
    }

    .hero {
      position: relative;
      background-color: #1a1a1a;
      background-image: url('jeriden-villegas-VLPUm5wP5Z0-unsplash.jpg');
      background-size: cover;
      background-position: center;
      color: #ffffff;
      padding: 40px 20px 50px;
      display: flex;
      flex-direction: column;
      align-items: center;
      text-align: center;
    }

    .hero::before {
      content: '';
      position: absolute;
      inset: 0;
      background: rgba(26, 26, 26, 0.7); /* Dark overlay */
      z-index: 1;
    }

    .hero-eyebrow {
      position: relative;
      z-index: 2;
      font-size: 12px;
      font-weight: 700;
      letter-spacing: 2px;
      text-transform: uppercase;
      margin-bottom: 16px;
      color: #e0e0e0;
    }

    .hero-title {
      position: relative;
      z-index: 2;
      font-size: clamp(36px, 6vw, 64px);
      line-height: 1.1;
      max-width: 900px;
      margin-bottom: 16px;
      letter-spacing: -1px;
    }

    .hero-title-highlight {
      position: relative;
      display: inline-block;
    }

    .hero-title-highlight::after {
      content: '';
      position: absolute;
      left: -5%;
      bottom: 0px;
      width: 110%;
      height: 16px;
      background: url('data:image/svg+xml;utf8,<svg preserveAspectRatio="none" viewBox="0 0 200 20" xmlns="http://www.w3.org/2000/svg"><path d="M5 15 Q 100 0, 195 15" fill="none" stroke="%23007bff" stroke-width="3" stroke-linecap="round"/></svg>') no-repeat center center;
      background-size: 100% 100%;
    }

    .hero-subtitle {
      position: relative;
      z-index: 2;
      font-size: 18px;
      color: #9e9e9e;
      max-width: 600px;
      margin-bottom: 32px;
      line-height: 1.6;
    }

    .hero-actions {
      position: relative;
      z-index: 2;
      display: flex;
      gap: 16px;
      justify-content: center;
      flex-wrap: wrap;
    }

    .btn-primary {
      background-color: #007bff; /* Accent blue */
      color: #ffffff;
      font-weight: 700;
      padding: 16px 36px;
      border-radius: 9999px;
      font-size: 16px;
      transition: background-color 0.2s;
    }

    .btn-primary:hover {
      background-color: #0056b3;
    }

    .btn-secondary {
      background-color: transparent;
      color: #ffffff;
      border: 2px solid #ffffff;
      font-weight: 700;
      padding: 14px 36px;
      border-radius: 9999px;
      font-size: 16px;
      transition: all 0.2s;
    }

    .btn-secondary:hover {
      background-color: #ffffff;
      color: #1a1a1a;
    }

    /* Categories Section */
    .categories-section {
      background-color: #f8f9fa;
      padding: 100px 40px;
    }

    .categories-inner {
      max-width: 1400px;
      margin: 0 auto;
    }

    .categories-header {
      display: flex;
      justify-content: space-between;
      align-items: flex-end;
      margin-bottom: 60px;
      gap: 40px;
    }

    .categories-header h2 {
      font-size: clamp(40px, 5vw, 64px);
      line-height: 1;
      max-width: 700px;
      color: #111;
      letter-spacing: -1px;
    }

    .categories-header p {
      font-size: 18px;
      color: #6c757d;
      max-width: 400px;
      line-height: 1.5;
      padding-bottom: 8px;
    }

    .categories-grid {
      display: grid;
      grid-template-columns: repeat(4, 1fr);
      gap: 0;
      border: 1px solid #e9ecef;
    }

    .category-card {
      background: #ffffff;
      padding: 40px 30px;
      border-right: 1px solid #e9ecef;
      display: flex;
      flex-direction: column;
    }

    .category-card:last-child {
      border-right: none;
    }

    .category-icon {
      margin-bottom: 120px;
    }

    .category-icon svg {
      width: 32px;
      height: 32px;
      stroke: #111;
      stroke-width: 1.5;
      fill: none;
    }

    .category-card h3 {
      font-size: 24px;
      margin-bottom: 12px;
      color: #111;
      letter-spacing: -0.5px;
    }

    .category-card p {
      font-size: 14px;
      color: #6c757d;
      line-height: 1.5;
    }





    /* Icons */
    .icon-cart {
      width: 20px;
      height: 20px;
      stroke: currentColor;
      stroke-width: 2;
      fill: none;
    }
    
    .icon-user {
      width: 20px;
      height: 20px;
      stroke: currentColor;
      stroke-width: 2;
      fill: none;
    }

    /* Top Picks Section */
    .top-picks-section {
      padding: 80px 40px;
      max-width: 100%;
      margin: 0 auto;
      background: #ffffff;
    }

    .top-picks-header {
      display: flex;
      justify-content: space-between;
      align-items: flex-end;
      margin-bottom: 30px;
    }

    .top-picks-header h2 {
      font-size: 32px;
      margin: 0;
      color: #111;
      letter-spacing: -0.5px;
    }

    .top-picks-header a {
      font-size: 14px;
      font-weight: 700;
      color: #111;
      text-decoration: underline;
    }

    .picks-carousel {
      display: flex;
      gap: 20px;
      overflow-x: auto;
      padding-bottom: 20px;
    }
    
    .picks-carousel::-webkit-scrollbar {
      display: none;
    }

    .pick-card {
      min-width: 280px;
      flex: 1;
      display: flex;
      flex-direction: column;
    }

    .pick-image-wrapper {
      position: relative;
      background: #f1f3f5;
      aspect-ratio: 4/5;
      margin-bottom: 16px;
    }

    .pick-image-wrapper img {
      width: 100%;
      height: 100%;
      object-fit: cover;
    }

    .wishlist-btn {
      position: absolute;
      top: 12px;
      right: 12px;
      background: transparent;
      padding: 4px;
      color: #111;
    }

    .wishlist-btn svg {
      width: 20px;
      height: 20px;
      stroke: currentColor;
      stroke-width: 1.5;
      fill: none;
    }

    .pick-swatches {
      display: flex;
      align-items: center;
      gap: 8px;
      margin-bottom: 12px;
    }

    .swatch {
      width: 20px;
      height: 20px;
      border-radius: 50%;
      border: 1px solid #dee2e6;
    }
    
    .swatch.active {
      border: 1px solid #007bff;
      padding: 2px;
      background-clip: content-box;
    }

    .swatch-count {
      font-size: 12px;
      font-weight: 600;
      color: #111;
      margin-left: 4px;
    }

    .badge-bestseller {
      display: inline-table;
      font-size: 10px;
      font-weight: 700;
      color: #111;
      background: #f1f3f5;
      padding: 4px 8px;
      border-radius: 2px;
      margin-bottom: 12px;
      text-transform: uppercase;
      letter-spacing: 0.5px;
    }

    .pick-title {
      font-size: 15px;
      font-weight: 700;
      color: #111;
      margin-bottom: 4px;
    }

    .pick-color {
      font-size: 13px;
      color: #6c757d;
      margin-bottom: 4px;
    }

    .pick-price {
      font-size: 14px;
      color: #111;
      font-weight: 500;
    }

/* ========================================================
   PREMIUM WOOCOMMERCE PRODUCT PAGE OVERRIDES
   ======================================================== */

.single-product div.product {
    max-width: 1400px !important;
    margin: 40px auto !important;
    padding: 0 40px !important;
    display: grid !important;
    grid-template-columns: 1fr 1fr !important;
    gap: 60px !important;
}

@media (max-width: 992px) {
    .single-product div.product {
        grid-template-columns: 1fr !important;
        gap: 40px !important;
        padding: 0 24px !important;
    }
}


.single-product div.product .woocommerce-product-gallery {
    width: 100% !important;
    float: none !important;
    margin: 0 !important;
}

.single-product div.product .summary {
    width: 100% !important;
    float: none !important;
    margin: 0 !important;
    display: flex;
    flex-direction: column;
}

.single-product .product_title {
    font-family: 'Archivo', sans-serif !important;
    font-size: 40px !important;
    letter-spacing: -1px !important;
    font-weight: 700 !important;
    margin-bottom: 12px !important;
    color: #111 !important;
}

.single-product .price {
    font-size: 32px !important;
    font-weight: 800 !important;
    color: #111 !important;
    margin-bottom: 24px !important;
}

.single-product .button.alt {
    background-color: #007bff !important;
    color: #fff !important;
    font-family: 'Inter', sans-serif !important;
    font-size: 16px !important;
    font-weight: 700 !important;
    padding: 16px 32px !important;
    border-radius: 4px !important;
    transition: background 0.2s !important;
}

.single-product .button.alt:hover {
    background-color: #0056b3 !important;
}

.single-product .quantity input.qty {
    height: 56px !important;
    width: 80px !important;
    border: 2px solid #111 !important;
    border-radius: 4px !important;
    font-size: 16px !important;
    font-weight: 700 !important;
    text-align: center !important;
}

.woocommerce-tabs {
    grid-column: 1 / -1 !important;
    margin-top: 60px !important;
    border-top: 1px solid #e9ecef !important;
    padding-top: 40px !important;
    clear: both !important;
}

.woocommerce-tabs ul.tabs {
    border-bottom: 2px solid #f8f9fa !important;
    padding: 0 !important;
    margin: 0 0 32px 0 !important;
    display: flex !important;
    gap: 40px !important;
}

.woocommerce-tabs ul.tabs li {
    background: none !important;
    border: none !important;
    padding: 0 0 16px 0 !important;
    margin: 0 !important;
}

.woocommerce-tabs ul.tabs li a {
    font-family: 'Inter', sans-serif !important;
    font-size: 18px !important;
    font-weight: 700 !important;
    color: #6c757d !important;
    padding: 0 !important;
}

.woocommerce-tabs ul.tabs li.active a {
    color: #111 !important;
    position: relative;
}

.woocommerce-tabs ul.tabs li.active a::after {
    content: '';
    position: absolute;
    bottom: -18px;
    left: 0;
    right: 0;
    height: 2px;
    background: #007bff;
}

.woocommerce-product-details__short-description p {
    color: #6c757d !important;
    font-size: 15px !important;
    line-height: 1.6 !important;
}

/* Dynamic WP Nav Menu Support */
.nav-categories ul.dynamic-header-menu {
    list-style: none;
    margin: 0;
    padding: 0;
    display: flex;
    gap: 32px;
}
.nav-categories ul.dynamic-header-menu li {
    margin: 0;
    padding: 0;
}
.nav-categories ul.dynamic-header-menu li a {
    padding: 16px 0;
    color: var(--ink);
    text-decoration: none;
    display: block;
}
.nav-categories ul.dynamic-header-menu li a:hover {
    color: var(--signal);
}

.user-links {
    display: flex;
    align-items: center;
}

/* Fix WooCommerce Native Search Bar Alignment */
.search-container form.woocommerce-product-search {
    position: relative;
    width: 100%;
    margin: 0;
    display: flex;
    align-items: center;
}

.search-container form.woocommerce-product-search label {
    display: none;
}

.search-container form.woocommerce-product-search input.search-field {
    width: 100%;
    height: 48px;
    border-radius: 4px;
    border: 1px solid rgba(20, 20, 20, 0.15);
    padding: 0 48px 0 20px;
    font-size: 14px;
    background: var(--white);
    outline: none;
}

.search-container form.woocommerce-product-search button[type=submit] {
    position: absolute;
    right: 8px;
    background: #111;
    color: #fff;
    border: none;
    height: 32px;
    padding: 0 16px;
    font-size: 12px;
    font-weight: 700;
    border-radius: 4px;
    cursor: pointer;
}

/* Custom Search Bar Home Depot Style */
.search-container form.custom-search-form {
    position: relative;
    width: 100%;
    margin: 0;
    display: flex;
    align-items: center;
    border: none !important; /* Remove outline */
    border-radius: 0 !important; /* Sharp edges */
}

.search-container form.custom-search-form input.custom-search-input {
    width: 100%;
    height: 48px;
    border-radius: 0 !important; /* Sharp edges */
    border: none !important;
    padding: 0 56px 0 20px;
    font-size: 15px;
    background: #f1f1f1 !important;
    outline: none;
    box-shadow: none !important;
    margin: 0 !important;
    float: none !important;
}

.search-container form.custom-search-form button.custom-search-btn {
    position: absolute;
    right: 0;
    top: 0;
    bottom: 0;
    width: 48px;
    height: 48px;
    background: transparent !important;
    border: none !important;
    border-radius: 0 !important; /* Sharp edges */
    display: flex;
    align-items: center;
    justify-content: center;
    cursor: pointer;
    transition: background 0.2s;
    margin: 0 !important;
    padding: 0 !important;
    float: none !important;
}

.search-container form.custom-search-form button.custom-search-btn:hover {
    background: transparent !important;
}

.search-container form.custom-search-form button.custom-search-btn svg {
    stroke: #007bff !important;
}

/* Mega Menu Layout */
.mega-menu-wrapper {
    background: #007bff; /* Primary Brand Blue */
    border-bottom: none;
    position: relative; /* Anchor for absolute dropdown */
    width: 100vw !important;
    max-width: 100vw !important;
    margin-left: calc(50% - 50vw) !important;
}

.mega-menu-container {
    max-width: 1400px;
    margin: 0 auto;
    padding: 0 40px;
    display: flex;
    align-items: stretch;
}

.mega-menu-item {
    display: flex;
}

.mega-menu-link {
    display: flex;
    align-items: center;
    padding: 16px 20px;
    font-size: 16px;
    font-weight: 800;
    letter-spacing: 1.5px;
    color: #ffffff;
    text-decoration: none;
    transition: color 0.2s, background 0.2s;
    cursor: pointer;
}

.mega-menu-link:hover {
    color: rgba(255,255,255,0.7);
}

/* All Departments Primary Button */
.mega-menu-item.all-depts .mega-menu-link {
    background: #111;
    color: #fff;
    padding: 16px 32px 16px 24px;
    margin-right: 16px;
}

.mega-menu-item.all-depts .mega-menu-link svg {
    width: 20px;
    height: 20px;
    stroke: #fff;
    stroke-width: 2;
    fill: none;
    margin-right: 12px;
}

.mega-menu-item.all-depts .mega-menu-link:hover {
    background: #000;
    color: #fff;
}

/* Mega Dropdown Panel */
.mega-dropdown {
    position: absolute;
    top: 100%;
    left: 40px;
    right: 40px;
    background: #fff;
    border-top: 2px solid #007bff;
    box-shadow: 0 16px 40px rgba(0, 0, 0, 0.08);
    opacity: 0;
    visibility: hidden;
    transform: translateY(10px);
    transition: all 0.2s ease-out;
    z-index: 100;
}

.mega-menu-item.has-dropdown:hover .mega-dropdown {
    opacity: 1;
    visibility: visible;
    transform: translateY(0);
}

.mega-dropdown-inner {
    padding: 40px;
    display: flex;
    gap: 60px;
}

.mega-column {
    flex: 1;
}

.mega-column h4 {
    font-family: 'Inter', sans-serif;
    font-size: 16px;
    font-weight: 800;
    color: #111;
    margin-bottom: 24px;
    padding-bottom: 12px;
    border-bottom: 1px solid #e9ecef;
    letter-spacing: -0.2px;
    text-transform: none;
}

.mega-column ul {
    list-style: none;
    margin: 0;
    padding: 0;
}

.mega-column ul li {
    margin-bottom: 16px;
}

.mega-column ul li a {
    color: #555;
    font-size: 14px;
    font-weight: 500;
    text-decoration: none;
    transition: color 0.1s;
}

.mega-column ul li a:hover {
    color: #007bff;
    text-decoration: underline;
}

/* Promo Box in Dropdown */
.mega-promo {
    width: 320px;
    background: #f8f9fa;
    border-radius: 4px;
    overflow: hidden;
}

.mega-promo-img {
    aspect-ratio: 16/9;
    background: #ddd;
}

.mega-promo-img img {
    width: 100%;
    height: 100%;
    object-fit: cover;
}

.mega-promo .promo-text {
    padding: 24px;
}

.mega-promo .promo-text h4 {
    font-family: 'Inter', sans-serif;
    font-size: 18px;
    font-weight: 800;
    color: #111;
    margin-bottom: 8px;
    text-transform: none;
}

.mega-promo .promo-text p {
    font-size: 14px;
    color: #555;
    margin: 0;
}

/* ========================================================
   CUSTOM MINI-CART DROPDOWN STYLING
   ======================================================== */

#cart-popup .widget_shopping_cart_content {
    display: flex;
    flex-direction: column;
}

#cart-popup ul.cart_list {
    margin: 0;
    padding: 0;
    list-style: none;
    max-height: 350px;
    overflow-y: auto;
}

#cart-popup ul.cart_list li {
    display: flex;
    align-items: flex-start;
    padding-bottom: 24px;
    margin-bottom: 24px;
    border-bottom: 1px solid #eaeaea;
    position: relative;
}

#cart-popup ul.cart_list li img {
    width: 72px;
    height: 72px;
    object-fit: cover;
    margin-right: 16px;
    border: 1px solid #eaeaea;
}

#cart-popup ul.cart_list li a.remove {
    position: absolute;
    right: 0;
    top: 0;
    color: #111;
    font-size: 20px;
    text-decoration: none;
    font-weight: 300;
}

#cart-popup ul.cart_list li a:not(.remove) {
    font-size: 14px;
    font-weight: 800;
    color: #111;
    text-decoration: none;
    display: block;
    margin-bottom: 8px;
    padding-right: 24px; /* Space for remove icon */
}

#cart-popup ul.cart_list li .quantity {
    font-size: 13px;
    color: #6c757d;
    font-weight: 600;
    display: flex;
    justify-content: space-between;
    width: calc(100% - 88px);
}

#cart-popup ul.cart_list li .quantity .amount {
    color: #111;
    font-weight: 800;
    font-size: 14px;
}

#cart-popup .total {
    background: #f8f9fa;
    margin: 0 -24px;
    padding: 24px;
    display: flex;
    justify-content: space-between;
    align-items: center;
    border-top: 1px solid #eaeaea;
}

#cart-popup .total strong {
    font-size: 13px;
    font-weight: 800;
    letter-spacing: 1px;
    text-transform: uppercase;
    color: #111;
}

#cart-popup .total .amount {
    font-size: 15px;
    font-weight: 800;
    color: #111;
}

#cart-popup .buttons {
    background: #f8f9fa;
    margin: 0 -24px;
    padding: 0 24px 24px 24px;
    display: flex;
    flex-direction: column;
    gap: 12px;
}

#cart-popup .buttons .button {
    display: block;
    width: 100%;
    text-align: center;
    background: #111 !important;
    color: #fff !important;
    padding: 16px;
    font-weight: 800;
    letter-spacing: 1px;
    text-transform: uppercase;
    border-radius: 0;
    text-decoration: none;
}

#cart-popup .buttons .checkout {
    display: none !important; /* Hide native checkout button to match mockup */
}

/* Pro Polishes */
.product-tile-card {
    background: #fff;
    display: flex;
    flex-direction: column;
    position: relative;
    border: 1px solid #eaeaea;
    transition: transform 0.3s cubic-bezier(0.25, 1, 0.5, 1), box-shadow 0.3s cubic-bezier(0.25, 1, 0.5, 1);
}
.product-tile-card:hover {
    transform: translateY(-4px);
    box-shadow: 0 12px 24px rgba(0,0,0,0.08);
}
.product-tile-card .product-image-wrapper {
    width: 100%;
    aspect-ratio: 1;
    background: #eaeaea;
    display: flex;
    align-items: center;
    justify-content: center;
    overflow: hidden;
}
.product-tile-card .product-image-wrapper img {
    width: 100%;
    height: 100%;
    object-fit: cover;
    transition: transform 0.5s cubic-bezier(0.25, 1, 0.5, 1);
}
.product-tile-card:hover .product-image-wrapper img {
    transform: scale(1.04);
}

.add-sample-btn-pro {
    display: inline-flex;
    align-items: center;
    gap: 8px;
    font-size: 14px;
    font-weight: 700;
    color: #e63946;
    text-decoration: none;
    border: 2px solid #e63946;
    padding: 10px 20px;
    border-radius: 40px;
    transition: all 0.2s ease;
}
.add-sample-btn-pro svg {
    stroke: #e63946;
    transition: all 0.2s ease;
}
.add-sample-btn-pro:hover {
    background: #e63946;
    color: #fff;
}
.add-sample-btn-pro:hover svg {
    stroke: #fff;
}

/* ==========================================================================
   SINGLE PRODUCT PAGE - CUSTOM LAYOUT
   ========================================================================== */
.custom-single-product {
    max-width: 1400px;
    margin: 40px auto;
    padding: 0 40px;
}

.custom-product-grid {
    display: grid;
    grid-template-columns: 1fr 450px;
    gap: 60px;
    margin-bottom: 60px;
}

/* Gallery Styling */
.custom-product-gallery {
    display: flex;
    flex-direction: column;
    gap: 16px;
}

.main-image-wrapper {
    width: 100%;
    aspect-ratio: 1;
    background: #f8f9fa;
    border: 1px solid #eaeaea;
    display: flex;
    align-items: center;
    justify-content: center;
    overflow: hidden;
}

.main-product-image {
    width: 100%;
    height: 100%;
    object-fit: cover;
}

.thumbnails-wrapper {
    display: flex;
    gap: 16px;
    overflow-x: auto;
    padding-bottom: 8px; /* For scrollbar if needed */
}

.thumbnails-wrapper .thumbnail {
    width: 100px;
    height: 100px;
    flex-shrink: 0;
    border: 1px solid #eaeaea;
    cursor: pointer;
    transition: border-color 0.2s;
    background: #f8f9fa;
}

.thumbnails-wrapper .thumbnail:hover,
.thumbnails-wrapper .thumbnail.active {
    border-color: #111;
    border-width: 2px;
}

.thumbnails-wrapper .thumbnail img {
    width: 100%;
    height: 100%;
    object-fit: cover;
}

/* Summary Styling */
.custom-product-summary {
    display: flex;
    flex-direction: column;
}

.product-brand {
    font-size: 13px;
    font-weight: 800;
    letter-spacing: 1px;
    color: #666;
    text-transform: uppercase;
    margin-bottom: 8px;
}

h1.product-title {
    font-size: 36px;
    font-weight: 900;
    line-height: 1.1;
    color: #111;
    margin-bottom: 16px;
    font-family: 'Archivo', sans-serif;
    letter-spacing: -1px;
}

.product-reviews-mockup {
    display: flex;
    align-items: center;
    gap: 8px;
    margin-bottom: 24px;
}

.product-reviews-mockup .stars {
    color: #f5a623;
    font-size: 18px;
}

.product-reviews-mockup .review-count {
    color: #007bff;
    font-size: 14px;
    font-weight: 500;
}

.product-price-block {
    display: flex;
    align-items: baseline;
    gap: 8px;
    padding: 24px 0;
    border-top: 1px solid #eaeaea;
    border-bottom: 1px solid #eaeaea;
    margin-bottom: 24px;
}

.product-price-block .price-amount {
    font-size: 32px;
    font-weight: 900;
    color: #e63946;
}

.product-price-block .price-unit {
    font-size: 16px;
    font-weight: 600;
    color: #666;
}

.product-meta-mockup {
    display: grid;
    grid-template-columns: 1fr 1fr;
    gap: 16px;
    margin-bottom: 32px;
    background: #f8f9fa;
    padding: 24px;
    border-radius: 8px;
}

.product-meta-mockup p {
    margin: 0;
    font-size: 14px;
    color: #111;
}

/* Coverage Calculator */
.coverage-calculator-mockup {
    border: 2px solid #eaeaea;
    border-radius: 8px;
    padding: 24px;
    margin-bottom: 32px;
}

.coverage-calculator-mockup h3 {
    font-size: 16px;
    font-weight: 800;
    margin: 0 0 16px 0;
    color: #111;
    display: flex;
    align-items: center;
    gap: 8px;
}

.coverage-calculator-mockup h3::before {
    content: '';
    display: inline-block;
    width: 20px;
    height: 20px;
    background: url('data:image/svg+xml;utf8,<svg viewBox="0 0 24 24" fill="none" stroke="%23111" stroke-width="2"><rect x="3" y="3" width="18" height="18" rx="2" ry="2"/><line x1="9" y1="3" x2="9" y2="21"/><line x1="15" y1="3" x2="15" y2="21"/><line x1="3" y1="9" x2="21" y2="9"/><line x1="3" y1="15" x2="21" y2="15"/></svg>');
}

.calc-inputs {
    display: flex;
    align-items: center;
    gap: 16px;
    margin-bottom: 16px;
}

.input-group {
    display: flex;
    flex-direction: column;
    gap: 4px;
    flex: 1;
}

.input-group label {
    font-size: 12px;
    font-weight: 700;
    color: #666;
    text-transform: uppercase;
}

.calc-input {
    width: 100%;
    padding: 12px;
    border: 1px solid #ccc;
    border-radius: 4px;
    font-size: 16px;
    font-weight: 600;
}

.calc-input:disabled {
    background: #f5f5f5;
    color: #111;
}

.calc-equals {
    font-size: 24px;
    font-weight: 700;
    color: #111;
    margin-top: 16px;
}

.calc-options label {
    font-size: 13px;
    color: #444;
    display: flex;
    align-items: center;
    gap: 8px;
    cursor: pointer;
}

/* Native Add to Cart Tweaks */
.custom-add-to-cart-wrapper form.cart {
    display: flex !important;
    gap: 16px !important;
    margin-bottom: 16px !important;
}

.custom-add-to-cart-wrapper form.cart .quantity {
    margin: 0 !important;
}

.custom-add-to-cart-wrapper form.cart .quantity input.qty {
    height: 56px !important;
    width: 80px !important;
    border: 1px solid #ccc !important;
    font-size: 18px !important;
    font-weight: 700 !important;
}

.custom-add-to-cart-wrapper form.cart button.single_add_to_cart_button {
    flex: 1 !important;
    height: 56px !important;
    background: #007bff !important;
    color: #fff !important;
    font-size: 16px !important;
    font-weight: 800 !important;
    letter-spacing: 1px !important;
    text-transform: uppercase !important;
    border-radius: 4px !important;
    margin: 0 !important;
    transition: background 0.2s !important;
}

.custom-add-to-cart-wrapper form.cart button.single_add_to_cart_button:hover {
    background: #0056b3 !important;
}

.custom-add-sample-wrapper {
    margin-top: 16px;
}

.custom-add-sample-wrapper .add-sample-btn-pro {
    display: flex;
    align-items: center;
    justify-content: center;
    gap: 8px;
    width: 100%;
    padding: 16px;
    border: 2px solid #e63946;
    color: #e63946;
    background: transparent;
    font-size: 16px;
    font-weight: 800;
    letter-spacing: 1px;
    text-transform: uppercase;
    border-radius: 4px;
    text-decoration: none;
    transition: all 0.2s;
}

.custom-add-sample-wrapper .add-sample-btn-pro:hover {
    background: #e63946;
    color: #fff;
}

.custom-add-sample-wrapper .add-sample-btn-pro:hover svg {
    stroke: #fff;
}

/* Tabs & Bottom Content */
.custom-product-bottom {
    margin-top: 60px;
    padding-top: 60px;
    border-top: 1px solid #eaeaea;
}

/* Mobile Responsiveness */
@media (max-width: 992px) {
    .custom-product-grid {
        grid-template-columns: 1fr;
        gap: 40px;
    }
}

/* ==========================================================================
   SINGLE PRODUCT PAGE - FLOOR & DECOR REDESIGN
   ========================================================================== */
.fd-single-product {
    max-width: 1440px;
    margin: 0 auto;
    padding: 0 40px;
    font-family: 'Inter', sans-serif;
    color: #111;
}

.fd-breadcrumbs {
    font-size: 13px;
    color: #666;
    margin-bottom: 24px;
    margin-top: 24px;
}
.fd-breadcrumbs a {
    color: #111;
    text-decoration: none;
    font-weight: 500;
}
.fd-breadcrumbs a:hover {
    text-decoration: underline;
}

.fd-product-grid {
    display: grid;
    grid-template-columns: 60% 40%;
    gap: 60px;
    margin-bottom: 60px;
}

/* Left Column: Main Image & Thumbnails */
.fd-gallery-container {
    display: flex;
    flex-direction: column;
}
.fd-main-image-wrapper {
    width: 100%;
    aspect-ratio: 1;
    border: 1px solid #ccc;
    background: #f8f9fa;
    margin-bottom: 8px;
    box-shadow: 0 4px 12px rgba(0,0,0,0.1);
}
.fd-main-image {
    width: 100%;
    height: 100%;
    object-fit: cover;
}

.fd-gallery-toolbar {
    display: flex;
    justify-content: space-between;
    align-items: center;
}
.fd-zoom-hint {
    font-size: 14px;
    color: #555;
}
.fd-toolbar-buttons {
    display: flex;
    gap: 8px;
}
.fd-tool-btn {
    background: #000;
    color: #fff;
    font-size: 13px;
    font-weight: 600;
    padding: 8px 12px;
    display: flex;
    align-items: center;
    gap: 8px;
    cursor: pointer;
    border-radius: 2px;
}
.fd-tool-btn:hover {
    background: #222;
}

.fd-thumbnails-row {
    display: flex;
    gap: 12px;
    justify-content: center;
}
.fd-thumb-item {
    width: 70px;
    height: 70px;
    border: 1px solid #ccc;
    cursor: pointer;
    background: #f8f9fa;
}
.fd-thumb-item.active {
    border: 2px solid #e63946;
}
.fd-thumb-item img {
    width: 100%;
    height: 100%;
    object-fit: cover;
}

/* Right Column: Summary */
.fd-product-summary {
    display: flex;
    flex-direction: column;
}

.fd-summary-header {
    display: flex;
    justify-content: space-between;
    align-items: center;
    margin-bottom: 12px;
}
.fd-brand {
    font-size: 14px;
    font-weight: 600;
    color: #111;
}
.fd-heart-icon {
    cursor: pointer;
}

.fd-title {
    font-size: 32px;
    font-weight: 800;
    text-transform: uppercase;
    line-height: 1.2;
    margin-bottom: 24px;
    font-family: 'Archivo', sans-serif;
    letter-spacing: -0.5px;
}

.fd-meta-row {
    display: flex;
    justify-content: space-between;
    font-size: 14px;
    color: #666;
    margin-bottom: 16px;
}
.fd-specs-link {
    color: #111;
    text-decoration: underline;
    font-weight: 600;
}

.fd-price-row {
    display: flex;
    align-items: baseline;
    gap: 8px;
    margin-bottom: 16px;
}
.fd-price {
    font-size: 42px;
    font-weight: 900;
    color: #111;
}
.fd-unit {
    font-size: 16px;
    font-weight: 500;
    color: #444;
}

.fd-sku {
    font-size: 13px;
    color: #888;
    margin-bottom: 24px;
}

.fd-divider {
    border: none;
    border-top: 1px solid #eaeaea;
    margin: 24px 0;
}

/* Beige Box */
.fd-beige-box {
    background: #f7f6f2; /* Soft beige/grey */
    border: 1px solid #eaeaea;
    padding: 24px;
    border-radius: 4px;
    margin-bottom: 24px;
}
.fd-calc-header {
    display: flex;
    justify-content: space-between;
    align-items: center;
    font-size: 14px;
    font-weight: 800;
    margin-bottom: 24px;
}
.fd-calc-link {
    display: flex;
    align-items: center;
    gap: 4px;
    color: #111;
    text-decoration: underline;
    font-weight: 600;
    cursor: pointer;
}

/* Fulfillment */
.fd-fulfillment-boxes {
    display: flex;
    gap: 16px;
}
.fd-fulfill-box {
    flex: 1;
    border: 2px solid #111;
    padding: 16px;
    display: flex;
    align-items: center;
    gap: 12px;
    cursor: pointer;
    background: #fff;
}
.fd-checkbox, .fd-checkbox-empty {
    width: 20px;
    height: 20px;
    border: 2px solid #111;
    display: flex;
    align-items: center;
    justify-content: center;
}
.fd-fulfill-box.active .fd-checkbox {
    background: #111;
}
.fd-fulfill-box strong {
    font-size: 14px;
    letter-spacing: 1px;
}

/* Override Storefront's narrow container for the single product page */
.single-product #content > .col-full {
    max-width: 1440px !important;
    padding: 0 40px !important;
}

/* ==========================================================================
   WOOCOMMERCE CART & CHECKOUT PREMIUM OVERHAUL
   ========================================================================== */

/* --- CART PAGE --- */
.woocommerce-cart .woocommerce {
    max-width: 1200px;
    margin: 40px auto;
    padding: 0 20px;
}
.woocommerce-cart table.shop_table {
    border: none;
    border-radius: 0;
}
.woocommerce-cart table.shop_table th {
    background: transparent;
    border-top: none;
    border-left: none;
    border-right: none;
    border-bottom: 2px solid #eaeaea;
    text-transform: uppercase;
    letter-spacing: 1px;
    font-size: 13px;
    color: #666;
    padding-bottom: 16px;
}
.woocommerce-cart table.shop_table td {
    border-top: none;
    border-bottom: 1px solid #eaeaea;
    padding: 16px 12px;
    vertical-align: middle;
}
.woocommerce-cart table.shop_table .product-thumbnail {
    width: 80px;
}
.woocommerce-cart table.shop_table .product-thumbnail img {
    border-radius: 4px;
    box-shadow: 0 2px 8px rgba(0,0,0,0.05);
    width: 60px;
    height: auto;
    display: block;
}
.woocommerce-cart table.shop_table .product-name a {
    font-weight: 700;
    color: #111;
    font-size: 16px;
    text-decoration: none;
}
.woocommerce-cart table.shop_table .product-name a:hover {
    color: #007bff;
}

.woocommerce-cart .cart-collaterals {
    margin-top: 40px;
}
.woocommerce-cart .cart_totals {
    background: #fff;
    border: 1px solid #eaeaea;
    border-radius: 8px;
    padding: 32px;
    box-shadow: 0 10px 30px rgba(0,0,0,0.04);
}
.woocommerce-cart .cart_totals h2 {
    font-size: 20px;
    font-family: 'Archivo', sans-serif;
    margin-bottom: 24px;
    border-bottom: 1px solid #eaeaea;
    padding-bottom: 12px;
}
.woocommerce-cart .checkout-button {
    background: #007bff !important;
    color: #fff !important;
    font-size: 16px !important;
    font-weight: 800 !important;
    padding: 16px 24px !important;
    border-radius: 4px !important;
    text-transform: uppercase;
    letter-spacing: 1px;
    display: block;
    width: 100%;
    text-align: center;
    margin-top: 24px;
    transition: background 0.3s;
}
.woocommerce-cart .checkout-button:hover {
    background: #0056b3 !important;
}

/* Coupon & Cart Actions */
.woocommerce-cart .actions {
    padding: 24px 0 !important;
    display: flex;
    justify-content: space-between;
    align-items: center;
}
.woocommerce-cart .coupon {
    display: flex;
    gap: 12px;
}
.woocommerce-cart .coupon input.input-text {
    width: 200px !important;
    padding: 12px 16px;
    border-radius: 4px;
    border: 1px solid #ccc;
    height: 48px;
}
.woocommerce-cart .coupon button.button {
    height: 48px;
    padding: 0 24px;
    border-radius: 4px;
    display: flex;
    align-items: center;
}
.woocommerce-cart button[name="update_cart"] {
    display: none !important;
}

/* Global Notices Cleanup */
.woocommerce-message, .woocommerce-error, .woocommerce-info {
    border-radius: 8px;
    margin-bottom: 40px !important;
    box-shadow: 0 4px 12px rgba(0,0,0,0.05);
}

/* --- CHECKOUT PAGE (SHOPIFY STYLE) --- */
.woocommerce-checkout .woocommerce {
    max-width: 1200px;
    margin: 40px auto;
}

/* Split-Screen Background Magic */
body.woocommerce-checkout {
    background: #ffffff;
    overflow-x: hidden;
}
.woocommerce-checkout form.checkout {
    position: relative;
    z-index: 1;
}
@media (min-width: 992px) {
    .woocommerce-checkout form.checkout::before {
        content: "";
        position: absolute;
        top: -200px; /* Stretch up past header */
        bottom: -500px; /* Stretch down */
        left: 58%; /* Start precisely between the columns */
        width: 100vw; /* Shoot off infinitely to the right */
        background: #fafafa;
        z-index: -1;
        border-left: 1px solid #e1e1e1;
    }
}

@media (min-width: 992px) {
    .woocommerce-checkout form.checkout {
        display: grid !important;
        grid-template-columns: 55% 40% !important;
        justify-content: space-between !important;
        align-items: start !important;
        grid-template-areas: 
            "details heading"
            "details review" !important;
    }
    .woocommerce-checkout form.checkout::after {
        display: none !important;
    }
    .woocommerce-NoticeGroup,
    .woocommerce-form-login-toggle,
    .woocommerce-form-coupon-toggle {
        grid-column: 1 / -1 !important;
    }
    #customer_details {
        grid-area: details !important;
        width: 100% !important;
        float: none !important;
    }
    #order_review_heading {
        grid-area: heading !important;
        width: 100% !important;
        float: none !important;
        margin-top: 0 !important;
        padding-left: 40px !important;
    }
    #order_review {
        grid-area: review !important;
        width: 100% !important;
        float: none !important;
        background: transparent !important;
        box-shadow: none !important;
        border: none !important;
        padding: 0 0 0 40px !important;
    }
}

/* Form Fields Styling (Shopify Style) */
.woocommerce-checkout .form-row {
    margin-bottom: 16px;
}
.woocommerce-checkout .form-row label {
    font-size: 13px;
    font-weight: 600;
    color: #444;
    margin-bottom: 6px;
    display: block;
}
.woocommerce-checkout .form-row input.input-text, 
.woocommerce-checkout .form-row select {
    width: 100%;
    padding: 14px 12px;
    border: 1px solid #d9d9d9;
    border-radius: 5px;
    font-size: 15px;
    color: #333;
    box-shadow: inset 0 1px 3px rgba(0,0,0,0.03);
    transition: border-color 0.2s, background 0.2s;
}
.woocommerce-checkout .form-row input.input-text:focus,
.woocommerce-checkout .form-row textarea:focus {
    background: #fff;
    border-color: #007bff;
    outline: none;
}
.woocommerce-checkout .form-row label {
    font-weight: 600;
    font-size: 14px;
    margin-bottom: 8px;
    color: #444;
}

/* Checkout Table & Product Images (Shopify Style) */
.woocommerce-checkout table.shop_table {
    width: 100%;
    border-collapse: separate;
    border-spacing: 0;
    margin-bottom: 24px;
    background: transparent !important;
    border: none !important;
}
.woocommerce-checkout table.shop_table thead th {
    display: none; /* Hide only top headers like Shopify */
}
.woocommerce-checkout table.shop_table td {
    padding: 16px 0;
    border-top: none;
    border-bottom: 1px solid #e1e1e1;
    vertical-align: middle;
}
.woocommerce-checkout table.shop_table td.product-name {
    position: relative;
    padding-left: 80px !important;
    min-height: 80px;
    display: table-cell;
    vertical-align: top;
}
.woocommerce-checkout table.shop_table td.product-total {
    text-align: right;
    vertical-align: top;
    padding-top: 30px;
    font-weight: 600;
}
.woocommerce-checkout table.shop_table .fd-checkout-thumb {
    position: absolute;
    left: 0;
    top: 16px;
    width: 64px;
    height: 64px;
    object-fit: cover;
    border-radius: 8px;
    border: 1px solid #d9d9d9;
    background: #fff;
}
.woocommerce-checkout table.shop_table .fd-checkout-title {
    font-weight: 600;
    color: #333;
    font-size: 14px;
    line-height: 1.3;
    display: block;
    margin-bottom: 4px;
    margin-top: 16px;
}
/* Shopify-style Quantity Badge */
.woocommerce-checkout table.shop_table .product-quantity {
    position: absolute;
    left: 45px;
    top: 8px;
    font-weight: 600;
    color: #fff;
    background: rgba(114, 114, 114, 0.9);
    padding: 3px 6px;
    border-radius: 12px;
    font-size: 11px;
    z-index: 10;
    line-height: 1;
}
.woocommerce-checkout table.shop_table dl.variation {
    margin: 4px 0 0 0; 
    font-size: 12px;
    color: #666;
    display: block;
}
.woocommerce-checkout table.shop_table dl.variation p {
    margin: 0;
}
.woocommerce-checkout table.shop_table tfoot th,
.woocommerce-checkout table.shop_table tfoot td {
    border-bottom: none;
    padding: 16px 0;
    text-align: right;
}
.woocommerce-checkout table.shop_table tfoot th {
    text-align: left;
    font-weight: 500;
    color: #555;
}
.woocommerce-checkout table.shop_table tfoot .order-total th,
.woocommerce-checkout table.shop_table tfoot .order-total td {
    border-top: 1px solid #e1e1e1;
    font-size: 20px;
    font-weight: 700;
    color: #000;
}

/* Payment Methods */
#payment {
    background: #fff !important;
    border-radius: 8px;
    border: 1px solid #e1e1e1;
    padding: 24px !important;
    margin-top: 24px;
}
#payment ul.payment_methods {
    border-bottom: 1px solid #ddd !important;
    padding-bottom: 24px !important;
    margin-bottom: 24px !important;
}
#payment .payment_box {
    background: #fff !important;
    color: #444 !important;
    border: 1px solid #eaeaea !important;
    box-shadow: none !important;
}
#payment .payment_box::before {
    display: none !important;
}

/* Submit Button */
#place_order {
    background: #007bff !important;
    color: #fff !important;
    font-size: 18px !important;
    font-weight: 800 !important;
    padding: 20px !important;
    border-radius: 4px !important;
    text-transform: uppercase;
    letter-spacing: 1px;
    width: 100%;
    margin-top: 12px;
    transition: background 0.3s;
}
#place_order:hover {
    background: #0056b3 !important;
}

/* ==========================================================================
   AJAX SIDE CART DRAWER (SHOPIFY STYLE)
   ========================================================================== */

/* Dark Overlay */
.fd-cart-overlay {
    position: fixed;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    background: rgba(0,0,0,0.5);
    z-index: 99998;
    opacity: 0;
    visibility: hidden;
    transition: opacity 0.3s ease, visibility 0.3s;
}
.fd-cart-overlay.active {
    opacity: 1;
    visibility: visible;
}

/* Slide-out Drawer */
.fd-cart-drawer {
    position: fixed;
    top: 0;
    right: -400px;
    width: 400px;
    max-width: 100%;
    height: 100vh;
    background: #fff;
    z-index: 99999;
    box-shadow: -5px 0 30px rgba(0,0,0,0.1);
    transition: right 0.3s ease;
    display: flex;
    flex-direction: column;
}
.fd-cart-drawer.active {
    right: 0;
}

/* Drawer Header */
.fd-drawer-header {
    display: flex;
    justify-content: space-between;
    align-items: center;
    padding: 20px 24px;
    border-bottom: 1px solid #eaeaea;
    background: #f8f9fa;
}
.fd-drawer-header h3 {
    margin: 0;
    font-size: 18px;
    font-weight: 700;
    color: #111;
}
.fd-close-drawer {
    background: none;
    border: none;
    font-size: 28px;
    line-height: 1;
    color: #888;
    cursor: pointer;
    padding: 0;
}
.fd-close-drawer:hover {
    color: #000;
}

/* Drawer Content (WooCommerce Mini Cart) */
.fd-drawer-content {
    padding: 24px;
    flex-grow: 1;
    overflow-y: auto;
}
.fd-drawer-content .widget_shopping_cart_content {
    display: flex;
    flex-direction: column;
    height: 100%;
}
.fd-drawer-content ul.cart_list {
    flex-grow: 1;
    padding: 0;
    margin: 0;
    list-style: none;
.fd-drawer-content ul.cart_list li {
    padding-bottom: 24px !important;
    margin-bottom: 24px !important;
    border-bottom: 1px solid #eaeaea !important;
    position: relative !important;
    padding-left: 120px !important;
    min-height: 120px !important;
    display: block !important;
    float: none !important;
}
.fd-drawer-content ul.cart_list li img {
    position: absolute !important;
    left: 0 !important;
    top: 0 !important;
    width: 96px !important;
    height: 96px !important;
    object-fit: cover !important;
    border-radius: 4px !important;
    margin: 0 !important;
    float: none !important;
    background: #f4f4f4 !important;
}
.fd-drawer-content ul.cart_list li a:not(.remove) {
    font-weight: 500 !important;
    color: #111 !important;
    font-size: 15px !important;
    text-decoration: none !important;
    display: block !important;
    margin-bottom: 2px !important;
    padding-right: 70px !important; /* Leave room for price */
    line-height: 1.4 !important;
}
.fd-drawer-content ul.cart_list dl.variation {
    margin: 4px 0 0 0 !important;
    font-size: 13px !important;
    color: #777 !important;
    display: block !important;
    text-transform: uppercase !important;
    letter-spacing: 0.5px !important;
}
.fd-drawer-content ul.cart_list dl.variation dt {
    font-weight: 500 !important;
    display: inline-block !important;
    margin-right: 4px !important;
}
.fd-drawer-content ul.cart_list dl.variation dd {
    display: inline-block !important;
    margin: 0 !important;
}
.fd-drawer-content ul.cart_list li .fd-mini-qty {
    font-size: 14px !important;
    color: #333 !important;
    display: block !important;
    margin-top: 12px !important;
    font-weight: 500 !important;
}
.fd-drawer-content ul.cart_list li .fd-mini-price {
    position: absolute !important;
    right: 0 !important;
    top: 0 !important;
    font-weight: 600 !important;
    font-size: 15px !important;
    color: #111 !important;
}
.fd-drawer-content ul.cart_list li a.remove {
    display: none !important; /* The '47 brand cart doesn't have an X, users can set qty to 0 */
}
/* Premium Checkout Button Styles */
.fd-drawer-content .woocommerce-mini-cart__buttons {
    margin-top: 24px !important;
}
.fd-drawer-content .woocommerce-mini-cart__buttons a.button {
    display: block !important;
    width: 100% !important;
    text-align: center !important;
    padding: 18px !important;
    font-weight: 700 !important;
    font-size: 14px !important;
    border-radius: 2px !important;
    text-transform: uppercase !important;
    letter-spacing: 0.5px !important;
    margin-bottom: 12px !important;
}
.fd-drawer-content .woocommerce-mini-cart__buttons a.button.checkout {
    background: #222 !important;
    color: #fff !important;
}
.fd-drawer-content .woocommerce-mini-cart__buttons a.button.checkout:hover {
    background: #000 !important;
}
.fd-drawer-content .woocommerce-mini-cart__buttons a.button:not(.checkout) {
    background: #f4f4f4 !important;
    color: #111 !important;
}
.fd-continue-shopping {
    display: none !important;
}
.fd-drawer-content .total {
    border-top: 2px solid #eaeaea;
    padding-top: 16px;
    margin-top: auto;
    font-size: 18px;
    font-weight: 700;
    display: flex;
    justify-content: space-between;
}
.fd-drawer-content .buttons {
    margin-top: 20px;
    display: flex;
    flex-direction: column;
    gap: 12px;
}
.fd-drawer-content .buttons a.button {
    text-align: center;
    padding: 14px;
    border-radius: 4px;
    font-weight: 700;
    text-transform: uppercase;
    letter-spacing: 1px;
}
.fd-drawer-content .buttons a.button.checkout {
    background: #007bff;
    color: #fff;
}
.fd-drawer-content .buttons a.button:not(.checkout) {
    background: #f1f1f1;
    color: #333;
}

/* ==========================================================================
   STICKY PRODUCT GALLERY
   ========================================================================== */
@media (min-width: 768px) {
    /* Critical: Override Storefront's native hidden overflow which breaks sticky */
    html,
    body.single-product, 
    body.single-product .site-shell,
    body.single-product .site,
    body.single-product .site-content,
    body.single-product .col-full,
    body.single-product .content-area,
    body.single-product .site-main,
    body.single-product .woocommerce,
    body.single-product .product {
        overflow: visible !important;
        overflow-x: visible !important;
        overflow-y: visible !important;
    }

    /* Use Flexbox for rock-solid sticky support across all browsers */
    .single-product div.product {
        display: flex !important;
        flex-wrap: wrap !important;
        align-items: flex-start !important; /* This creates the track for sticky to slide down */
        justify-content: space-between !important;
    }
    
    .single-product div.product .fd-gallery-container {
        width: 48% !important;
        float: none !important;
        /* The Magic Sticky CSS */
        position: -webkit-sticky !important;
        position: sticky !important;
        top: 40px !important; 
        align-self: flex-start !important;
        height: max-content !important; 
        z-index: 10;
        margin-bottom: 40px !important;
    }
    
    .single-product div.product .summary.entry-summary {
        width: 48% !important;
        float: none !important;
        margin-bottom: 40px !important;
    }
    
    .single-product div.product .woocommerce-tabs,
    .single-product div.product .related.products,
    .single-product div.product .upsells.products {
        width: 100% !important;
        clear: both !important;
    }
    
    /* Remove any Storefront clearfixes that break flexbox */
    .single-product div.product::before,
    .single-product div.product::after {
        display: none !important;
    }
}
