/*
Theme Name: QuickTheme
Theme URI: https://wpquickform.com
Author: QuickTheme
Author URI: https://wpquickform.com
Description: Ultra-lightweight WordPress theme optimized for COD (Cash on Delivery) sellers. Built for speed with minimal CSS, JS, and HTML. Integrates seamlessly with QuickFORM for instant checkout.
Version: 1.0.0
Requires at least: 6.0
Tested up to: 6.4
Requires PHP: 7.4
License: GPL v2 or later
License URI: http://www.gnu.org/licenses/gpl-2.0.html
Text Domain: quicktheme
Tags: e-commerce, woocommerce, lightweight, fast, cod, checkout

QuickTheme is a minimal, high-performance theme designed for COD sellers.
*/

:root {
    --primary-color: #17a2b8;
    --primary-color-hover: #138496;
    --header-top-bg: #17a2b8;
    --header-top-text: #ffffff;
}

/* ============================================
   GE SS TWO Font Face Declarations
   ============================================ */
@font-face {
    font-family: 'GE SS TWO';
    src: url('assets/fonts/GE-SS-TWO-MEDIUM.woff2') format('woff2');
    font-weight: 500;
    font-style: normal;
    font-display: swap;
    unicode-range: U+0600-06FF, U+0750-077F, U+08A0-08FF, U+FB50-FDFF, U+FE70-FEFF, U+FDF0-FDFF;
    /* Arabic letters only - numbers (U+0030-0039) will use fallback font */
}

@font-face {
    font-family: 'GE SS TWO';
    src: url('assets/fonts/GE-SS-TWO-BLOD.woff2') format('woff2');
    font-weight: 700;
    font-style: normal;
    font-display: swap;
    unicode-range: U+0600-06FF, U+0750-077F, U+08A0-08FF, U+FB50-FDFF, U+FE70-FEFF, U+FDF0-FDFF;
    /* Arabic letters only - numbers (U+0030-0039) will use fallback font */
}

/* ============================================
   CSS Reset & Base Styles
   ============================================ */
* {
    margin: 0;
    padding: 0;
    box-sizing: border-box;
}

html {
    font-size: 16px;
    -webkit-text-size-adjust: 100%;
}

body {
    font-family: 'GE SS TWO', -apple-system, BlinkMacSystemFont, "Segoe UI", Roboto, sans-serif;
    font-weight: 500;
    line-height: 1.6;
    color: #333;
    background: #fff;
    font-variant-numeric: normal;
}

body.menu-open {
    overflow: hidden;
}

/* Headings use bold */
h1,
h2,
h3,
h4,
h5,
h6 {
    font-family: 'GE SS TWO', -apple-system, BlinkMacSystemFont, "Segoe UI", Roboto, sans-serif;
    font-weight: 700;
    line-height: 1.3em;
}

img {
    max-width: 100%;
    height: auto;
    display: block;
}

a {
    text-decoration: none;
    color: inherit;
    cursor: pointer;
}

button,
input,
select,
textarea {
    font-family: inherit;
    font-size: inherit;
}

button {
    cursor: pointer;
    border: none;
    background: none;
}

ul,
ol {
    list-style: none;
}

/* ============================================
   Header Styles
   ============================================ */
.site-header {
    background: #fff;
    border-bottom: 1px solid #e5e5e5;
}

.header-top-bar {
    background: var(--header-top-bg);
    padding: 8px 20px;
    text-align: center;
    font-size: 14px;
    color: var(--header-top-text);
    min-height: 50px;
    display: flex;
    align-items: center;
    justify-content: center;
}

.header-main {
    max-width: 1200px;
    margin: 0 auto;
    padding: 15px 20px;
    display: flex;
    align-items: center;
    justify-content: space-between;
    gap: 30px;
    min-height: 75px;
}

.site-logo {
    flex-shrink: 0;
}

.site-logo img {
    max-height: 50px;
    width: auto;
}

.main-navigation {
    flex: 1;
    display: flex;
    justify-content: center;
}

.main-navigation ul {
    display: flex;
    gap: 25px;
    align-items: center;
}

.main-navigation a {
    font-size: 15px;
    color: #333;
    transition: color 0.2s;
}

.main-navigation a:hover {
    color: #0073aa;
}

.header-search {
    flex-shrink: 0;
    cursor: pointer;
    background: none;
    border: none;
    padding: 0;
}

.header-search svg {
    width: 24px;
    height: 24px;
    display: block;
    fill: #333;
    transition: fill 0.2s;
}

.header-search:hover svg {
    fill: var(--primary-color);
}

/* Header Actions Container */
.header-actions {
    display: flex;
    align-items: center;
    gap: 20px;
    flex-shrink: 0;
}

/* Header Cart Icon */
.header-cart {
    flex-shrink: 0;
    cursor: pointer;
    background: none;
    border: none;
    padding: 0;
    position: relative;
}

.header-cart svg {
    width: 24px;
    height: 24px;
    display: block;
    stroke: #333;
    fill: none;
    transition: stroke 0.2s;
}

.header-cart:hover svg {
    stroke: var(--primary-color);
}

.cart-count {
    position: absolute;
    top: -8px;
    right: -8px;
    background: var(--primary-color);
    color: #fff;
    font-size: 11px;
    font-weight: 700;
    min-width: 18px;
    height: 18px;
    border-radius: 9px;
    display: flex;
    align-items: center;
    justify-content: center;
    padding: 0 4px;
    line-height: 1;
}

.cart-count:empty {
    display: none;
}

/* WooCommerce Notice Boxes */
.woocommerce-message,
.woocommerce-info,
.woocommerce-error {
    padding: 16px 20px;
    margin-bottom: 20px;
    border-radius: 4px;
    border-left: 4px solid;
    background: #f8f8f8;
    display: flex;
    align-items: center;
    gap: 12px;
}

.woocommerce-message {
    border-left-color: #28a745;
    color: #155724;
}

.woocommerce-info {
    border-left-color: var(--primary-color);
    color: #0c5460;
    background: #d1ecf1;
}

.woocommerce-error {
    border-left-color: #ff4444;
    color: #721c24;
    background: #f8d7da;
}

.woocommerce-message::before,
.woocommerce-info::before {
    content: '';
    display: inline-block;
    width: 20px;
    height: 20px;
    flex-shrink: 0;
}

.woocommerce-message a,
.woocommerce-info a,
.woocommerce-error a {
    color: inherit;
    text-decoration: underline;
    font-weight: 700;
}

.woocommerce-message a:hover,
.woocommerce-info a:hover,
.woocommerce-error a:hover {
    text-decoration: none;
}

/* Side Cart */
.side-cart {
    position: fixed;
    top: 0;
    left: 0;
    right: 0;
    bottom: 0;
    z-index: 10000;
    opacity: 0;
    visibility: hidden;
    transition: opacity 0.3s, visibility 0.3s;
    pointer-events: none;
}

.side-cart.active {
    opacity: 1;
    visibility: visible;
    pointer-events: all;
}

.side-cart-overlay {
    position: absolute;
    top: 0;
    left: 0;
    right: 0;
    bottom: 0;
    background: rgba(0, 0, 0, 0.5);
    backdrop-filter: blur(2px);
}

.side-cart-panel {
    position: absolute;
    top: 0;
    right: 0;
    width: 400px;
    max-width: 90%;
    height: 100%;
    background: #fff;
    box-shadow: -4px 0 20px rgba(0, 0, 0, 0.15);
    display: flex;
    flex-direction: column;
    transform: translateX(100%);
    transition: transform 0.3s ease;
}

.side-cart.active .side-cart-panel {
    transform: translateX(0);
    display: flex;
    flex-direction: column;
    justify-content: space-between;
}

.side-cart-header {
    display: flex;
    justify-content: space-between;
    align-items: center;
    padding: 20px;
    border-bottom: 2px solid #e5e5e5;
    flex-shrink: 0;
}

.side-cart-header h3 {
    font-size: 20px;
    margin: 0;
    color: #333;
}

.side-cart-close {
    background: none;
    border: none;
    padding: 8px;
    cursor: pointer;
    color: #666;
    transition: color 0.2s;
}

.side-cart-close:hover {
    color: #333;
}

.side-cart-close svg {
    width: 20px;
    height: 20px;
    display: block;
    fill: currentColor;
}

.side-cart-content {
    flex: 1;
    overflow-y: auto;
    padding: 0;
    height: inherit;
}

.side-cart-content .woocommerce-mini-cart {
    padding: 0;
    margin: 0;
}

body.cart-open {
    overflow: hidden;
}

/* ============================================
   Search Popup
   ============================================ */
.search-popup {
    position: fixed;
    top: 0;
    left: 0;
    right: 0;
    bottom: 0;
    z-index: 9999;
    display: flex;
    align-items: center;
    justify-content: center;
    opacity: 0;
    visibility: hidden;
    transition: opacity 0.3s, visibility 0.3s;
    pointer-events: none;
}

.search-popup.active {
    opacity: 1;
    visibility: visible;
    pointer-events: all;
}

.search-popup-overlay {
    position: absolute;
    top: 0;
    left: 0;
    right: 0;
    bottom: 0;
    background: rgba(0, 0, 0, 0.5);
    backdrop-filter: blur(2px);
}

.search-popup-content {
    position: relative;
    background: #fff;
    border-radius: 8px;
    padding: 30px;
    max-width: 600px;
    width: 50%;
    box-shadow: 0 10px 40px rgba(0, 0, 0, 0.2);
    transition: transform 0.2s;
}


.search-popup-close {
    margin-bottom: 16px;
    top: 15px;
    right: 15px;
    background: none;
    border: none;
    padding: 8px;
    cursor: pointer;
    color: #666;
    transition: color 0.2s;
}

.search-popup-close:hover {
    color: #333;
}

.search-popup-close svg {
    width: 20px;
    height: 20px;
    display: block;
    fill: currentColor;
}

.search-popup-form {
    display: flex;
    gap: 10px;
    align-items: center;
}

.search-popup-input {
    flex: 1;
    padding: 12px 16px;
    border: 2px solid #e5e5e5;
    border-radius: 4px;
    font-size: 16px;
    font-family: inherit;
    outline: none;
    transition: border-color 0.2s;
}

.search-popup-input:focus {
    border-color: var(--primary-color);
}

.search-popup-submit {
    display: flex;
    align-items: center;
    gap: 8px;
    padding: 12px 24px;
    background: var(--primary-color);
    color: #fff;
    border: none;
    border-radius: 4px;
    font-size: 16px;
    font-weight: 700;
    cursor: pointer;
    transition: background 0.2s, filter 0.2s;
    font-family: inherit;
}

.search-popup-submit:hover {
    background: var(--primary-color-hover);
}

.search-popup-submit svg {
    width: 20px;
    height: 20px;
    fill: currentColor;
}

body.search-open {
    overflow: hidden;
}

/* Mobile Menu Toggle Button */
.mobile-menu-toggle {
    display: none;
    background: none;
    border: none;
    padding: 8px;
    cursor: pointer;
    color: #333;
}

.mobile-menu-toggle svg,
.mobile-menu-close svg {
    width: 24px;
    height: 24px;
    display: block;
    fill: currentColor;
}

.mobile-menu-close {
    display: none;
    position: absolute;
    top: 15px;
    right: 20px;
    background: none;
    border: none;
    padding: 8px;
    cursor: pointer;
    color: #333;
    z-index: 1001;
}

.mobile-menu-close svg {
    width: 24px;
    height: 24px;
    display: block;
}

/* ============================================
   Footer Styles
   ============================================ */
.site-footer {
    background: #2c2c2c;
    color: #fff;
    margin-top: 60px;
}

.footer-top {
    max-width: 1200px;
    margin: 0 auto;
    padding: 60px 20px;
    display: flex;
    flex-direction: column;
    /* Stack vertically always as requested, or just mobile? Request implied redesign */
    align-items: center;
    justify-content: center;
    gap: 30px;
    text-align: center;
}

/* .footer-menu ul removed */

.footer-menu a {
    color: #ccc;
    font-size: 14px;
    transition: color 0.2s;
}

.footer-menu a:hover {
    color: #fff;
}

.footer-nav-menu {
    display: flex;
    flex-wrap: wrap;
    justify-content: center;
    gap: 15px;
    padding: 0;
    margin: 0;
    list-style: none;
}

.footer-logo img {
    max-height: 40px;
    width: auto;
}

.footer-social {
    display: flex;
    gap: 15px;
    justify-content: center;
}

.footer-social a {
    width: 32px;
    height: 32px;
    display: flex;
    align-items: center;
    justify-content: center;
    /* transition: transform 0.2s; */
    /* Optional hover effect */
    color: #ccc;
    transition: opacity 0.2s;
}

.footer-social a:hover {
    opacity: 0.8;
}

/* Mobile Header/Search Tweaks */
.menu-search-trigger {
    display: none;
    /* Hidden on desktop */
    align-items: center;
    gap: 10px;
    width: 100%;
    padding: 15px 0;
    margin-bottom: 10px;
    background: none;
    border: none;
    border-bottom: 1px solid rgba(0, 0, 0, 0.05);
    text-align: right;
    /* RTL alignment */
    font-size: 16px;
    font-weight: 700;
    color: #333;
    cursor: pointer;
}

.menu-search-trigger svg {
    width: 20px;
    height: 20px;
}

@media (max-width: 768px) {
    .header-actions .header-search {
        display: none !important;
    }

    .menu-search-trigger {
        display: flex;
        /* Show in mobile menu */
    }
}

.footer-bottom {
    border-top: 1px solid rgba(255, 255, 255, 0.1);
    padding: 20px;
    text-align: center;
    font-size: 14px;
    color: white;
    background-color: var(--primary-color-hover);
    /* Using hover variant as it was darker */
}

/* ============================================
   Homepage Hero
   ============================================ */
.hero-section {
    min-height: 500px;
    display: flex;
    align-items: center;
    justify-content: center;
    text-align: center;
    padding: 60px 20px;
    background: #f8f8f8;
    background-size: cover;
    background-position: center;
}

.hero-content {
    background: rgba(255, 255, 255, 0.9);
    padding: 40px;
    border-radius: 8px;
    box-shadow: 0 5px 20px rgba(0, 0, 0, 0.05);
}

.hero-content h1 {
    font-size: 48px;
    font-weight: 700;
    margin-bottom: 30px;
    color: #333;
}

.shop-button {
    display: inline-block;
    padding: 15px 40px;
    background: var(--primary-color);
    color: #fff;
    font-size: 16px;
    font-weight: 700;
    border-radius: 4px;
    transition: background 0.2s, filter 0.2s;
    cursor: pointer;
}

.shop-button:hover {
    background: var(--primary-color-hover);
}

/* ============================================
   Latest Products Section
   ============================================ */
.latest-products-section {
    padding: 60px 0;
    background: #fff;
}

.latest-products-title {
    text-align: center;
    font-size: 36px;
    font-weight: 700;
    color: #333;
    margin-bottom: 40px;
}

/* Specific grids moved lower to override base styles */

/* More Products Button */
.more-products-button-wrapper {
    text-align: center;
    margin-top: 40px;
}

.more-products-button {
    display: inline-block;
    padding: 15px 40px;
    background: var(--primary-color);
    color: #fff;
    font-size: 16px;
    font-weight: 700;
    border-radius: 4px;
    transition: background 0.2s, filter 0.2s;
    cursor: pointer;
}

.more-products-button:hover {
    background: var(--primary-color-hover);
}

/* ============================================
   Related Products Section
   ============================================ */
.related-products-section {
    background: #fff;
    border-top: 1px solid #e5e5e5;
}

.related-products-title {
    text-align: center;
    font-size: 36px;
    font-weight: 700;
    color: #333;
    margin-bottom: 40px;
}

/* Related products moved lower */

/* ============================================
   Single Product Page
   ============================================ */
.single-product-wrapper {
    max-width: 1200px;
    margin: 40px auto;
    padding: 0 20px;
}

.product-content {
    display: flex;
    flex-wrap: wrap;
    gap: 24px;
    align-items: start;
}

.product-images {
    top: 20px;
    width: calc(50% - 12px);
    flex: 0 0 calc(50% - 12px);
}

.product-gallery {
    position: relative;
    width: 100%;
    margin-bottom: 15px;
    aspect-ratio: 1 / 1;
    /* Fixed 1:1 square aspect ratio */
    overflow: hidden;
    border-radius: 4px;
    background: #f8f8f8;
}

.gallery-slide {
    display: none;
    width: 100%;
    height: 100%;
    position: absolute;
    top: 0;
    left: 0;
}

.gallery-slide.active {
    display: block;
}

.gallery-slide img,
.gallery-slide .product-gallery-image {
    width: 100%;
    height: 100%;
    object-fit: cover;
    object-position: center;
    display: block;
    border-radius: 4px;
}

.gallery-thumbnails {
    display: flex;
    gap: 10px;
}

.gallery-thumb {
    width: auto;
    height: auto;
    aspect-ratio: 1 / 1;
    /* Fixed 1:1 square */
    cursor: pointer;
    opacity: 0.5;
    transition: opacity 0.2s;
    border: 2px solid transparent;
    border-radius: 4px;
    overflow: hidden;
    position: relative;
}

.gallery-thumb:hover,
.gallery-thumb.active {
    opacity: 1;
    border-color: var(--primary-color);
}

.gallery-thumb img {
    width: 100%;
    height: 100%;
    object-fit: cover;
    object-position: center;
    display: block;
}

.product-summary {
    padding: 20px 0;
    display: flex;
    flex-direction: column;
    gap: 20px;
    width: calc(50% - 12px);
    flex: 0 0 calc(50% - 12px);
}

.product-title {
    font-size: 32px;
    font-weight: 700;
}

.product-price {
    font-size: 32px;
    font-weight: 700;
    color: #0073aa;
    margin-bottom: 30px;
    font-variant-numeric: normal;
}

.product-description {
    margin-top: 20px;
}

/* ============================================
   Responsive Design
   ============================================ */
@media (max-width: 768px) {
    .header-main {
        justify-content: center;
        position: relative;
    }

    .site-logo {
        text-align: center;
    }

    .mobile-menu-toggle {
        display: block;
        order: 3;
        position: absolute;
        right: 20px;
    }

    .header-actions {
        position: absolute;
        left: 20px;
        order: 1;
        display: flex !important;
        flex-direction: row !important;
        /* Force search on left, cart on right */
        align-items: center;
        gap: 20px;
    }

    .header-search {
        position: static;
        order: 1;
    }

    .header-cart {
        order: 2;
    }

    .main-navigation {
        position: fixed;
        top: 0;
        left: 0;
        right: 0;
        bottom: 0;
        background: #fff;
        z-index: 1000;
        flex-direction: column;
        justify-content: flex-start;
        padding: 60px 20px 20px;
        transform: translateX(-100%);
        transition: transform 0.3s ease;
        overflow-y: auto;
    }

    .main-navigation.menu-open {
        transform: translateX(0);
    }

    .mobile-menu-close {
        display: block;
    }

    .main-navigation ul {
        flex-direction: column;
        gap: 0;
        width: 100%;
    }

    .main-navigation li {
        width: 100%;
        border-bottom: 1px solid #e5e5e5;
    }

    .main-navigation a {
        display: block;
        padding: 15px 0;
        font-size: 16px;
    }

    .hero-content h1 {
        font-size: 32px;
    }

    .latest-products-title {
        font-size: 28px;
        margin-bottom: 30px;
    }

    .latest-products-grid {
        grid-template-columns: repeat(2, 1fr);
        gap: 20px;
    }

    .related-products-title {
        font-size: 28px;
        margin-bottom: 30px;
    }

    .related-products-grid {
        grid-template-columns: repeat(2, 1fr);
        gap: 20px;
    }

    .product-content {
        flex-direction: column;
    }

    .product-images {
        position: static;
        width: 100%;
        flex: 0 0 100%;
    }

    .product-summary {
        width: 100%;
        flex: 0 0 100%;
    }

    .footer-top {
        flex-direction: column;
        text-align: center;
    }

    .footer-menu ul {
        justify-content: center;
    }
}

/* ============================================
   Landing Page Template
   ============================================ */
.landing-page-wrapper {
    width: 100%;
}

.landing-page-wrapper .entry-content {
    width: 100%;
}

/* Elementor compatibility - full width */
.elementor-page .landing-page-wrapper {
    padding: 0;
}

/* ============================================
   Utility Classes
   ============================================ */
.container {
    max-width: 1200px;
    margin: 0 auto;
    padding: 20px;
}

.text-center {
    text-align: center;
}

.mt-20 {
    margin-top: 20px;
}

.mb-20 {
    margin-bottom: 20px;
}

/* ============================================
   Product Gallery Styles
   ============================================ */

/* ============================================
   Error 404 Styles
   ============================================ */
.error-404 {
    padding: 80px 20px;
}

.error-404 h1 {
    font-size: 120px;
    font-weight: 700;
    color: #0073aa;
    margin-bottom: 20px;
}

.error-404 h2 {
    font-size: 32px;
    margin-bottom: 15px;
}

.error-404 p {
    font-size: 18px;
    color: #666;
    margin-bottom: 30px;
}

/* ============================================
   Shop Page Styles
   ============================================ */
.shop-page-wrapper {
    max-width: 1200px;
    margin: 40px auto;
    padding: 0 20px;
}

.shop-header {
    margin-bottom: 40px;
}

.shop-title {
    text-align: center;
    font-size: 48px;
    font-weight: 700;
    color: #333;
    margin-bottom: 30px;
}

.shop-toolbar {
    display: flex;
    justify-content: space-between;
    align-items: center;
    margin-bottom: 30px;
    flex-wrap: wrap;
    gap: 15px;
}

.shop-results-count {
    font-size: 14px;
    color: #666;
}

.shop-sorting select {
    padding: 8px 12px;
    border: 1px solid #ddd;
    border-radius: 4px;
    font-size: 14px;
    background: #fff;
    cursor: pointer;
}

.products-grid {
    display: grid;
    grid-template-columns: repeat(auto-fill, minmax(250px, 1fr));
    gap: 30px;
    list-style: none;
    padding: 0;
    margin: 0;
}

/* 3x3 Grid for Search Results */
.search-products-grid {
    grid-template-columns: repeat(3, 1fr);
    max-width: 1200px;
    margin: 0 auto;
}

/* Specific Grid Overrides - Placed here to ensure they override .products-grid */
.latest-products-grid,
.related-products-grid {
    display: grid !important;
    grid-template-columns: repeat(4, minmax(0, 1fr)) !important;
    max-width: 1200px;
    margin: 0 auto;
    gap: 30px;
}

.latest-products-grid li,
.related-products-grid li {
    width: 100% !important;
    max-width: 100% !important;
    margin: 0 !important;
    list-style: none !important;
}

/* ============================================
   Product Card Styles
   ============================================ */
.product-card {
    border: 1px solid #e5e5e5;
    border-radius: 8px;
    overflow: hidden;
    background: #fff;
    transition: box-shadow 0.2s;
    height: 100%;
    display: flex;
    flex-direction: column;
}

.product-card:hover {
    box-shadow: 0 4px 12px rgba(0, 0, 0, 0.1);
}

.product-link {
    display: flex;
    flex-direction: column;
    height: 100%;
    text-decoration: none;
    color: inherit;
    cursor: pointer;
}

.product-image-wrapper {
    position: relative;
    width: 100%;
    aspect-ratio: 1 / 1;
    /* Fixed 1:1 square aspect ratio */
    padding-top: 100%;
    /* Fallback for older browsers */
    background: #f8f8f8;
    overflow: hidden;
}

.product-image-wrapper img,
.product-image-wrapper .product-image {
    position: absolute;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    object-fit: cover;
    object-position: center;
    display: block;
}

.promo-badge {
    position: absolute;
    top: 10px;
    right: 10px;
    background: #17a2b8;
    color: #fff;
    padding: 6px 12px;
    border-radius: 4px;
    font-size: 12px;
    font-weight: 700;
    text-transform: uppercase;
    z-index: 2;
}

.product-info {
    padding: 18px 20px 20px;
    flex: 1;
    display: flex;
    flex-direction: column;
    gap: 16px;
}

.product-category {
    font-size: 12px;
    color: #999;
    text-transform: lowercase;
    display: block;
}

.product-title {
    font-size: 17px;
    font-weight: 700;
    color: #333;
    margin: 0;
    flex: 1;
    display: -webkit-box;
    -webkit-line-clamp: 3;
    line-clamp: 3;
    -webkit-box-orient: vertical;
    overflow: hidden;
}

.product-price-wrapper {
    display: flex;
    flex-direction: row;
    align-items: center;
    gap: 8px;
    flex-wrap: wrap;
}

.product-price-original {
    font-size: 14px;
    color: #333;
    opacity: 0.5;
    text-decoration: line-through;
    font-weight: 500;
    font-variant-numeric: normal;
}

.product-price-current {
    font-size: 18px;
    font-weight: 700;
    color: #333;
    font-variant-numeric: normal;
    line-height: 1.2;
    text-decoration: none;
    display: flex;
    flex-wrap: wrap;
    gap: 4px 8px;
    max-width: 100%;
    /* Ensure no line-through on sale price */
}

.product-price-current .woocommerce-Price-amount {
    color: #333;
    font-variant-numeric: normal;
    text-decoration: none;
    /* Ensure no line-through */
}

.product-buy-button {
    display: block;
    width: 100%;
    padding: 12px 12px;
    background: var(--primary-color);
    color: #fff;
    font-size: 14px;
    font-weight: 700;
    border: none;
    border-radius: 4px;
    text-align: center;
    transition: background 0.2s;
    text-transform: uppercase;
    margin-top: auto;
    /* margin-top: auto keeps button at bottom, gap handles spacing above */
}

.product-link:hover .product-buy-button {
    background: var(--primary-color-hover);
}

.no-products {
    text-align: center;
    padding: 60px 20px;
    color: #666;
}

/* ============================================
   Pagination Styles
   ============================================ */
.pagination,
.navigation {
    margin: 40px 0;
    text-align: center;
}

.page-numbers {
    display: inline-flex;
    gap: 8px;
    list-style: none;
    padding: 0;
    margin: 0;
    flex-wrap: wrap;
    justify-content: center;
}

.page-numbers li {
    display: inline-block;
}

.page-numbers a,
.page-numbers span {
    display: inline-block;
    padding: 8px 12px;
    min-width: 40px;
    text-align: center;
    border: 1px solid #ddd;
    border-radius: 4px;
    color: #333;
    text-decoration: none;
    transition: all 0.2s;
    cursor: pointer;
}

.page-numbers a:hover {
    background: var(--primary-color);
    color: #fff;
    border-color: var(--primary-color);
}

.page-numbers .current {
    background: var(--primary-color);
    color: #fff;
    border-color: var(--primary-color);
    font-weight: 700;
}

.page-numbers .dots {
    border: none;
    padding: 8px 4px;
}

.page-numbers .prev,
.page-numbers .next {
    font-weight: 700;
}

/* ============================================
   Shop Page Responsive
   ============================================ */
@media (max-width: 768px) {
    .shop-title {
        font-size: 32px;
    }

    .shop-toolbar {
        flex-direction: column;
        align-items: flex-start;
    }

    .products-grid {
        grid-template-columns: repeat(auto-fill, minmax(200px, 1fr));
        gap: 20px;
    }

    /* Search grid becomes 2 columns on tablet */
    .search-products-grid {
        grid-template-columns: repeat(2, 1fr);
    }

    /* Latest and related products become 2 columns on tablet */
    .latest-products-grid,
    .related-products-grid {
        grid-template-columns: repeat(2, minmax(0, 1fr)) !important;
        gap: 20px;
    }

    /* Search Popup Tablet */
    .search-popup-content {
        width: 90%;
        max-width: 90%;
        padding: 25px;
    }
}

@media (max-width: 480px) {
    .products-grid {
        grid-template-columns: repeat(2, 1fr);
        gap: 10px;
    }

    /* Search grid becomes 1 column on mobile */
    .search-products-grid {
        grid-template-columns: 1fr;
    }

    /* Grids become 2 columns on mobile */
    .latest-products-grid,
    .related-products-grid {
        display: grid !important;
        grid-template-columns: repeat(2, minmax(0, 1fr)) !important;
        gap: 10px;
    }

    .latest-products-title {
        font-size: 24px;
        margin-bottom: 25px;
    }

    .related-products-title {
        font-size: 24px;
        margin-bottom: 25px;
    }

    /* Unified override above handles this */

    .product-info {
        padding: 16px 10px 10px 10px;
    }

    /* Product card typography adjustments for mobile */
    .product-title {
        font-size: 16px;
    }

    .product-price-current {
        font-size: 14px;
    }

    .product-price-original {
        font-size: 13px;
    }

    .product-buy-button {
        font-size: 13px;
    }

    .page-numbers a,
    .page-numbers span {
        padding: 6px 10px;
        min-width: 36px;
        font-size: 14px;
    }

    /* Search Popup Mobile */
    .search-popup-content {
        padding: 20px;
        width: 90%;
        max-width: 90%;
    }

    .search-popup-form {
        flex-direction: column;
    }

    .search-popup-input {
        width: 100%;
    }

    .search-popup-submit {
        width: 100%;
        justify-content: center;
    }
}

.woocommerce-Price-amount {
    font-size: 26px;
    font-weight: 700;
    font-variant-numeric: normal;
    line-height: 1.2;
    display: flex;
    text-align: center;
    text-transform: uppercase;
}

/* Single product page price styling - only regular price has line-through */
.product-summary .price {
    display: flex;
    flex-direction: row;
    gap: 8px;
    align-items: center;
    flex-wrap: wrap;
    padding-bottom: 20px;
    margin-bottom: 20px;
    border-bottom: 2px solid #EBF0F4;
    position: relative;
}

.product-summary .price del {
    text-decoration: line-through !important;
    color: #333;
    opacity: 0.5;
}

.product-summary .price ins {
    text-decoration: none !important;
    /* Remove default underline from ins tag */
    color: #333;
    font-size: 40px;
    font-weight: 700;
    display: inline-block;
}

.product-summary .price ins .woocommerce-Price-amount {
    text-decoration: none !important;
    color: #333;
}

/* Discount Badge */
.product-discount-badge {
    display: inline-block;
    background: #28a745;
    color: #fff;
    font-size: 13px;
    font-weight: 700;
    padding: 4px 10px;
    border-radius: 4px;
    margin-left: 8px;
    cursor: pointer;
}

/* Form Heading */
.product-form-heading {
    display: block;
    font-size: 20px;
    font-weight: 700;
    color: #333;
    margin: -20px 0px;
}

/* Product Header Wrapper */
.product-header-wrapper {
    display: flex;
    align-items: center;
    gap: 10px;
    flex-wrap: wrap;

}

/* Product Custom Tagline */
.product-custom-tagline {
    display: inline-block;
    background-color: #FFDF86;
    /* Gold Background */
    color: #8B4400;
    font-size: 13px;
    font-weight: 500;
    padding: 6px 8px;
    border-radius: 4px;
    margin-bottom: 0;
    line-height: normal;
    text-transform: uppercase;
    position: relative;
    overflow: hidden;
}

.product-custom-tagline:before {
    animation: shiny 2s ease-in-out infinite;
    content: "";
    display: inline-block;
    position: absolute;
    top: 50%;
    left: 50%;
    width: 200px;
    height: 30px;
    border-radius: 50%;
    background-color: rgba(255, 255, 255, 0.8);
    pointer-events: none;
    z-index: 1;
}

.product_title.entry-title {
    line-height: 1.2em;
    margin-bottom: 0;
    font-size: 1.75rem;
    /* Margin handled by flex gap */
}

/* ============================================
   QuickFORM Compatibility Fixes
   ============================================ */
/* Ensure proper flexbox layout isn't disrupted by QuickFORM styles */
.single-product-wrapper .product-content {
    display: flex !important;
    flex-wrap: wrap !important;
    gap: 24px !important;
    align-items: start !important;
    clear: none !important;
    float: none !important;
}

.single-product-wrapper .product-images,
.single-product-wrapper .product-summary {
    clear: none !important;
    float: none !important;
    box-sizing: border-box !important;
}

/* Ensure product gallery maintains proper aspect ratio */
.single-product-wrapper .product-gallery {
    position: relative !important;
    width: 100% !important;
    margin-bottom: 15px !important;
    aspect-ratio: 1 / 1 !important;
    overflow: hidden !important;
    border-radius: 4px !important;
    background: #f8f8f8 !important;
}

/* Support for browsers without aspect-ratio */
@supports not (aspect-ratio: 1 / 1) {
    .single-product-wrapper .product-gallery {
        height: 0 !important;
        padding-bottom: 100% !important;
    }
}

.single-product-wrapper .gallery-slide {
    display: none !important;
    width: 100% !important;
    height: 100% !important;
    position: absolute !important;
    top: 0 !important;
    left: 0 !important;
}

.single-product-wrapper .gallery-slide.active {
    display: block !important;
}

.single-product-wrapper .gallery-slide img,
.single-product-wrapper .gallery-slide .product-gallery-image {
    width: 100% !important;
    height: 100% !important;
    object-fit: cover !important;
    object-position: center !important;
    display: block !important;
    border-radius: 4px !important;
    position: absolute !important;
    top: 0 !important;
    left: 0 !important;
    transition: transform 0.5s ease;
}

.gallery-zoom-trigger {
    position: absolute;
    top: 15px;
    right: 15px;
    width: 44px;
    height: 44px;
    background: #fff;
    border-radius: 50%;
    display: flex;
    align-items: center;
    justify-content: center;
    box-shadow: 0 4px 12px rgba(0, 0, 0, 0.1);
    z-index: 10;
    cursor: pointer;
    transition: all 0.2s ease;
}

.gallery-zoom-trigger:hover {
    transform: scale(1.1);
    background: #f8f8f8;
}

.gallery-zoom-trigger svg {
    width: 20px;
    height: 20px;
    fill: #333;
}

.product-gallery:hover .gallery-slide.active img {
    transform: scale(2.25);
}

/* Mobile responsiveness */
@media (max-width: 768px) {
    .single-product-wrapper .product-content {
        flex-direction: column !important;
    }

    .single-product-wrapper .product-images,
    .single-product-wrapper .product-summary {
        width: 100% !important;
        flex: 0 0 100% !important;
    }

    .single-product-wrapper .product-images {
        position: static !important;
    }

    .product-summary .price ins {
        font-size: 32px;
    }

    .woocommerce-Price-amount {
        font-size: 20px;
    }
}

/* ============================================
   WooCommerce Thank You Page (Order Received)
   ============================================ */
/* Gallery Lightbox */
.gallery-lightbox {
    position: fixed;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    z-index: 10000;
    display: flex;
    align-items: center;
    justify-content: center;
}

.lightbox-overlay {
    position: absolute;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    background: rgba(0, 0, 0, 0.9);
    cursor: zoom-out;
}

.lightbox-content {
    position: relative;
    z-index: 10001;
    max-width: 90%;
    max-height: 90%;
}

.lightbox-content img {
    max-width: 100%;
    max-height: 90vh;
    border-radius: 4px;
    box-shadow: 0 10px 40px rgba(0, 0, 0, 0.5);
}

.lightbox-close {
    position: absolute;
    top: -40px;
    right: -40px;
    background: none;
    border: none;
    color: #fff;
    font-size: 40px;
    cursor: pointer;
    line-height: 1;
}

@media (max-width: 768px) {
    .lightbox-close {
        top: 10px;
        right: 10px;
        background: rgba(0, 0, 0, 0.5);
        width: 40px;
        height: 40px;
        border-radius: 50%;
        display: flex;
        align-items: center;
        justify-content: center;
        font-size: 24px;
    }
}

.woocommerce-order {
    display: flex;
    flex-direction: column;
    gap: 4px;
}

.woocommerce-order>* {
    margin-bottom: 4px;
}

.woocommerce-order>*:last-child {
    margin-bottom: 0;
}

.woocommerce-order-overview {
    display: flex;
    flex-direction: column;
    gap: 4px;
    margin-bottom: 4px;
}

.woocommerce-order-overview li {
    margin-bottom: 4px;
}

.woocommerce-order-overview li:last-child {
    margin-bottom: 0;
}

.woocommerce-order-details {
    margin-top: 4px;
    margin-bottom: 4px;
}

.woocommerce-order-details_title {
    margin-bottom: 4px;
}

.woocommerce-order-details .shop_table {
    margin-top: 4px;
    margin-bottom: 4px;
}

.woocommerce-order-details .shop_table tbody tr {
    margin-bottom: 4px;
}

.woocommerce-order-details .shop_table tbody tr:last-child {
    margin-bottom: 0;
}

.woocommerce-order-details .shop_table td,
.woocommerce-order-details .shop_table th {
    padding: 4px;
}

.woocommerce-order-details .shop_table td:first-child,
.woocommerce-order-details .shop_table th:first-child {
    padding-right: 4px;
}

.woocommerce-order-details .shop_table td:last-child,
.woocommerce-order-details .shop_table th:last-child {
    padding-left: 4px;
}

.woocommerce-order-downloads {
    margin-top: 4px;
    margin-bottom: 4px;
}

.woocommerce-order-downloads_title {
    margin-bottom: 4px;
}

.woocommerce-order-downloads ul {
    display: flex;
    flex-direction: column;
    gap: 4px;
    margin-top: 4px;
}

.woocommerce-order-downloads li {
    margin-bottom: 4px;
}

.woocommerce-order-downloads li:last-child {
    margin-bottom: 0;
}

.woocommerce-customer-details {
    margin-top: 4px;
    margin-bottom: 4px;
}

.woocommerce-customer-details_title {
    margin-bottom: 4px;
}

.woocommerce-customer-details address {
    margin-top: 4px;
    margin-bottom: 4px;
}

.woocommerce-thankyou-order-received {
    margin-bottom: 4px;
}

.woocommerce-thankyou-order-received+* {
    margin-top: 4px;
}

.woocommerce-order-details__title {
    margin-bottom: 12px;
}

.acc-checkout-box {
    border: none !important;
}

.product-card .woocommerce-Price-amount.amount {
    font-size: 14px;
}

.product-category {
    font-size: 12px;
    color: #999;
    display: block;
    margin: -8px 0px;
}

/* ============================================
   WooCommerce Cart Page
   ============================================ */
.qt-cart-wrapper {
    max-width: 1200px;
    margin: 40px auto;
    padding: 0 20px;
    display: flex;
    gap: 24px;
    flex-wrap: wrap;
}

.qt-cart-form {
    flex: 1 1 65%;
    min-width: 300px;
}

.qt-cart-items {
    display: flex;
    flex-direction: column;
    gap: 16px;
}

.qt-cart-item {
    display: grid;
    grid-template-columns: 80px 1fr auto auto auto;
    gap: 16px;
    align-items: center;
    padding: 16px;
    border: 1px solid #e5e5e5;
    border-radius: 8px;
    background: #fff;
}

.qt-cart-item-image {
    width: 80px;
    height: 80px;
    border-radius: 4px;
    overflow: hidden;
    background: #f8f8f8;
}

.qt-cart-item-image img {
    width: 100%;
    height: 100%;
    object-fit: cover;
}

.qt-cart-item-details {
    display: flex;
    flex-direction: column;
    gap: 4px;
}

.qt-cart-item-name {
    font-weight: 700;
    font-size: 16px;
    color: #333;
}

.qt-cart-item-name a {
    color: #333;
    transition: color 0.2s;
}

.qt-cart-item-name a:hover {
    color: var(--primary-color);
}

.qt-cart-item-price {
    font-size: 14px;
    color: #666;
}

.qt-cart-item-quantity .quantity {
    display: flex;
    align-items: center;
    border: 1px solid #e5e5e5;
    border-radius: 4px;
    overflow: hidden;
}

.qt-cart-item-quantity input[type="number"] {
    width: 60px;
    padding: 8px;
    border: none;
    text-align: center;
    font-weight: 700;
}

.qt-cart-item-subtotal {
    font-weight: 700;
    font-size: 18px;
    color: #333;
}

.qt-cart-item-remove {
    display: flex;
    align-items: center;
    justify-content: center;
}

.qt-remove-item {
    width: 32px;
    height: 32px;
    display: flex;
    align-items: center;
    justify-content: center;
    border-radius: 4px;
    background: #f8f8f8;
    color: #666;
    font-size: 24px;
    line-height: 1;
    transition: all 0.2s;
}

.qt-remove-item:hover {
    background: #ff4444;
    color: #fff;
}

.qt-cart-actions {
    margin-top: 16px;
    display: flex;
    gap: 12px;
}

.qt-update-cart {
    padding: 12px 24px;
    background: var(--primary-color);
    color: #fff;
    border: none;
    border-radius: 4px;
    font-weight: 700;
    cursor: pointer;
    transition: background 0.2s;
}

.qt-update-cart:hover {
    background: var(--primary-color-hover);
}

.qt-update-cart:disabled {
    opacity: 0.5;
    cursor: not-allowed;
}

.qt-cart-collaterals {
    flex: 1 1 30%;
    min-width: 300px;
}

.qt-cart-totals {
    background: #f8f8f8;
    border: 1px solid #e5e5e5;
    border-radius: 8px;
    padding: 20px;
    position: sticky;
    top: 20px;
}

.qt-cart-totals h2 {
    font-size: 24px;
    margin-bottom: 16px;
    color: #333;
}

.qt-cart-totals-inner {
    display: flex;
    flex-direction: column;
    gap: 12px;
    margin-bottom: 20px;
    padding-bottom: 20px;
    border-bottom: 2px solid #e5e5e5;
}

.qt-cart-subtotal,
.qt-cart-discount,
.qt-cart-shipping,
.qt-cart-fee,
.qt-cart-tax,
.qt-cart-total {
    display: flex;
    justify-content: space-between;
    align-items: center;
    gap: 12px;
}

.qt-cart-total {
    font-size: 20px;
    font-weight: 700;
    padding-top: 12px;
    border-top: 2px solid #e5e5e5;
}

.qt-proceed-checkout .checkout-button {
    display: block;
    width: 100%;
    padding: 16px;
    background: var(--primary-color);
    color: #fff;
    font-size: 16px;
    font-weight: 700;
    border: none;
    border-radius: 4px;
    text-align: center;
    transition: background 0.2s;
    cursor: pointer;
}

.qt-proceed-checkout .checkout-button:hover {
    background: var(--primary-color-hover);
}

/* Empty Cart */
.qt-empty-cart {
    max-width: 600px;
    margin: 80px auto;
    padding: 60px 20px;
    text-align: center;
}

.qt-empty-cart-icon {
    width: 80px;
    height: 80px;
    margin: 0 auto 24px;
    color: #ccc;
}

.qt-empty-cart-message {
    font-size: 20px;
    color: #666;
    margin-bottom: 32px;
}

.qt-return-shop {
    display: inline-block;
    padding: 16px 40px;
    background: var(--primary-color);
    color: #fff;
    font-size: 16px;
    font-weight: 700;
    border-radius: 4px;
    transition: background 0.2s;
}

.qt-return-shop:hover {
    background: var(--primary-color-hover);
}

/* Cart Responsive */
@media (max-width: 768px) {
    .qt-cart-wrapper {
        flex-direction: column;
    }

    .qt-cart-form,
    .qt-cart-collaterals {
        flex: 1 1 100%;
    }

    .qt-cart-item {
        grid-template-columns: 60px 1fr;
        gap: 12px;
    }

    .qt-cart-item-image {
        width: 60px;
        height: 60px;
    }

    .qt-cart-item-quantity {
        grid-column: 1 / -1;
    }

    .qt-cart-item-subtotal {
        grid-column: 1 / -1;
        text-align: right;
    }

    .qt-cart-item-remove {
        position: absolute;
        top: 12px;
        right: 12px;
    }

    .qt-cart-item {
        position: relative;
    }

    .qt-cart-totals {
        position: static;
    }
}

/* ============================================
   WooCommerce Checkout Page
   ============================================ */
.qt-checkout-form {
    max-width: 1200px;
    margin: 40px auto;
    padding: 0 20px;
}

.qt-checkout-wrapper {
    display: flex;
    gap: 24px;
    flex-wrap: wrap;
}

.qt-checkout-billing {
    flex: 1 1 55%;
    min-width: 300px;
}

.qt-checkout-billing h3,
.qt-checkout-review h3 {
    font-size: 24px;
    margin-bottom: 20px;
    color: #333;
}

.qt-checkout-billing .woocommerce-billing-fields,
.qt-checkout-shipping {
    display: flex;
    flex-direction: column;
    gap: 16px;
}

.qt-checkout-billing .form-row {
    margin-bottom: 0;
}

.qt-checkout-billing input[type="text"],
.qt-checkout-billing input[type="email"],
.qt-checkout-billing input[type="tel"],
.qt-checkout-billing select,
.qt-checkout-billing textarea {
    width: 100%;
    padding: 12px 16px;
    border: 1px solid #e5e5e5;
    border-radius: 4px;
    font-size: 16px;
    transition: border-color 0.2s;
}

.qt-checkout-billing input:focus,
.qt-checkout-billing select:focus,
.qt-checkout-billing textarea:focus {
    border-color: var(--primary-color);
    outline: none;
}

.qt-checkout-billing label {
    display: block;
    margin-bottom: 8px;
    font-weight: 700;
    color: #333;
}

.qt-checkout-billing .required {
    color: #ff4444;
}

.qt-ship-different {
    margin: 20px 0;
    padding: 16px;
    background: #f8f8f8;
    border-radius: 4px;
}

.qt-ship-different label {
    display: flex;
    align-items: center;
    gap: 8px;
    cursor: pointer;
    font-weight: 700;
}

.qt-ship-different input[type="checkbox"] {
    width: 20px;
    height: 20px;
    cursor: pointer;
}

.qt-order-notes {
    margin-top: 20px;
}

.qt-checkout-review {
    flex: 1 1 40%;
    min-width: 300px;
}

.qt-order-review {
    background: #f8f8f8;
    border: 1px solid #e5e5e5;
    border-radius: 8px;
    padding: 20px;
    position: sticky;
    top: 20px;
}

.qt-order-review table {
    width: 100%;
    border-collapse: collapse;
    margin-bottom: 20px;
}

.qt-order-review th,
.qt-order-review td {
    padding: 12px 0;
    text-align: left;
    border-bottom: 1px solid #e5e5e5;
}

.qt-order-review th {
    font-weight: 700;
    color: #333;
}

.qt-order-review .product-name {
    font-weight: 700;
}

.qt-order-review .product-total {
    text-align: right;
    font-weight: 700;
}

.qt-order-review tfoot th {
    font-weight: 700;
}

.qt-order-review tfoot .order-total th,
.qt-order-review tfoot .order-total td {
    font-size: 20px;
    font-weight: 700;
    padding-top: 16px;
    border-top: 2px solid #e5e5e5;
}

#place_order {
    width: 100%;
    padding: 16px;
    background: var(--primary-color);
    color: #fff;
    font-size: 16px;
    font-weight: 700;
    border: none;
    border-radius: 4px;
    cursor: pointer;
    transition: background 0.2s;
    margin-top: 16px;
}

#place_order:hover {
    background: var(--primary-color-hover);
}

/* Payment Methods */
.woocommerce-checkout-payment {
    margin-top: 20px;
}

.wc_payment_methods {
    list-style: none;
    padding: 0;
    margin: 0 0 20px 0;
}

.wc_payment_method {
    margin-bottom: 12px;
}

.wc_payment_method label {
    display: flex;
    align-items: center;
    gap: 12px;
    padding: 16px;
    background: #fff;
    border: 2px solid #e5e5e5;
    border-radius: 4px;
    cursor: pointer;
    transition: border-color 0.2s;
}

.wc_payment_method input[type="radio"] {
    width: 20px;
    height: 20px;
    cursor: pointer;
}

.wc_payment_method label:hover,
.wc_payment_method input[type="radio"]:checked+label {
    border-color: #17a2b8;
}

.payment_box {
    padding: 16px;
    background: #f8f8f8;
    border-radius: 4px;
    margin-top: 12px;
}

/* ============================================
   Thank You Page
   ============================================ */
.qt-thankyou-wrapper {
    max-width: 800px;
    margin: 40px auto;
    padding: 0 20px;
}

.qt-thankyou-success,
.qt-thankyou-failed {
    text-align: center;
    padding: 40px 20px;
}

.qt-thankyou-icon {
    width: 80px;
    height: 80px;
    margin: 0 auto 24px;
}

.qt-thankyou-success .qt-thankyou-icon {
    color: #28a745;
}

.qt-thankyou-failed .qt-thankyou-icon {
    color: #ff4444;
}

.qt-thankyou-success h1,
.qt-thankyou-failed h1 {
    font-size: 32px;
    margin-bottom: 16px;
    color: #333;
}

.qt-thankyou-message {
    font-size: 18px;
    color: #666;
    margin-bottom: 32px;
}

.qt-order-overview {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(200px, 1fr));
    gap: 16px;
    margin: 32px 0;
    padding: 24px;
    background: #f8f8f8;
    border-radius: 8px;
}

.qt-order-overview-item {
    display: flex;
    flex-direction: column;
    gap: 4px;
}

.qt-order-label {
    font-size: 14px;
    color: #666;
}

.qt-order-overview-item strong {
    font-size: 16px;
    color: #333;
}

.qt-order-details {
    margin-top: 32px;
}

.qt-order-details h2 {
    font-size: 24px;
    margin-bottom: 20px;
    color: #333;
}

.qt-pay-button {
    display: inline-block;
    padding: 16px 40px;
    background: var(--primary-color);
    color: #fff;
    font-size: 16px;
    font-weight: 700;
    border-radius: 4px;
    transition: background 0.2s;
    margin-top: 20px;
}

.qt-pay-button:hover {
    background: var(--primary-color-hover);
}

.qt-order-actions {
    text-align: center;
    margin-top: 32px;
}

/* Checkout Responsive */
@media (max-width: 768px) {
    .qt-checkout-wrapper {
        flex-direction: column;
    }

    .qt-checkout-billing,
    .qt-checkout-review {
        flex: 1 1 100%;
    }

    .qt-order-review {
        position: static;
    }

    .qt-order-overview {
        grid-template-columns: 1fr;
    }

    .qt-thankyou-success h1,
    .qt-thankyou-failed h1 {
        font-size: 24px;
    }
}

/* ============================================
   Mini Cart Widget
   ============================================ */
.qt-mini-cart-items {
    max-height: 400px;
    overflow-y: auto;
}

.qt-mini-cart-item {
    display: flex;
    gap: 12px;
    padding: 12px;
    border-bottom: 1px solid #e5e5e5;
    position: relative;
}

.qt-mini-cart-item:last-child {
    border-bottom: none;
}

.qt-mini-cart-item-image {
    width: 60px;
    height: 60px;
    flex-shrink: 0;
    border-radius: 4px;
    overflow: hidden;
    background: #f8f8f8;
}

.qt-mini-cart-item-image img {
    width: 100%;
    height: 100%;
    object-fit: cover;
}

.qt-mini-cart-item-details {
    flex: 1;
    display: flex;
    flex-direction: column;
    gap: 4px;
}

.qt-mini-cart-item-name {
    font-weight: 700;
    font-size: 14px;
    line-height: 1.3;
}

.qt-mini-cart-item-name a {
    color: #333;
    transition: color 0.2s;
}

.qt-mini-cart-item-name a:hover {
    color: var(--primary-color);
}

.qt-mini-cart-item-quantity {
    font-size: 13px;
    color: #666;
}

.qt-mini-cart-remove {
    position: absolute;
    top: 8px;
    right: 8px;
    width: 24px;
    height: 24px;
    display: flex;
    align-items: center;
    justify-content: center;
    border-radius: 4px;
    background: #f8f8f8;
    color: #666;
    font-size: 20px;
    line-height: 1;
    transition: all 0.2s;
}

.qt-mini-cart-remove:hover {
    background: #ff4444;
    color: #fff;
}

.qt-mini-cart-footer {
    padding: 16px;
    border-top: 2px solid #e5e5e5;
}

.qt-mini-cart-total {
    display: flex;
    justify-content: space-between;
    align-items: center;
    margin-bottom: 16px;
    font-size: 16px;
}

.qt-mini-cart-total strong {
    font-size: 18px;
    color: #333;
}

.qt-mini-cart-buttons {
    display: flex;
    flex-direction: column;
    gap: 8px;
    font-size: 14px;
}

.qt-mini-cart-button {
    display: block;
    padding: 12px;
    text-align: center;
    font-weight: 700;
    border-radius: 4px;
    transition: all 0.2s;
}

.qt-view-cart {
    background: #f8f8f8;
    color: #333;
    border: 1px solid #e5e5e5;
}

.qt-view-cart:hover {
    background: #e5e5e5;
}

.qt-checkout {
    background: var(--primary-color);
    color: #fff;
}

.qt-checkout:hover {
    background: var(--primary-color-hover);
}

.qt-mini-cart-empty {
    padding: 40px 20px;
    text-align: center;
    color: #666;
}

/* Base shiny animation for sweep effect */
@keyframes shiny {
    0% {
        transform: translate(-150%, -50%) rotate(25deg);
    }

    100% {
        transform: translate(150%, -50%) rotate(25deg);
    }
}

.widget_shopping_cart_content {
    height: inherit;
    display: flex;
    flex-direction: column;
    justify-content: space-between;
}

/* Side cart price styling */
.qt-mini-cart-item-quantity .woocommerce-Price-amount {
    font-size: 16px !important;
}

/* Product category link on single product page */
.product-summary .product-category {
    display: inline-block;
    font-size: 12px;
    color: #999;
    text-transform: lowercase;
    margin-bottom: 8px;
    transition: color 0.2s ease;
    text-decoration: none;
}

.product-summary .product-category:hover {
    color: var(--primary-color);
    text-decoration: underline;
}

/* Hide page title on thank you page */
.woocommerce-order-received .entry-header,
.woocommerce-order-received .page-title,
.woocommerce-order-received h1.entry-title {
    display: none;
}


/* Hide payment instructions in order details */
.woocommerce-order-details .woocommerce-order-details__title+p,
.woocommerce-order-received .woocommerce-order-details p:first-of-type {
    display: none;
}

/* Center confirmation image on thank you page */
.qt-confirmation-image {
    display: block;
    margin: 20px auto 0;
}