 /* Reset and Base Styles */
        * {
            margin: 0;
            padding: 0;
            box-sizing: border-box;
            font-family: 'Segoe UI', Tahoma, Geneva, Verdana, sans-serif;
        }
        
        :root {
            --primary: #8B4513;
            --primary-dark: #6b330a;
            --secondary: #A0522D;
            --light: #f9f9f9;
            --dark: #2c2c2c;
            --gray: #666;
            --light-gray: #f0f0f0;
        }
        
        body {
            color: #333;
            line-height: 1.6;
            background-color: var(--light);
        }
        
        a {
            text-decoration: none;
            color: inherit;
            transition: color 0.3s;
        }
        
        ul {
            list-style: none;
        }
        
        .container {
            max-width: 1200px;
            margin: 0 auto;
            padding: 0 20px;
        }
        
        .btn {
            display: inline-block;
            background-color: var(--primary);
            color: white;
            padding: 12px 25px;
            border: none;
            border-radius: 4px;
            cursor: pointer;
            font-weight: bold;
            transition: background-color 0.3s;
        }
        
        .btn:hover {
            background-color: var(--primary-dark);
        }
        
        section {
            padding: 60px 0;
        }
        
        h2 {
            font-size: 28px;
            margin-bottom: 30px;
            position: relative;
            padding-bottom: 10px;
        }
        
        h2:after {
            content: '';
            position: absolute;
            bottom: 0;
            left: 0;
            width: 60px;
            height: 3px;
            background-color: var(--primary);
        }
        
        /* Header Styles */
        header {
            background-color: #fff;
            box-shadow: 0 2px 10px rgba(0,0,0,0.1);
            position: sticky;
            top: 0;
            z-index: 100;
        }
        
        .header-content {
            display: flex;
            justify-content: space-between;
            align-items: center;
            padding: 15px 0;
        }
        
        .logo {
            font-size: 32px;
            font-weight: bold;
            color: #333;
        }
        
        /* Main navigation */
        nav {
            position: relative;
        }
        nav ul {
            display: flex;
            gap: 18px;
            align-items: center;
            flex-wrap: nowrap;
        }

        /* allow the nav to scroll horizontally if there are many items */
    nav ul { overflow-x: auto; }
        nav ul::-webkit-scrollbar{ height:6px }
        nav ul::-webkit-scrollbar-thumb{ background: rgba(0,0,0,0.08); border-radius:4px }
        
        nav a {
            font-weight: 500;
            position: relative;
        }
        
        nav a:hover {
            color: var(--primary);
        }
        
        nav a.active {
            color: var(--primary);
            font-weight: bold;
        }
        
        nav a.active:after {
            content: '';
            position: absolute;
            bottom: -5px;
            left: 0;
            width: 100%;
            height: 2px;
            background-color: var(--primary);
        }

        /* Mobile menu toggle (pure CSS): insert a hidden checkbox-based toggle target */
        .nav-toggle {
            display: none;
        }
        .nav-toggle-label{
            display:none;
            cursor:pointer;
            font-size:20px;
            padding:6px 8px;
        }

        /* Mobile styles: collapse nav into a column under the header */
        @media (max-width: 768px) {
            .header-content{ align-items: center; gap:12px }
            .logo{ font-size:26px }
            /* show toggle */
            .nav-toggle-label{ display:inline-block }
            nav ul{
                position: absolute;
                right: 0;
                top: 100%;
                background: white;
                box-shadow: 0 6px 18px rgba(0,0,0,0.08);
                flex-direction: column;
                gap: 0;
                width: 240px;
                padding: 8px 12px;
                border-radius: 6px;
                transform-origin: top right;
                display: none;
            }
            nav ul li{ padding: 8px 6px }
            /* when checkbox is checked, show menu */
            .nav-toggle:checked + .nav-toggle-label + nav ul{
                display: flex;
            }
            /* ensure icons and right-most items align nicely */
            nav ul li a{ display:flex; align-items:center; gap:8px }
        }

        /* For very small screens, reduce gaps */
        @media (max-width: 480px){
            nav ul{ width: 200px }
            .logo{ font-size:22px }
        }

        /* Wallet tooltip shown when hovering the wallet nav item */
        .wallet-tooltip{
            position: absolute;
            display: block;
            background: #fff;
            color: #111;
            padding: 8px 10px;
            border-radius: 8px;
            box-shadow: 0 6px 20px rgba(0,0,0,0.12);
            font-size: 14px;
            z-index: 2500;
            pointer-events: none; /* don't capture mouse */
            transition: opacity 150ms ease;
            opacity: 0;
        }
        .wallet-tooltip.visible{ opacity: 1 }
        .wallet-tooltip:after{
            content: '';
            position: absolute;
            width: 10px;
            height: 10px;
            background: #fff;
            transform: rotate(45deg);
            left: 50%;
            margin-left: -5px;
            bottom: -5px;
            box-shadow: 0 6px 18px rgba(0,0,0,0.06);
        }

        /* Cart badge (small number over cart icon) */
        .cart-count-badge{
            display:inline-block;
            min-width:18px;height:18px;padding:0 6px;border-radius:12px;font-size:12px;line-height:18px;text-align:center;background:var(--primary);color:#fff;margin-left:6px;vertical-align:super
        }

        /* small toast notification */
        .cc-toast{ position: fixed; right: 20px; bottom: 24px; background: rgba(0,0,0,0.85); color:#fff; padding:10px 14px; border-radius:8px; opacity:0; transform: translateY(6px); transition: all 220ms ease; z-index:9999 }
        .cc-toast.visible{ opacity:1; transform: translateY(0) }
        
        /* Hero Section */
        .hero {
            background: linear-gradient(rgba(0,0,0,0.3), rgba(0,0,0,0.3)), url('https://images.unsplash.com/photo-1722091682618-e39655b25789?q=80&w=1045&auto=format&fit=crop&ixlib=rb-4.1.0&ixid=M3wxMjA3fDB8MHxwaG90by1wYWdlfHx8fGVufDB8fHx8fA%3D%3D');
            background-size: cover;
            background-position: center;
            color: white;
            text-align: center;
            padding: 100px 0;
        }
        
        .hero h1 {
            font-size: 48px;
            margin-bottom: 20px;
            text-shadow: 2px 2px 4px rgba(0,0,0,0.5);
        }
        
        .hero p {
            font-size: 20px;
            margin-bottom: 30px;
            max-width: 700px;
            margin-left: auto;
            margin-right: auto;
        }
        
        /* Artworks Grid */
        .artworks-grid {
            display: grid;
            grid-template-columns: repeat(auto-fill, minmax(280px, 1fr));
            gap: 30px;
            margin-top: 30px;
        }
        
        .artwork-card {
            background: #fff;
            border-radius: 8px;
            overflow: hidden;
            box-shadow: 0 5px 15px rgba(0,0,0,0.1);
            transition: transform 0.3s ease, box-shadow 0.3s ease;
        }
        
        .artwork-card:hover {
            transform: translateY(-10px);
            box-shadow: 0 15px 30px rgba(0,0,0,0.15);
        }
        
        .artwork-image-1{
            height: 220px;
            background: linear-gradient(rgba(0,0,0,0.3), rgba(0,0,0,0.3)), url('https://images.unsplash.com/photo-1531913764164-f85c52e6e654?q=80&w=1034&auto=format&fit=crop&ixlib=rb-4.1.0&ixid=M3wxMjA3fDB8MHxwaG90by1wYWdlfHx8fGVufDB8fHx8fA%3D%3D');
            display: flex;
            align-items: center;
            justify-content: center;
            color: #888;
            font-size: 16px;
            background-size: cover;
            background-position: center;
        }
        
        
        .artwork-image-2 {
            height: 220px;
            background: linear-gradient(rgba(0,0,0,0.3), rgba(0,0,0,0.3)), url('https://images.unsplash.com/photo-1579541591970-e5780dc6b31f?q=80&w=1343&auto=format&fit=crop&ixlib=rb-4.1.0&ixid=M3wxMjA3fDB8MHxwaG90by1wYWdlfHx8fGVufDB8fHx8fA%3D%3D');
            display: flex;
            align-items: center;
            justify-content: center;
            color: #888;
            font-size: 16px;
            background-size: cover;
            background-position: center;
        }
            .artwork-image-3{
            height: 220px;
            background: linear-gradient(rgba(0,0,0,0.3), rgba(0,0,0,0.3)), url('https://images.unsplash.com/photo-1628716779718-b68b4b1968fb?q=80&w=1091&auto=format&fit=crop&ixlib=rb-4.1.0&ixid=M3wxMjA3fDB8MHxwaG90by1wYWdlfHx8fGVufDB8fHx8fA%3D%3D');
            display: flex;
            align-items: center;
            justify-content: center;
            color: #888;
            font-size: 16px;
            background-size: cover;
            background-position: center;
        }

        .artwork-image-4 {
            height: 220px;
            background: linear-gradient(rgba(0,0,0,0.3), rgba(0,0,0,0.3)), url('https://images.unsplash.com/photo-1649598788739-9d33194d724f?q=80&w=1168&auto=format&fit=crop&ixlib=rb-4.1.0&ixid=M3wxMjA3fDB8MHxwaG90by1wYWdlfHx8fGVufDB8fHx8fA%3D%3D');
            display: flex;
            align-items: center;
            justify-content: center;
            color: #888;
            font-size: 16px;
            background-size: cover;
            background-position: center;
        }
        .artwork-image-5 {
            height: 220px;
            background: linear-gradient(rgba(0,0,0,0.3), rgba(0,0,0,0.3)), url('https://plus.unsplash.com/premium_vector-1723545005389-9ab242aba36c?q=80&w=2148&auto=format&fit=crop&ixlib=rb-4.1.0&ixid=M3wxMjA3fDB8MHxwaG90by1wYWdlfHx8fGVufDB8fHx8fA%3D%3D');
            display: flex;
            align-items: center;
            justify-content: center;
            color: #888;
            font-size: 16px;
            background-size: cover;
            background-position: center;
        }

        .artwork-image-6 {
            height: 220px;
            background: linear-gradient(rgba(0,0,0,0.3), rgba(0,0,0,0.3)), url('https://images.unsplash.com/photo-1649598788739-9d33194d724f?q=80&w=1168&auto=format&fit=crop&ixlib=rb-4.1.0&ixid=M3wxMjA3fDB8MHxwaG90by1wYWdlfHx8fGVufDB8fHx8fA%3D%3D');
            display: flex;
            align-items: center;
            justify-content: center;
            color: #888;
            font-size: 16px;
            background-size: cover;
            background-position: center;
        }

        .artwork-details {
            padding: 20px;
        }
        
        .artwork-title {
            font-weight: bold;
            font-size: 18px;
            margin-bottom: 5px;
        }
        
        .artwork-artist {
            color: var(--gray);
            margin-bottom: 10px;
            font-style: italic;
        }
        
        .artwork-medium {
            color: #888;
            font-size: 14px;
            margin-bottom: 5px;
        }
        
        .artwork-dimensions {
            color: #888;
            font-size: 14px;
            margin-bottom: 10px;
        }
        
        .artwork-price {
            font-weight: bold;
            color: var(--primary);
            font-size: 18px;
        }

        /* Recommended artwork image utility classes (used by Product1.html recommendations) */
        .artwork-image { height: 220px; background-size: cover; background-position: center; }
        .rec-img-1 { background-image: url('https://images.unsplash.com/photo-1531913764164-f85c52e6e654?q=80&w=1034&auto=format&fit=crop'); }
        .rec-img-2 { background-image: url('https://images.unsplash.com/photo-1579541591970-e5780dc6b31f?q=80&w=1343&auto=format&fit=crop'); }
        .rec-img-3 { background-image: url('https://images.unsplash.com/photo-1628716779718-b68b4b1968fb?q=80&w=1091&auto=format&fit=crop'); }
        .rec-img-4 { background-image: url('https://images.unsplash.com/photo-1649598788739-9d33194d724f?q=80&w=1168&auto=format&fit=crop'); }
        .rec-img-5 { background-image: url('https://images.unsplash.com/photo-1519681393784-d120267933ba?q=80&w=1170&auto=format&fit=crop'); }
        .rec-img-6 { background-image: url('https://images.unsplash.com/photo-1504198453319-5ce911bafcde?q=80&w=1170&auto=format&fit=crop'); }
        .rec-img-7 { background-image: url('https://images.unsplash.com/photo-1549880338-65ddcdfd017b?q=80&w=1170&auto=format&fit=crop'); }
        .rec-img-8 { background-image: url('https://images.unsplash.com/photo-1526318472351-c75fcf0704b9?q=80&w=1170&auto=format&fit=crop'); }
        .rec-img-9 { background-image: url('https://images.unsplash.com/photo-1500530855697-b586d89ba3ee?q=80&w=1170&auto=format&fit=crop'); }
        .rec-img-10 { background-image: url('https://images.unsplash.com/photo-1504198453319-5ce911bafcde?q=80&w=1170&auto=format&fit=crop'); }
        .rec-img-11 { background-image: url('https://images.unsplash.com/photo-1549880338-65ddcdfd017b?q=80&w=1170&auto=format&fit=crop'); }
        .rec-img-12 { background-image: url('https://images.unsplash.com/photo-1549880338-65ddcdfd017b?q=80&w=1170&auto=format&fit=crop'); }
        
        /* Category Grid */
        .category-grid {
            display: grid;
            grid-template-columns: repeat(auto-fill, minmax(180px, 1fr));
            gap: 20px;
            margin-top: 30px;
        }
        
        .category-item {
            background: #fff;
            padding: 25px 15px;
            text-align: center;
            border-radius: 8px;
            transition: all 0.3s ease;
            box-shadow: 0 3px 10px rgba(0,0,0,0.08);
            border: 1px solid #eee;
        }
        
        .category-item:hover {
            background: var(--primary);
            color: white;
            transform: translateY(-5px);
            box-shadow: 0 10px 20px rgba(139, 69, 19, 0.2);
        }
        
        /* Discount Banner */
        .discount-banner {
            background: linear-gradient(to right, var(--primary), var(--secondary));
            color: white;
            padding: 50px 30px;
            text-align: center;
            border-radius: 10px;
            margin: 60px 0;
        }
        
        .discount-banner h2 {
            color: white;
            border: none;
            font-size: 36px;
        }
        
        .discount-banner h2:after {
            display: none;
        }
        
        .discount-banner p {
            font-size: 18px;
            margin: 15px 0 25px;
        }
        
        .discount-percentages {
            display: flex;
            justify-content: center;
            gap: 15px;
            margin: 30px 0;
            flex-wrap: wrap;
        }
        
        .percentage {
            background: rgba(255,255,255,0.2);
            padding: 12px 20px;
            border-radius: 6px;
            font-weight: bold;
            font-size: 18px;
            min-width: 70px;
        }
        
        /* Artists Section */
        .artists-section {
            background-color: #f5f5f5;
        }
        
        .artists-tabs {
            display: flex;
            gap: 10px;
            margin-bottom: 30px;
            flex-wrap: wrap;
        }
        
        .tab-btn {
            padding: 10px 20px;
            background: #fff;
            border: 1px solid #ddd;
            border-radius: 30px;
            cursor: pointer;
            transition: all 0.3s;
        }
        
        .tab-btn.active {
            background: var(--primary);
            color: white;
            border-color: var(--primary);
        }
        
        .artists-grid {
            display: grid;
            grid-template-columns: repeat(auto-fill, minmax(220px, 1fr));
            gap: 30px;
        }
        
        .artist-card {
            background: #fff;
            text-align: center;
            padding: 25px 15px;
            border-radius: 8px;
            box-shadow: 0 5px 15px rgba(0,0,0,0.05);
            transition: transform 0.3s;
        }
        
        .artist-card:hover {
            transform: translateY(-5px);
        }
        
        .artist-avatar {
            width: 100px;
            height: 100px;
            border-radius: 50%;
            background-color: var(--light-gray);
            margin: 0 auto 15px;
            display: flex;
            align-items: center;
            justify-content: center;
            color: #888;
            font-size: 24px;
            font-weight: bold;
            background-size: cover;
            background-position: center;
        }
        
        .artist-name {
            font-weight: bold;
            margin-bottom: 5px;
            font-size: 18px;
        }
        
        .artist-location {
            color: var(--gray);
            font-size: 14px;
        }
        
        /* Footer Styles */
        footer {
            background: var(--dark);
            color: #fff;
            padding: 60px 0 20px;
        }
        
        .footer-content {
            display: grid;
            grid-template-columns: repeat(auto-fit, minmax(220px, 1fr));
            gap: 40px;
            margin-bottom: 40px;
        }
        
        .footer-section h3 {
            margin-bottom: 20px;
            font-size: 20px;
            color: #ddd;
            position: relative;
            padding-bottom: 10px;
        }
        
        .footer-section h3:after {
            content: '';
            position: absolute;
            bottom: 0;
            left: 0;
            width: 40px;
            height: 2px;
            background-color: var(--primary);
        }
        
        .footer-section ul li {
            margin-bottom: 10px;
        }
        
        .footer-section ul li a:hover {
            color: var(--primary);
            padding-left: 5px;
        }
        
        .footer-section p {
            color: #aaa;
            line-height: 1.8;
        }
        
        .newsletter {
            display: flex;
            margin-top: 15px;
            max-width: 400px;
        }
        
        .newsletter input {
            flex: 1;
            padding: 12px 15px;
            border: none;
            border-radius: 4px 0 0 4px;
            font-size: 14px;
        }
        
        .newsletter button {
            background: var(--primary);
            color: white;
            border: none;
            padding: 0 20px;
            cursor: pointer;
            border-radius: 0 4px 4px 0;
            font-weight: bold;
            transition: background-color 0.3s;
        }
        
        .newsletter button:hover {
            background: var(--primary-dark);
        }
        
        .copyright {
            text-align: center;
            padding-top: 30px;
            border-top: 1px solid #444;
            font-size: 14px;
            color: #aaa;
        }
        
        /* Responsive Styles */
        @media (max-width: 992px) {
            .header-content {
                flex-direction: column;
                gap: 15px;
            }
            
            nav ul {
                flex-wrap: wrap;
                justify-content: center;
            }
            
            .hero h1 {
                font-size: 36px;
            }
        }
        
        @media (max-width: 768px) {
            .artworks-grid {
                grid-template-columns: repeat(auto-fill, minmax(250px, 1fr));
            }
            
            .category-grid {
                grid-template-columns: repeat(auto-fill, minmax(150px, 1fr));
            }
            
            .artists-grid {
                grid-template-columns: repeat(auto-fill, minmax(180px, 1fr));
            }
        }
        
        @media (max-width: 576px) {
            section {
                padding: 40px 0;
            }
            
            .artworks-grid {
                grid-template-columns: 1fr;
            }
            
            .category-grid {
                grid-template-columns: repeat(2, 1fr);
            }
            
            .discount-percentages {
                gap: 10px;
            }
            
            .percentage {
                padding: 10px 15px;
                min-width: 60px;
                font-size: 16px;
            }
            
            .hero {
                padding: 60px 0;
            }
            
            .hero h1 {
                font-size: 28px;
            }
            
            .hero p {
                font-size: 16px;
            }
        }

/* Wallet specific styles */
.wallet-section {
    display: flex;
}
.wallet-panel {
    display: flex;
    gap: 30px;
    background: #fff;
    padding: 20px;
    border-radius: 8px;
    box-shadow: 0 6px 18px rgba(0,0,0,0.08);
}
.wallet-left {
    min-width: 320px;
}
.wallet-card {
    padding: 18px;
    border: 1px solid #eee;
    border-radius: 8px;
}
.wallet-balance .label {
    color: var(--gray);
    font-size: 14px;
}
.wallet-balance .amount {
    font-size: 28px;
    font-weight: 700;
    color: var(--primary);
    margin-top: 6px;
}
.wallet-actions {
    margin-top: 18px;
}
.wallet-connect {
    background: linear-gradient(90deg,var(--primary),var(--secondary));
    border: none;
    color: #fff;
    padding: 10px 16px;
    border-radius: 6px;
    cursor: pointer;
    font-weight: 600;
}
.wallet-controls {
    display: flex;
    gap: 8px;
    margin-top: 12px;
}
.wallet-controls input[type="number"] {
    padding: 10px;
    border-radius: 6px;
    border: 1px solid #ddd;
    width: 140px;
}
.wallet-action {
    padding: 10px 12px;
    border-radius: 6px;
    border: none;
    background: var(--primary);
    color: #fff;
    cursor: pointer;
}
.wallet-right {
    flex: 1;
}
.tx-list {
    margin-top: 12px;
    max-height: 320px;
    overflow: auto;
    border-radius: 6px;
    border: 1px solid #eee;
    padding: 10px;
}
.tx-item {
    display: flex;
    justify-content: space-between;
    padding: 8px 10px;
    border-bottom: 1px solid #f3f3f3;
}
.tx-item:last-child { border-bottom: none; }
.tx-type-in { color: green; }
.tx-type-out { color: #b03a2e; }
.small {
    margin-top: 12px;
    padding: 8px 12px;
    background: #f3f3f3;
    border: 1px solid #e6e6e6;
    border-radius: 6px;
    cursor: pointer;
}

@media (max-width: 768px) {
    .wallet-panel { flex-direction: column; }
    .wallet-left { min-width: auto; }
}



/* product details */
#prodetails{
    display: flex;
    flex-wrap: nowrap; /* allow wrapping at smaller breakpoints explicitly */
    align-items: flex-start;
    margin-top: 20px;
    gap: 30px;
}
.button23 button{
    box-shadow: none;
    border-color: #d47d0b;
    border-radius: 6px;
    padding: 10px 10px;
    margin-bottom: 20px;
}
.single-pro-image{
    width: 40%;
    margin-right: 64px; /* increased right margin for better spacing */
    margin-left: 12px; /* small left margin to add breathing room */
    display: flex;
    flex-direction: column;
    align-items: center;
}
.single-pro-image img{
    width: 100%;
    max-height: 520px;
    object-fit: contain; /* preserve full image while fitting */
    display: block;
    border-radius: 6px;
    background: #fff;
}
.small-img-group{
    display: flex;
    justify-content: center;
    gap: 10px;
    margin-top: 12px;
    flex-wrap: nowrap;
    overflow-x: auto;
    padding-bottom: 6px;
}
.small-img-caption{
    width: 100%;
    text-align: center;
    color: var(--gray);
    font-size: 14px;
    margin-top: 8px;
}
.small-img:focus{
    outline: 3px solid rgba(132, 94, 40, 0.18);
    box-shadow: 0 6px 16px rgba(0,0,0,0.06);
}
.small-img-col{
    flex: 0 0 auto;
    cursor: pointer;
}
.small-img{
    width: 84px;
    height: 64px;
    object-fit: cover;
    border-radius: 4px;
    display: block;
}
.small-img{
    border-radius:4px;
    transition: transform 120ms ease, box-shadow 120ms ease;
    cursor: pointer;
}
.small-img:hover{ transform: translateY(-4px); box-shadow: 0 8px 18px rgba(0,0,0,0.08) }
.small-img.active{ outline: 3px solid var(--primary); transform: translateY(-6px); }
.small-img-col img{ width: 100%; height: auto; display:block; border-radius:4px }
#prodetails .single-pro-details{
    width: 50%;
    padding-top: 30px;
}
#prodetails .single-pro-details h4{
    padding: 40px 0 20px 0;
}
#prodetails .single-pro-details h2{
    font-size: 26px;
}
#prodetails .single-pro-details select{
    display: block;
    padding: 8px 10px;
    margin-bottom: 10px;
    max-width: 260px;
}
#prodetails .single-pro-details input{
    width: 50px;
    height: 47px;
    padding-left: 10px;
    font-size: 16px;
    margin-right: 10px;
}
#prodetails .single-pro-details input:focus{
    outline: none;
}
#prodetails .single-pro-details button{
    background: #d47d0b;
    color: #fff;
    border: none;
    padding: 10px 16px;
    border-radius: 6px;
    cursor: pointer;
}
#prodetails .single-pro-details span{
    line-height: 25px;
}

/* Responsive styles for product details */
@media (max-width: 992px) {
    #prodetails {
        gap: 18px;
        align-items: flex-start;
    }
    #prodetails .single-pro-image {
        width: 45%;
        margin-right: 32px;
    }
    #prodetails .single-pro-details {
        width: 55%;
        padding-top: 20px;
    }
    .small-img-col{ flex-basis: 30%; }
}

@media (max-width: 768px) {
    /* stack vertically and allow images and details to fill available width */
    #prodetails {
        flex-direction: column;
        align-items: stretch;
        gap: 24px;
    }
    #prodetails .single-pro-image,
    #prodetails .single-pro-details {
        width: 100%;
        margin-right: 0;
        margin-left: 0;
        padding-top: 0;
    }
    .small-img-group {
        gap: 8px;
    }
    .small-img-col{ flex-basis: 30%; }
    /* Make controls easier to tap */
    #prodetails .single-pro-details select,
    #prodetails .single-pro-details input,
    #prodetails .single-pro-details button{
        font-size: 16px;
    }
}

@media (max-width: 576px) {
    #prodetails {
        margin-top: 10px;
        gap: 12px;
    }
    #prodetails .single-pro-details h4 {
        padding: 20px 0 10px 0;
    }
    #prodetails .single-pro-details h2 {
        font-size: 20px;
    }
    .small-img-group {
        flex-direction: row; /* keep thumbnails horizontal on small phones if space allows */
        gap: 6px;
        overflow-x: auto;
    }
    .small-img-col {
        flex-basis: auto;
        width: 28%;
        min-width: 80px;
    }
    #prodetails .single-pro-details input {
        width: 48px;
        height: 40px;
        font-size: 14px;
    }
    /* full width action row */
    .button23{ display:flex; gap:8px; flex-wrap:wrap }
    .button23 button{ flex: 1 1 auto; min-width: 120px }
}

/* Extra small screens - narrow phones */
@media (max-width: 480px) {
    #prodetails { gap: 10px }
    #prodetails .single-pro-details h4 { padding: 12px 0 8px 0 }
    #prodetails .single-pro-details h2 { font-size: 18px }
    .small-img-group { gap: 8px }
    .small-img-col{ width: 32%; min-width: 70px }
    /* stack quantity + add-to-cart vertically for clarity */
    .qty-add {
        display: flex;
        flex-direction: column;
        gap: 8px;
    }
    #prodetails .single-pro-details select,
    #prodetails .single-pro-details input{
        width: 100%;
        max-width: none;
    }
}

/* Checkout specific styles */
.checkout { padding: 40px 0 80px; }
.checkout .summary-list { background:#fff; padding:16px; border-radius:8px; box-shadow:0 6px 18px rgba(0,0,0,0.06); }
.summary-item{ display:flex; gap:12px; align-items:center; padding:10px 0; border-bottom:1px solid #f4f4f4 }
.summary-item img{ width:84px; height:64px; object-fit:cover; border-radius:6px }
.s-title{ font-weight:600 }
.s-artist{ color:var(--gray); font-size:13px }
.s-price{ margin-left:auto; font-weight:700; color:var(--primary) }
.summary-totals{ margin-top:16px; background:#fff; padding:12px; border-radius:8px; box-shadow:0 6px 18px rgba(0,0,0,0.04) }
.summary-totals > div{ display:flex; justify-content:space-between; padding:6px 0 }
.summary-total{ border-top:1px dashed #eee; padding-top:10px; margin-top:10px }
.checkout-actions{ display:flex; gap:12px; margin-top:18px }
.checkout .btn.secondary{ background:#f3f3f3; color:#333 }
.checkout .btn.primary{ background:var(--primary); color:#fff }
.address-form label{ display:block; margin-bottom:12px }
.address-form input{ width:100%; padding:10px; border-radius:6px; border:1px solid #e6e6e6 }
.address-form .checkout-actions{ justify-content:space-between }
.payment-form .pm-option{ display:block; padding:12px; border:1px solid #eee; margin-bottom:8px; border-radius:8px; background:#fff }
.wallet-balance-inline{ margin:8px 0 12px; color:var(--gray) }
.centered { display:flex; align-items:center; justify-content:center; min-height:60vh }
.order-success{ text-align:center; background:#fff; padding:28px; border-radius:8px; box-shadow:0 10px 30px rgba(0,0,0,0.06) }
.success-icon{ font-size:48px; color:green; margin-bottom:8px }
.disabled{ opacity:0.6; pointer-events:none }

@media (max-width: 768px){
    .checkout-actions{ flex-direction:column-reverse }
    .address-form .checkout-actions{ flex-direction:column-reverse }
}

/* Step panel for Flipkart-like checkout flow */
.two-column{ display:grid; grid-template-columns: 280px 1fr; gap:24px; align-items:start }
.checkout-steps{ position:sticky; top:92px; align-self:start }
.checkout-steps ol{ list-style:none; padding:8px; background:#fff; border-radius:8px; box-shadow:0 8px 22px rgba(0,0,0,0.06) }
.checkout-steps .step-item{ padding:14px 12px; border-bottom:1px solid #f2f2f2; cursor:pointer; color:#666; gap:14px }
.checkout-steps .step-item:last-child{ border-bottom:none }
.checkout-steps .step-item.active{ background:linear-gradient(90deg,var(--primary),var(--secondary)); color:#fff; font-weight:700 }
.checkout-main{ background:transparent }

@media (max-width: 900px){ .two-column{ grid-template-columns: 1fr; } .checkout-steps{ position:relative; top:auto; margin-bottom:12px } }

/* Step badges and completed state */
.checkout-steps .step-item { display:flex; align-items:center; gap:12px }
.checkout-steps .step-num { width:34px; height:34px; border-radius:50%; background:#f3f3f3; color:var(--primary); display:inline-flex; align-items:center; justify-content:center; font-weight:700; border:1px solid #eee }
.checkout-steps .step-item.active .step-num { background:#fff; color:var(--primary); box-shadow:0 4px 12px rgba(0,0,0,0.08) }
.checkout-steps .step-item.completed { background: linear-gradient(90deg,var(--primary),var(--secondary)); color:#fff }
.checkout-steps .step-item.completed .step-num { background:transparent; color:#fff; border-color:rgba(255,255,255,0.2) }
.checkout-steps .step-title { font-size:14px }

/* Three-column layout for payment page (steps / main / order card) */
.three-column{ display:grid; grid-template-columns: 280px 1fr 320px; gap:24px; align-items:start }
.order-card{ position:sticky; top:92px; background:#fff; padding:16px; border-radius:8px; box-shadow:0 8px 22px rgba(0,0,0,0.06); }
.order-card h4{ margin-bottom:12px }
.order-card .oc-item{ display:flex; gap:10px; align-items:center; border-bottom:1px dashed #f3f3f3; padding:10px 0 }
.order-card .oc-item img{ width:64px; height:48px; object-fit:cover; border-radius:6px }
.order-card .oc-totals{ margin-top:12px; font-weight:700; display:flex; justify-content:space-between }

@media (max-width: 1100px){ .three-column{ grid-template-columns: 1fr; } .order-card{ position:relative; top:auto } }

/* Alignment and form grid improvements */
.checkout-main{ padding: 12px 18px; }
.address-form{ display:grid; grid-template-columns: 1fr 1fr; gap:12px; align-items:start }
.address-form label{ display:flex; flex-direction:column; margin-bottom:0 }
.address-form input{ width:100%; }
.address-form label.full{ grid-column: 1 / -1 }
.summary-list, .order-card{ max-height: 60vh; overflow:auto }
.rev-item, .summary-item{ align-items:flex-start }
.rev-item img{ width:72px; height:54px }
.pm-option{ display:flex; align-items:center; gap:12px }
.pm-option input{ transform:scale(1.05); }
.checkout-actions{ justify-content:flex-end }
.checkout .checkout-actions .btn.secondary{ margin-right:auto }

@media (max-width: 900px){
    .address-form{ grid-template-columns: 1fr; }
    .checkout-actions{ justify-content:space-between }
}