:root {
            --card-bg: #222;
            --accent-color: #ffdd00;
            --text-muted: #aaa;
            --tag-bg: #333;
            --price-color: #fff;
        }

        body {
            background-color: black;
            color: white;
            font-family: Helvetica, Arial, sans-serif;
            margin: 0;
            padding: 20px;
        }

        .shop-container {
            max-width: 1000px;
            margin: 0 auto;
            padding-bottom: 100px;
        }

        .section-header {
            display: flex;
            align-items: center;
            gap: 10px;
            margin: 40px 0 20px;
        }

        .section-header h2 {
            font-size: 1.2rem;
            margin: 0;
        }

        .item-count {
            background: var(--accent-color);
            color: black;
            padding: 2px 8px;
            border-radius: 12px;
            font-size: 0.8rem;
            font-weight: bold;
        }

        /* Mobile Toggles */
        .mobile-toggles {
            display: none;
            justify-content: center;
            gap: 10px;
            margin-bottom: 30px;
        }

        .toggle-btn {
            background: #333;
            color: white;
            border: none;
            padding: 10px 25px;
            border-radius: 25px;
            cursor: pointer;
            font-weight: bold;
            transition: 0.3s;
        }

        .toggle-btn.active {
            background: var(--accent-color);
            color: black;
        }

        .view-all-btn {
            background: transparent;
            color: var(--accent-color);
            border: 1px solid var(--accent-color);
            padding: 5px 15px;
            border-radius: 15px;
            cursor: pointer;
            margin-left: auto;
            font-size: 0.85rem;
            transition: 0.3s;
        }

        .view-all-btn:hover {
            background: var(--accent-color);
            color: black;
        }

        .partner-link {
            background: rgba(255, 255, 255, 0.05);
            color: white;
            padding: 8px 16px;
            border-radius: 20px;
            text-decoration: none;
            font-size: 0.9rem;
            display: inline-flex;
            align-items: center;
            gap: 8px;
            border: 1px solid rgba(255, 255, 255, 0.1);
            transition: 0.3s;
        }

        .partner-link:hover {
            background: var(--accent-color);
            color: black;
            border-color: var(--accent-color);
            transform: translateY(-2px);
        }

        /* Desktop row scroll defaults */
        .scroll-container {
            position: relative;
        }

        .scroll-arrow {
            position: absolute;
            top: 50%;
            transform: translateY(-50%);
            background: rgba(0, 0, 0, 0.7);
            color: white;
            width: 40px;
            height: 40px;
            border-radius: 50%;
            display: flex;
            align-items: center;
            justify-content: center;
            cursor: pointer;
            z-index: 10;
            opacity: 0;
            pointer-events: none;
            transition: opacity 0.3s ease, background 0.3s ease;
        }

        .scroll-arrow:hover {
            background: rgba(0, 0, 0, 0.9);
        }

        .scroll-arrow.right-arrow {
            right: 0;
            animation: bounceRight 2s infinite;
        }

        .scroll-arrow.left-arrow {
            left: 0;
            animation: bounceLeft 2s infinite;
        }

        @keyframes bounceRight {
            0%,
            100% {
                transform: translate(0, -50%);
            }
            50% {
                transform: translate(10px, -50%);
            }
        }

        @keyframes bounceLeft {
            0%,
            100% {
                transform: translate(0, -50%);
            }
            50% {
                transform: translate(-10px, -50%);
            }
        }

        .product-grid {
            display: flex;
            overflow-x: auto;
            scroll-snap-type: x mandatory;
            /* scroll-snap-type: x proximity; */
            gap: 20px;
            padding-bottom: 20px;
            scrollbar-width: none;
            /* Firefox */
            scroll-behavior: smooth;
        }

        .product-grid::-webkit-scrollbar {
            display: none;
            /* Safari/Chrome */
        }

        .product-grid>.product-card {
            flex: 0 0 auto;
            width: 300px;
            /* scroll-snap-align: center; */
        }

        .product-grid.expanded {
            display: grid;
            grid-template-columns: repeat(auto-fill, minmax(300px, 1fr));
            overflow-x: visible;
        }

        .product-grid.expanded>.product-card {
            width: auto;
            flex: auto;
        }

        .product-grid.expanded+.scroll-arrow {
            display: none;
        }

        .product-card {
            background: var(--card-bg);
            border-radius: 20px;
            overflow: hidden;
            border: 1px solid rgba(255, 255, 255, 0.1);
            transition: transform 0.3s ease, box-shadow 0.3s ease;
            cursor: pointer;
            position: relative;
        }

        .product-card:hover {
            transform: translateY(-5px);
            box-shadow: 0 10px 20px rgba(0, 0, 0, 0.5);
            border-color: rgba(255, 221, 0, 0.3);
        }

        .product-image-container {
            position: relative;
            width: 100%;
            height: 180px;
            background: #333;
            overflow: hidden;
        }

        .product-image {
            position: absolute;
            top: 0;
            left: 0;
            width: 100%;
            height: 100%;
            object-fit: cover;
            opacity: 0;
            transition: opacity 0.8s ease-in-out;
        }

        .product-image.active {
            opacity: 1;
        }

        .product-tag {
            position: absolute;
            top: 15px;
            left: 15px;
            background: rgba(0, 0, 0, 0.6);
            color: white;
            padding: 4px 10px;
            border-radius: 6px;
            font-size: 0.7rem;
            font-weight: bold;
            backdrop-filter: blur(4px);
            display: flex;
            align-items: center;
            gap: 5px;
        }

        .product-tag.digital {
            background: #4fc7ff;
            color: black;
        }

        .product-info {
            padding: 20px;
        }

        .product-title {
            font-size: 1.1rem;
            font-weight: bold;
            margin-bottom: 10px;
            white-space: nowrap;
            overflow: hidden;
            text-overflow: ellipsis;
        }

        .product-desc {
            font-size: 0.85rem;
            color: var(--text-muted);
            line-height: 1.4;
            height: 3.8em;
            overflow: hidden;
            display: -webkit-box;
            -webkit-line-clamp: 3;
            -webkit-box-orient: vertical;
            margin-bottom: 20px;
        }

        .product-footer {
            display: flex;
            justify-content: space-between;
            align-items: center;
            padding-top: 15px;
            border-top: 1px solid rgba(255, 255, 255, 0.05);
        }

        .price-label {
            font-size: 0.7rem;
            color: var(--text-muted);
            text-transform: uppercase;
        }

        .price-value {
            font-size: 1.3rem;
            font-weight: bold;
            color: var(--price-color);
            display: flex;
            align-items: center;
            gap: 5px;
        }

        .price-value::before {
            content: '৳';
        }

        .arrow-btn {
            background: #f8f9fa;
            color: black;
            width: 35px;
            height: 35px;
            border-radius: 50%;
            display: flex;
            align-items: center;
            justify-content: center;
            font-size: 0.8rem;
        }

        /* Modal Styles */
        .modal {
            display: none;
            position: fixed;
            z-index: 2000;
            top: 0;
            left: 0;
            width: 100%;
            height: 100%;
            background: rgba(0, 0, 0, 0.85);
            backdrop-filter: blur(8px);
            align-items: center;
            justify-content: center;
            padding: 20px;
            box-sizing: border-box;
        }

        .modal.active {
            display: flex;
        }

        .modal-content {
            background: #fff;
            color: black;
            width: 100%;
            max-width: 900px;
            border-radius: 30px;
            overflow: hidden;
            position: relative;
            animation: modalIn 0.3s ease-out;
            max-height: 90vh;
            display: flex;
            flex-direction: column;
        }

        @keyframes modalIn {
            from {
                opacity: 0;
                transform: scale(0.95);
            }

            to {
                opacity: 1;
                transform: scale(1);
            }
        }

        .modal-body {
            display: flex;
            overflow-y: auto;
        }

        .modal-left {
            flex: 1;
            padding: 40px;
        }

        .modal-right {
            width: 350px;
            padding: 40px;
            background: #f8f9fa;
            border-left: 1px solid #eee;
        }

        .close-modal {
            position: absolute;
            top: 20px;
            right: 20px;
            background: #eee;
            border: none;
            width: 40px;
            height: 40px;
            border-radius: 50%;
            cursor: pointer;
            z-index: 10;
            display: flex;
            align-items: center;
            justify-content: center;
            font-size: 1.2rem;
        }

        .modal-image-container {
            position: relative;
            width: 100%;
            height: 300px;
            border-radius: 20px;
            margin-bottom: 20px;
            overflow: hidden;
            box-shadow: 0 4px 12px rgba(0, 0, 0, 0.1);
            background: #eee;
        }

        .modal-image {
            position: absolute;
            top: 0;
            left: 0;
            width: 100%;
            height: 100%;
            object-fit: cover;
            opacity: 0;
            transition: opacity 0.8s ease-in-out;
        }

        .modal-image.active {
            opacity: 1;
        }

        .detail-tag {
            background: #ffdd00;
            display: inline-block;
            padding: 5px 15px;
            border-radius: 20px;
            font-weight: bold;
            font-size: 0.8rem;
            margin-bottom: 20px;
        }

        .detail-title {
            font-size: 2rem;
            font-weight: bold;
            margin: 0 0 20px;
            line-height: 1.1;
        }

        .detail-desc {
            font-size: 1rem;
            line-height: 1.6;
            color: #444;
            white-space: pre-line;
        }

        .feature-list {
            list-style: none;
            padding: 0;
            margin: 20px 0;
        }

        .feature-item {
            display: flex;
            align-items: center;
            gap: 10px;
            margin-bottom: 15px;
            color: #555;
            font-size: 0.9rem;
        }

        .feature-item i {
            color: #4ade80;
        }

        .order-btn {
            background: black;
            color: white;
            border: none;
            padding: 15px 30px;
            border-radius: 12px;
            font-size: 1.1rem;
            font-weight: bold;
            width: 100%;
            cursor: pointer;
            transition: transform 0.2s;
            margin-bottom: 15px;
        }

        .order-btn:hover {
            transform: scale(1.02);
        }

        .query-btn {
            box-sizing: border-box;
            background: #eee;
            color: black;
            border: none;
            padding: 15px 30px;
            border-radius: 12px;
            font-size: 1.1rem;
            font-weight: bold;
            width: 100%;
            cursor: pointer;
            text-decoration: none;
            display: block;
            text-align: center;
        }

        .query-btn:hover {
            background: #e0e0e0;
        }

        .payment-modal {
            max-width: 500px;
            padding: 30px;
            background: white;
            color: black;
            border-radius: 25px;
            text-align: center;
        }

        .payment-modal h3 {
            margin-top: 0;
        }

        .payment-option {
            background: #f8f9fa;
            padding: 15px;
            border-radius: 15px;
            margin: 15px 0;
            text-align: left;
            border: 1px solid #eee;
        }

        .payment-option strong {
            display: block;
            margin-bottom: 5px;
        }

        .payment-option a {
            color: #007bff;
            text-decoration: none;
        }

        .copy-btn {
            background: #eee;
            border: 1px solid #ccc;
            padding: 4px 10px;
            border-radius: 6px;
            font-size: 0.8rem;
            cursor: pointer;
            margin-left: 10px;
            transition: 0.2s;
            color: black;
            display: inline-flex;
            align-items: center;
            gap: 5px;
        }

        .copy-btn:hover {
            background: #ddd;
        }

        .refund-policy {
            font-size: 0.8rem;
            color: #777;
            margin-top: 20px;
            font-style: italic;
        }

        @media (max-width: 800px) {
            .mobile-toggles {
                display: flex;
            }

            .view-all-btn,
            .scroll-arrow {
                display: none !important;
            }

            .product-grid {
                display: grid;
                grid-template-columns: repeat(auto-fill, minmax(150px, 1fr));
                overflow-x: visible;
                gap: 12px;
            }

            .product-grid>.product-card {
                width: auto;
                flex: auto;
            }

            .product-image-container {
                height: 120px;
            }

            .product-info {
                padding: 8px 10px;
            }

            .product-title {
                font-size: 0.9rem;
                margin-bottom: 5px;
            }

            .product-desc {
                font-size: 0.75rem;
                height: 4.5em;
                -webkit-line-clamp: 4;
                margin-bottom: 8px;
            }

            .price-label {
                font-size: 0.6rem;
            }

            .price-value {
                font-size: 1.1rem;
            }

            .arrow-btn {
                width: 28px;
                height: 28px;
                font-size: 0.7rem;
            }

            .product-tag {
                top: 8px;
                left: 8px;
                padding: 3px 6px;
                font-size: 0.6rem;
            }

            .mobile-hidden {
                display: none !important;
            }

            .modal-image-container {
                height: 200px;
            }

            .modal-body {
                flex-direction: column;
            }

            .modal-right {
                width: auto;
                border-left: none;
                border-top: 1px solid #eee;
            }

            .detail-title {
                font-size: 1.5rem;
            }
        }

        /* Home Button Styling */
        .home-button-T {
            position: fixed;
            top: 20px;
            left: 20px;
            background: rgba(255, 255, 255, 0.1);
            color: white;
            width: 45px;
            height: 45px;
            border-radius: 50%;
            display: flex;
            align-items: center;
            justify-content: center;
            text-decoration: none;
            backdrop-filter: blur(10px);
            border: 1px solid rgba(255, 255, 255, 0.1);
            z-index: 1001;
            transition: 0.3s;
        }

        .home-button-T:hover {
            background: var(--accent-color);
            color: black;
            transform: scale(1.1);
        }

        @media (max-width: 800px) {
            .home-button-T {
                top: auto;
                bottom: 20px;
                left: auto;
                right: 20px;
            }
        }
