
        * {
            margin: 0;
            padding: 0;
            box-sizing: border-box;
        }

        :root {
            --background: #fafafa;
            --foreground: #0f172a;
            --card: #ffffff;
            --card-foreground: #0f172a;
            --primary: #ff6b35;
            --primary-foreground: #ffffff;
            --secondary: #f1f5f9;
            --secondary-foreground: #1e293b;
            --muted: #f1f5f9;
            --muted-foreground: #64748b;
            --success: #16a34a;
            --success-foreground: #ffffff;
            --discount: #ef4444;
            --discount-foreground: #ffffff;
            --price-color: #059669;
            --old-price-color: #64748b;
            --star-color: #eab308;
            --border: #e2e8f0;
            --shadow-card: 0 2px 8px -2px rgba(15, 23, 42, 0.08);
            --shadow-hover: 0 4px 16px -4px rgba(15, 23, 42, 0.12);
            --shadow-button: 0 2px 4px -1px rgba(255, 107, 53, 0.3);
            --radius: 8px;
        }

        body {
            font-family: -apple-system, BlinkMacSystemFont, 'Segoe UI', 'Roboto', sans-serif;
            background-color: var(--background);
            color: var(--foreground);
            line-height: 1.6;
        }
   .container {
    max-width: 100%;
    width: 100%;
    margin: 0 auto;
    padding: 0 2rem;  /* thoda side se space toh rahe, but wide dikhe */
}

        /* Header Styles */
        .header {
            background: var(--card);
            border-bottom: 1px solid var(--border);
            box-shadow: var(--shadow-card);
            position: sticky;
            top: 0;
            z-index: 50;
        }

        .header-content {
            padding: 1rem 0;
            display: flex;
            align-items: center;
            gap: 1rem;
        }

        .back-btn {
            background: none;
            border: none;
            color: var(--muted-foreground);
            cursor: pointer;
            padding: 0.5rem;
            border-radius: var(--radius);
            display: flex;
            align-items: center;
            gap: 0.5rem;
            font-size: 0.875rem;
            transition: all 0.2s;
        }

        .back-btn:hover {
            background: var(--muted);
            color: var(--foreground);
        }

        .header-title {
            font-size: 0.875rem;
            font-weight: 500;
            overflow: hidden;
            text-overflow: ellipsis;
            white-space: nowrap;
        }

        /* Product Layout */
        .product-layout {
            padding: 2rem 0;
            display: grid;
            grid-template-columns: 1fr;
            gap: 2rem;
        }

        @media (min-width: 1024px) {
            .product-layout {
                grid-template-columns: 1fr 1fr;
                gap: 4rem;
                padding: 3rem 0;
            }
        }

        /* Image Gallery */
        .image-gallery {
            space-y: 1rem;
        }

        .main-image-container {
            position: relative;
            background: var(--card);
            border-radius: var(--radius);
            box-shadow: var(--shadow-card);
            overflow: hidden;
        }

        .main-image-wrapper {
            aspect-ratio: 1;
            position: relative;
            background: linear-gradient(145deg, rgba(241, 245, 249, 0.3), rgba(241, 245, 249, 0.1));
        }

        .main-image {
            width: 100%;
            height: 100%;
            object-fit: contain;
            padding: 1rem;
        }

        .nav-button {
            position: absolute;
            top: 50%;
            transform: translateY(-50%);
            width: 2rem;
            height: 2rem;
            background: rgba(255, 255, 255, 0.9);
            border: none;
            border-radius: 50%;
            cursor: pointer;
            display: flex;
            align-items: center;
            justify-content: center;
            box-shadow: var(--shadow-card);
            transition: all 0.2s;
        }

        .nav-button:hover {
            background: white;
            box-shadow: var(--shadow-hover);
        }

        .nav-button.prev {
            left: 0.5rem;
        }

        .nav-button.next {
            right: 0.5rem;
        }

        .image-indicators {
            position: absolute;
            bottom: 1rem;
            left: 50%;
            transform: translateX(-50%);
            display: flex;
            gap: 0.5rem;
        }

        .indicator {
            width: 0.5rem;
            height: 0.5rem;
            border-radius: 50%;
            background: rgba(100, 116, 139, 0.3);
            cursor: pointer;
            transition: background 0.2s;
        }

        .indicator.active {
            background: var(--primary);
        }

        .thumbnail-grid {
            display: grid;
            grid-template-columns: repeat(4, 1fr);
            gap: 0.5rem;
            margin-top: 1rem;
        }

        @media (min-width: 768px) {
            .thumbnail-grid {
                grid-template-columns: repeat(6, 1fr);
            }
        }

        .thumbnail {
            aspect-ratio: 1;
            border-radius: var(--radius);
            overflow: hidden;
            border: 2px solid var(--border);
            cursor: pointer;
            transition: all 0.2s;
        }

        .thumbnail.active {
            border-color: var(--primary);
            box-shadow: 0 0 0 2px rgba(255, 107, 53, 0.2);
        }

        .thumbnail:hover {
            border-color: rgba(255, 107, 53, 0.5);
        }

        .thumbnail img {
            width: 100%;
            height: 100%;
            object-fit: cover;
        }

        /* Product Details */
        .product-details {
            space-y: 1.5rem;
        }

        .brand {
            font-size: 0.875rem;
            color: var(--muted-foreground);
            font-weight: 500;
            text-transform: uppercase;
            letter-spacing: 0.05em;
        }

        .product-title {
            font-size: 1.5rem;
            font-weight: bold;
            line-height: 1.3;
            margin: 0.5rem 0;
        }

        @media (min-width: 1024px) {
            .product-title {
                font-size: 1.875rem;
            }
        }

        .rating-container {
            display: flex;
            align-items: center;
            gap: 1rem;
            margin: 1rem 0;
        }

        .rating-badge {
            display: flex;
            align-items: center;
            gap: 0.25rem;
            background: var(--success);
            color: var(--success-foreground);
            padding: 0.25rem 0.5rem;
            border-radius: var(--radius);
            font-size: 0.875rem;
            font-weight: 600;
        }

        .reviews-text {
            color: var(--muted-foreground);
            font-size: 0.875rem;
        }

        .pricing {
            margin: 1.5rem 0;
        }

        .price-container {
            display: flex;
            align-items: baseline;
            gap: 0.75rem;
            margin-bottom: 0.5rem;
        }

        .current-price {
            font-size: 2rem;
            font-weight: bold;
            color: var(--price-color);
        }

        @media (min-width: 1024px) {
            .current-price {
                font-size: 2.5rem;
            }
        }

        .old-price {
            font-size: 1.25rem;
            text-decoration: line-through;
            color: var(--old-price-color);
        }

        .discount-badge {
            background: var(--discount);
            color: var(--discount-foreground);
            padding: 0.25rem 0.5rem;
            border-radius: var(--radius);
            font-size: 0.875rem;
            font-weight: 600;
        }

        .savings-text {
            font-size: 0.875rem;
            color: var(--success);
            font-weight: 500;
        }

        .warranty {
            display: flex;
            align-items: center;
            gap: 0.5rem;
            color: var(--muted-foreground);
            font-size: 0.875rem;
            margin: 1rem 0;
        }

        .quantity-section {
            margin: 1.5rem 0;
        }

        .quantity-label {
            font-size: 0.875rem;
            font-weight: 500;
            margin-bottom: 0.5rem;
            display: block;
        }

        .quantity-controls {
            display: flex;
            align-items: center;
            gap: 0.75rem;
        }

        .quantity-selector {
            display: flex;
            align-items: center;
            border: 1px solid var(--border);
            border-radius: var(--radius);
        }

        .quantity-btn {
            width: 2rem;
            height: 2rem;
            border: none;
            background: none;
            cursor: pointer;
            display: flex;
            align-items: center;
            justify-content: center;
            color: var(--muted-foreground);
            transition: all 0.2s;
        }

        .quantity-btn:hover:not(:disabled) {
            background: var(--muted);
            color: var(--foreground);
        }

        .quantity-btn:disabled {
            opacity: 0.5;
            cursor: not-allowed;
        }

        .quantity-display {
            width: 3rem;
            text-align: center;
            font-size: 0.875rem;
            font-weight: 500;
            border-left: 1px solid var(--border);
            border-right: 1px solid var(--border);
            padding: 0.25rem 0;
        }

        .quantity-note {
            font-size: 0.875rem;
            color: var(--muted-foreground);
        }

        .action-buttons {
            display: flex;
            gap: 0.75rem;
            margin: 2rem 0;
        }

        .btn {
            padding: 0.75rem 1.5rem;
            border-radius: var(--radius);
            font-size: 0.875rem;
            font-weight: 600;
            cursor: pointer;
            transition: all 0.2s;
            border: none;
            display: flex;
            align-items: center;
            justify-content: center;
            gap: 0.5rem;
        }

        .btn-primary {
            background: linear-gradient(135deg, var(--primary), #ffa726);
            color: var(--primary-foreground);
            box-shadow: var(--shadow-button);
            flex: 1;
        }

        .btn-primary:hover {
            background: linear-gradient(135deg, rgba(255, 107, 53, 0.9), rgba(255, 167, 38, 0.9));
            box-shadow: var(--shadow-hover);
        }

        .btn-secondary {
            border: 1px solid var(--primary);
            color: var(--primary);
            background: var(--card);
            padding: 0.75rem;
        }

        .btn-secondary:hover {
            background: var(--primary);
            color: var(--primary-foreground);
        }

        .btn-secondary.active {
            background: var(--primary);
            color: var(--primary-foreground);
        }

        .section-divider {
            border-top: 1px solid var(--border);
            padding-top: 1.5rem;
            margin-top: 1.5rem;
        }

        .section-title {
            font-size: 1.125rem;
            font-weight: 600;
            margin-bottom: 0.75rem;
        }

        .description {
            color: var(--muted-foreground);
            line-height: 1.6;
        }

        .features-list {
            list-style: none;
            space-y: 0.5rem;
        }

        .feature-item {
            display: flex;
            align-items: flex-start;
            gap: 0.5rem;
            margin-bottom: 0.5rem;
        }

        .feature-bullet {
            width: 0.375rem;
            height: 0.375rem;
            background: var(--primary);
            border-radius: 50%;
            margin-top: 0.5rem;
            flex-shrink: 0;
        }

        .feature-text {
            color: var(--muted-foreground);
        }

        /* Recommended Products */
        .recommendations {
            margin-top: 3rem;
            padding-top: 3rem;
            border-top: 1px solid var(--border);
        }

        .recommendations-header {
            text-align: center;
            margin-bottom: 2rem;
        }

        .recommendations-title {
            font-size: 1.5rem;
            font-weight: bold;
            margin-bottom: 0.5rem;
        }

        @media (min-width: 1024px) {
            .recommendations-title {
                font-size: 1.875rem;
            }
        }

        .recommendations-subtitle {
            color: var(--muted-foreground);
        }

        .products-grid {
            display: grid;
            grid-template-columns: repeat(2, 1fr);
            gap: 1rem;
        }

        @media (min-width: 768px) {
            .products-grid {
                grid-template-columns: repeat(3, 1fr);
            }
        }

        @media (min-width: 1024px) {
            .products-grid {
                grid-template-columns: repeat(4, 1fr);
                gap: 1.5rem;
            }
        }

        .product-card {
            background: var(--card);
            border-radius: var(--radius);
            box-shadow: var(--shadow-card);
            overflow: hidden;
            cursor: pointer;
            transition: all 0.2s;
        }

        .product-card:hover {
            transform: scale(1.02);
            box-shadow: var(--shadow-hover);
        }

        .product-image-container {
            aspect-ratio: 1;
            position: relative;
            background: linear-gradient(145deg, rgba(241, 245, 249, 0.3), rgba(241, 245, 249, 0.1));
            overflow: hidden;
        }

        .product-image {
            width: 100%;
            height: 100%;
            object-fit: contain;
            padding: 0.75rem;
        }

        .product-discount {
            position: absolute;
            top: 0.5rem;
            left: 0.5rem;
            background: var(--discount);
            color: var(--discount-foreground);
            padding: 0.25rem 0.5rem;
            border-radius: var(--radius);
            font-size: 0.75rem;
            font-weight: 500;
        }

        .product-info {
            padding: 0.75rem;
            space-y: 0.5rem;
        }

        .product-brand {
            font-size: 0.75rem;
            color: var(--muted-foreground);
            font-weight: 500;
        }

        .product-name {
            font-weight: 500;
            font-size: 0.875rem;
            line-height: 1.4;
            display: -webkit-box;
            -webkit-line-clamp: 2;
            -webkit-box-orient: vertical;
            overflow: hidden;
            margin: 0.25rem 0;
        }

        .product-rating {
            display: flex;
            align-items: center;
            gap: 0.25rem;
            margin: 0.5rem 0;
        }

        .rating-small {
            display: flex;
            align-items: center;
            gap: 0.25rem;
            background: var(--success);
            color: var(--success-foreground);
            padding: 0.125rem 0.375rem;
            border-radius: var(--radius);
            font-size: 0.75rem;
            font-weight: 500;
        }

        .reviews-small {
            font-size: 0.75rem;
            color: var(--muted-foreground);
        }

        .product-pricing {
            display: flex;
            align-items: center;
            gap: 0.5rem;
            flex-wrap: wrap;
        }

        .price-large {
            font-size: 1.125rem;
            font-weight: bold;
            color: var(--price-color);
        }

        .price-old-small {
            font-size: 0.875rem;
            text-decoration: line-through;
            color: var(--old-price-color);
        }

        .discount-small {
            font-size: 0.75rem;
            color: var(--discount);
            font-weight: 500;
        }

        /* Loading and Error States */
        .loading, .error, .not-found {
            min-height: 100vh;
            display: flex;
            align-items: center;
            justify-content: center;
            text-align: center;
            padding: 2rem;
        }

        .loading-content, .error-content, .not-found-content {
            max-width: 24rem;
        }

        .loading-spinner {
            width: 2rem;
            height: 2rem;
            border: 2px solid var(--muted);
            border-top: 2px solid var(--primary);
            border-radius: 50%;
            animation: spin 1s linear infinite;
            margin: 0 auto 1rem;
        }

        @keyframes spin {
            0% { transform: rotate(0deg); }
            100% { transform: rotate(360deg); }
        }

        .error-icon, .not-found-icon {
            font-size: 4rem;
            margin-bottom: 1rem;
        }

        .error-title, .not-found-title {
            font-size: 1.5rem;
            font-weight: bold;
            margin-bottom: 1rem;
        }

        .error-message, .not-found-message {
            color: var(--muted-foreground);
            margin-bottom: 1.5rem;
        }

        /* Utility Classes */
        .hidden {
            display: none !important;
        }

        .sr-only {
            position: absolute;
            width: 1px;
            height: 1px;
            padding: 0;
            margin: -1px;
            overflow: hidden;
            clip: rect(0, 0, 0, 0);
            white-space: nowrap;
            border: 0;
        }
.rating-section {
    margin-top: 25px;
    font-size: 20px;
}
.stars span {
    cursor: pointer;
    color: #ccc;
    font-size: 28px;
    transition: color 0.2s;
}
.stars span.selected {
    color: gold;
}
