/**
 * Products Page Styles
 * Sourcing From China - Product Catalog
 * Includes responsive design, product cards, and subcategory menus
 */

/* ============================================
   CSS VARIABLES & RESET
   ============================================ */
 * {
            margin: 0;
            padding: 0;
            box-sizing: border-box;
        }

        :root {
            --blue-50: #eff6ff;
            --blue-100: #dbeafe;
            --blue-200: #bfdbfe;
            --blue-600: #2563eb;
            --blue-700: #1d4ed8;
            --gray-50: #f9fafb;
            --gray-100: #f3f4f6;
            --gray-200: #e5e7eb;
            --gray-300: #d1d5db;
            --gray-400: #9ca3af;
            --gray-500: #6b7280;
            --gray-600: #4b5563;
            --gray-700: #374151;
            --gray-800: #1f2937;
            --gray-900: #111827;
            --green-100: #dcfce7;
            --green-600: #16a34a;
            --yellow-500: #eab308;
            --white: #ffffff;
        }

        body {
            font-family: -apple-system, BlinkMacSystemFont, 'Segoe UI', Roboto, 'Helvetica Neue', Arial, sans-serif;
            line-height: 1.6;
            color: var(--gray-900);
            background: var(--white);
        }

        .breadcrumb {
            background: var(--gray-50);
            padding: 1rem 0;
            font-size: 0.875rem;
        }

        .breadcrumb-list {
            display: flex;
            flex-wrap: wrap;
            align-items: center;
            gap: 0.5rem;
            list-style: none;
        }

        .breadcrumb-list a {
            color: var(--blue-600);
            text-decoration: none;
        }

        .breadcrumb-list a:hover {
            text-decoration: underline;
        }

        .breadcrumb-separator {
            color: var(--gray-400);
        }

        /* Product Detail */
        .product-detail {
            padding: 3rem 0;
        }

        .product-grid {
            display: grid;
            grid-template-columns: 1fr;
            gap: 3rem;
        }

        @media (min-width: 1024px) {
            .product-grid {
                grid-template-columns: 1fr 1fr;
            }
        }

        /* Image Gallery */
        .image-gallery {
            /* Sticky only on desktop, scrolls normally on mobile */
        }

        @media (min-width: 1024px) {
            .image-gallery {
                position: sticky;
                top: 100px;
            }
        }

        .main-image {
            width: 100%;
            aspect-ratio: 1;
            background: var(--gray-100);
            border-radius: 1rem;
            overflow: hidden;
            margin-bottom: 1rem;
            position: relative;
        }

        /* Make image smaller on mobile */
        @media (max-width: 1023px) {
            .main-image {
                max-width: 90%;
                margin-left: auto;
                margin-right: auto;
                aspect-ratio: 1;
            }
        }

        .main-image img {
            width: 100%;
            height: 100%;
            object-fit: cover;
            cursor: zoom-in;
        }

        .image-thumbnails {
            display: grid;
            grid-template-columns: repeat(auto-fill, minmax(80px, 1fr));
            gap: 0.75rem;
        }

        .thumbnail {
            aspect-ratio: 1;
            background: var(--gray-100);
            border-radius: 0.5rem;
            overflow: hidden;
            cursor: pointer;
            border: 2px solid transparent;
            transition: all 0.2s;
        }

        .thumbnail:hover {
            border-color: var(--blue-600);
        }

        .thumbnail.active {
            border-color: var(--blue-600);
            box-shadow: 0 0 0 2px var(--blue-100);
        }

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

        .no-image-placeholder {
            display: flex;
            align-items: center;
            justify-content: center;
            height: 100%;
            color: var(--gray-400);
            font-size: 3rem;
        }

        /* Product Info */
        .product-info h1 {
            font-size: 2rem;
            margin-bottom: 0.5rem;
            color: var(--gray-900);
        }

        .product-category {
            display: inline-block;
            padding: 0.25rem 0.75rem;
            background: var(--blue-100);
            color: var(--blue-700);
            border-radius: 2rem;
            font-size: 0.875rem;
            margin-bottom: 1rem;
            text-decoration: none;
        }

        .product-category:hover {
            background: var(--blue-200);
        }

        .product-price {
            font-size: 2.5rem;
            color: var(--blue-600);
            margin: 1rem 0;
            display: flex;
            align-items: baseline;
            gap: 0.5rem;
        }

        .currency {
            font-size: 1.5rem;
        }

        .product-description {
            color: var(--gray-600);
            margin-bottom: 2rem;
            line-height: 1.8;
        }

        .product-features {
            margin-bottom: 2rem;
        }

        .product-features h3 {
            margin-bottom: 1rem;
            color: var(--gray-900);
        }

        .features-list {
            list-style: none;
            display: grid;
            gap: 0.75rem;
        }

        .features-list li {
            display: flex;
            align-items: start;
            gap: 0.75rem;
            padding: 0.75rem;
            background: var(--gray-50);
            border-radius: 0.5rem;
        }

        .check-icon {
            color: var(--green-600);
            flex-shrink: 0;
            margin-top: 0.125rem;
        }

        .product-specifications {
            margin-bottom: 2rem;
        }

        .product-specifications h3 {
            margin-bottom: 1rem;
            color: var(--gray-900);
        }

        .specs-table {
            width: 100%;
            border-collapse: collapse;
            background: white;
            border-radius: 0.5rem;
            overflow: hidden;
            box-shadow: 0 1px 3px rgba(0, 0, 0, 0.1);
        }

        .specs-table tr {
            border-bottom: 1px solid var(--gray-200);
        }

        .specs-table tr:last-child {
            border-bottom: none;
        }

        .specs-table td {
            padding: 0.75rem 1rem;
        }

        .specs-table td:first-child {
            font-weight: 500;
            color: var(--gray-700);
            width: 40%;
        }

        .action-buttons {
            display: flex;
            gap: 1rem;
            margin-bottom: 2rem;
            flex-wrap: wrap;
        }

        /* Pricing Calculator */
        .pricing-calculator {
            background: var(--gray-50);
            border: 2px solid var(--blue-200);
            border-radius: 1rem;
            padding: 1.5rem;
            margin-bottom: 2rem;
        }

        .pricing-calculator h3 {
            margin-bottom: 1rem;
            color: var(--gray-900);
            font-size: 1.25rem;
        }

        .price-range {
            font-size: 1.5rem;
            color: var(--blue-600);
            margin-bottom: 1.5rem;
            display: flex;
            align-items: baseline;
            gap: 0.5rem;
        }

        .price-separator {
            font-size: 1.25rem;
            color: var(--gray-400);
        }

        .quantity-selector {
            margin-bottom: 1.5rem;
        }

        .quantity-selector label {
            display: block;
            font-weight: 500;
            margin-bottom: 0.5rem;
            color: var(--gray-700);
        }

        /* Variation Selector */
        .variation-selector {
            margin-bottom: 1.5rem;
        }

        .variation-selector label {
            display: block;
            font-weight: 500;
            margin-bottom: 0.5rem;
            color: var(--gray-700);
        }

        .variation-selector select {
            width: 100%;
            padding: 0.75rem;
            border: 2px solid var(--gray-300);
            border-radius: 0.5rem;
            font-size: 1rem;
            background: white;
            color: var(--gray-900);
            cursor: pointer;
            transition: all 0.3s;
        }

        .variation-selector select:hover {
            border-color: var(--blue-600);
        }

        .variation-selector select:focus {
            outline: none;
            border-color: var(--blue-600);
            box-shadow: 0 0 0 3px var(--blue-100);
        }

        .quantity-input-group {
            display: flex;
            align-items: center;
            gap: 0.75rem;
        }

        .quantity-input-group input {
            flex: 1;
            padding: 0.75rem;
            border: 2px solid var(--gray-300);
            border-radius: 0.5rem;
            font-size: 1rem;
        }

        .quantity-input-group input:focus {
            outline: none;
            border-color: var(--blue-600);
        }

        .quantity-btn {
            width: 3rem;
            height: 3rem;
            border: 2px solid var(--gray-300);
            background: white;
            border-radius: 0.5rem;
            cursor: pointer;
            font-size: 1.25rem;
            transition: all 0.2s;
        }

        .quantity-btn:hover {
            background: var(--blue-600);
            border-color: var(--blue-600);
            color: white;
        }

        .pricing-breakdown {
            background: white;
            padding: 1rem;
            border-radius: 0.5rem;
            border: 1px solid var(--gray-200);
        }

        .pricing-row {
            display: flex;
            justify-content: space-between;
            padding: 0.5rem 0;
            border-bottom: 1px solid var(--gray-200);
        }

        .pricing-row:last-child {
            border-bottom: none;
            padding-top: 0.75rem;
            font-weight: 600;
            font-size: 1.125rem;
        }

        .pricing-row label {
            color: var(--gray-600);
            margin: 0;
        }

        .pricing-row .value {
            color: var(--gray-900);
        }

        .pricing-row:last-child .value {
            color: var(--blue-600);
        }

        /* Buy Now Button */
        .btn-buy-now {
            width: 100%;
            background: linear-gradient(135deg, #10b981 0%, #059669 100%);
            color: white;
            padding: 1rem 2rem;
            border: none;
            border-radius: 0.5rem;
            font-size: 1.125rem;
            font-weight: 700;
            cursor: pointer;
            transition: all 0.3s;
            margin-top: 1rem;
            box-shadow: 0 4px 6px rgba(16, 185, 129, 0.3);
            display: flex;
            align-items: center;
            justify-content: center;
            gap: 0.5rem;
        }

        .btn-buy-now:hover {
            background: linear-gradient(135deg, #059669 0%, #047857 100%);
            box-shadow: 0 6px 12px rgba(16, 185, 129, 0.4);
            transform: translateY(-2px);
        }

        .btn-buy-now:active {
            transform: translateY(0);
        }

        /* Stock Status */
        .stock-status {
            text-align: center;
            margin: 0.75rem 0;
            font-weight: 600;
            font-size: 0.95rem;
            padding: 0.5rem;
            border-radius: 0.375rem;
        }

        .stock-status.in-stock {
            color: #059669;
            background-color: #d1fae5;
        }

        .stock-status.out-of-stock {
            color: #dc2626;
            background-color: #fee2e2;
        }

        .btn-enquiry {
            width: 100%;
            background: var(--blue-600);
            color: white;
            padding: 1rem;
            border: none;
            border-radius: 0.5rem;
            font-size: 1.125rem;
            font-weight: 600;
            cursor: pointer;
            transition: all 0.3s;
            margin-top: 0.5rem;
        }

        .btn-enquiry:hover {
            background: var(--blue-700);
        }

        /* Enquiry Modal */
        .modal-overlay {
            display: none;
            position: fixed;
            top: 0;
            left: 0;
            width: 100%;
            height: 100%;
            background: rgba(0, 0, 0, 0.5);
            z-index: 10000;
            justify-content: center;
            align-items: center;
            padding: 1rem;
        }

        .modal-overlay.active {
            display: flex;
        }

        .modal-content {
            background: white;
            border-radius: 1rem;
            max-width: 600px;
            width: 100%;
            max-height: 90vh;
            overflow-y: auto;
            box-shadow: 0 20px 25px -5px rgba(0, 0, 0, 0.1);
        }

        .modal-header {
            padding: 1.5rem;
            border-bottom: 1px solid var(--gray-200);
            display: flex;
            justify-content: space-between;
            align-items: center;
        }

        .modal-header h2 {
            font-size: 1.5rem;
            color: var(--gray-900);
        }

        .modal-close {
            background: none;
            border: none;
            font-size: 1.5rem;
            cursor: pointer;
            color: var(--gray-400);
            padding: 0.5rem;
            line-height: 1;
        }

        .modal-close:hover {
            color: var(--gray-900);
        }

        .modal-body {
            padding: 1.5rem;
        }

        .order-summary {
            background: var(--blue-50);
            padding: 1rem;
            border-radius: 0.5rem;
            margin-bottom: 1.5rem;
        }

        .order-summary h3 {
            font-size: 1.125rem;
            margin-bottom: 0.75rem;
            color: var(--gray-900);
        }

        .summary-row {
            display: flex;
            justify-content: space-between;
            padding: 0.25rem 0;
        }

        .summary-row strong {
            color: var(--blue-600);
        }

        .form-group {
            margin-bottom: 1.25rem;
        }

        .form-group label {
            display: block;
            font-weight: 500;
            margin-bottom: 0.5rem;
            color: var(--gray-700);
        }

        .form-group input,
        .form-group textarea {
            width: 100%;
            padding: 0.75rem;
            border: 2px solid var(--gray-300);
            border-radius: 0.5rem;
            font-size: 1rem;
            font-family: inherit;
        }

        .form-group input:focus,
        .form-group textarea:focus {
            outline: none;
            border-color: var(--blue-600);
        }

        .form-group textarea {
            min-height: 100px;
            resize: vertical;
        }

        .form-group small {
            display: block;
            margin-top: 0.25rem;
            color: var(--gray-500);
            font-size: 0.875rem;
        }

        .modal-actions {
            padding: 1.5rem;
            border-top: 1px solid var(--gray-200);
            display: flex;
            gap: 1rem;
        }

        .btn-submit {
            flex: 1;
            padding: 0.75rem;
            background: var(--blue-600);
            color: white;
            border: none;
            border-radius: 0.5rem;
            font-size: 1rem;
            font-weight: 500;
            cursor: pointer;
            transition: all 0.3s;
        }

        .btn-submit:hover {
            background: var(--blue-700);
        }

        .btn-submit:disabled {
            background: var(--gray-400);
            cursor: not-allowed;
        }

        .btn-cancel {
            padding: 0.75rem 1.5rem;
            background: var(--gray-200);
            color: var(--gray-700);
            border: none;
            border-radius: 0.5rem;
            font-size: 1rem;
            cursor: pointer;
            transition: all 0.3s;
        }

        .btn-cancel:hover {
            background: var(--gray-300);
        }

        .alert {
            padding: 1rem;
            border-radius: 0.5rem;
            margin-bottom: 1rem;
        }

        .alert-success {
            background: var(--green-100);
            color: var(--green-600);
        }

        .alert-error {
            background: #fee2e2;
            color: #dc2626;
        }

        /* Related Products */
        .related-products {
            padding: 4rem 0;
            background: var(--gray-50);
        }

        .section-title {
            text-align: center;
            font-size: 2rem;
            margin-bottom: 3rem;
            color: var(--gray-900);
        }

        .products-grid {
            display: grid;
            grid-template-columns: 1fr;
            gap: 2rem;
        }

        @media (min-width: 640px) {
            .products-grid {
                grid-template-columns: repeat(2, 1fr);
            }
        }

        @media (min-width: 1024px) {
            .products-grid {
                grid-template-columns: repeat(4, 1fr);
            }
        }

        .product-card {
            background: white;
            border-radius: 1rem;
            overflow: hidden;
            box-shadow: 0 4px 6px rgba(0, 0, 0, 0.1);
            transition: all 0.3s;
            border: 2px solid transparent;
            text-decoration: none;
            color: inherit;
            display: block;
        }

        .product-card:hover {
            transform: translateY(-5px);
            box-shadow: 0 10px 15px rgba(0, 0, 0, 0.15);
            border-color: var(--blue-600);
        }

        .product-card-image {
            position: relative;
            width: 100%;
            padding-top: 100%;
            background: var(--gray-100);
            overflow: hidden;
        }

        .product-card-image img {
            position: absolute;
            top: 0;
            left: 0;
            width: 100%;
            height: 100%;
            object-fit: cover;
            transition: transform 0.3s;
        }

        .product-card:hover .product-card-image img {
            transform: scale(1.05);
        }

        .product-card-content {
            padding: 1.5rem;
        }

        .product-card-title {
            font-size: 1.125rem;
            margin-bottom: 0.5rem;
            color: var(--gray-900);
        }

        .product-card-price {
            font-size: 1.25rem;
            color: var(--blue-600);
        }

        /* ============================================
           FOOTER STYLES
           ============================================ */

        footer {
            background: #1f2937;
            color: #d1d5db;
            padding: 3rem 0 1.5rem;
        }

        .footer-container {
            max-width: 1280px;
            margin: 0 auto;
            padding: 0 1rem;
        }

        .footer-main {
            display: grid;
            grid-template-columns: 1fr;
            gap: 2rem;
            margin-bottom: 3rem;
        }

        @media (min-width: 768px) {
            .footer-main {
                grid-template-columns: 2fr 1fr 1fr 1fr;
                gap: 3rem;
            }
        }

        /* Brand Column */
        .footer-brand {
            margin-bottom: 0;
        }

        .footer-brand-logo {
            height: 50px;
            width: auto;
            margin-bottom: 1rem;
        }

        .footer-brand-description {
            color: #9ca3af;
            line-height: 1.6;
            margin-bottom: 1.5rem;
            font-size: 0.9375rem;
        }

        .footer-contact-info {
            display: flex;
            flex-direction: column;
            gap: 0.75rem;
        }

        .footer-contact-item {
            display: flex;
            align-items: center;
            gap: 0.75rem;
            color: #9ca3af;
            text-decoration: none;
            transition: color 0.3s;
            font-size: 0.9375rem;
        }

        .footer-contact-item:hover {
            color: #ffffff;
        }

        .footer-contact-item svg {
            flex-shrink: 0;
            color: #3b82f6;
        }

        /* Links Columns */
        .footer-links-column h4 {
            color: #ffffff;
            font-size: 1rem;
            font-weight: 500;
            margin-bottom: 1rem;
        }

        .footer-links-list {
            list-style: none;
            padding: 0;
            margin: 0;
            display: flex;
            flex-direction: column;
            gap: 0.75rem;
        }

        .footer-links-list a {
            color: #9ca3af;
            text-decoration: none;
            transition: color 0.3s;
            font-size: 0.9375rem;
        }

        .footer-links-list a:hover {
            color: #ffffff;
        }

        /* Footer Bottom */
        .footer-bottom {
            border-top: 1px solid #374151;
            padding-top: 2rem;
            display: flex;
            flex-direction: column;
            align-items: center;
            gap: 1rem;
        }

        @media (min-width: 768px) {
            .footer-bottom {
                flex-direction: row;
                justify-content: space-between;
            }
        }

        .footer-copyright {
            color: #9ca3af;
            font-size: 0.875rem;
        }

        .footer-social {
            display: flex;
            align-items: center;
            gap: 1rem;
        }

        .footer-social-link {
            width: 40px;
            height: 40px;
            background: #374151;
            border-radius: 50%;
            display: flex;
            align-items: center;
            justify-content: center;
            color: #9ca3af;
            transition: all 0.3s;
            text-decoration: none;
        }

        .footer-social-link:hover {
            background: #2563eb;
            color: #ffffff;
        }