/* Base Styles */
:root {
    --primary-color: #2c3e50;
    --secondary-color: #e74c3c;
    --text-color: #333;
    --light-gray: #f5f5f5;
    --border-color: #ddd;
}

* {
    margin: 0;
    padding: 0;
    box-sizing: border-box;
}

body {
    font-family: 'Segoe UI', Tahoma, Geneva, Verdana, sans-serif;
    line-height: 1.6;
    color: var(--text-color);
}

/* Legal Pages Styles */
main.container h1 {
    color: var(--primary-color);
    margin-bottom: 1rem;
    border-bottom: 2px solid var(--secondary-color);
    padding-bottom: 0.5rem;
}

main.container h2 {
    color: var(--primary-color);
    margin: 2rem 0 1rem 0;
}

main.container ul, main.container ol {
    margin: 1rem 0;
    padding-left: 2rem;
}

main.container li {
    margin: 0.5rem 0;
}

main.container p {
    margin: 1rem 0;
}

.nav-links .active {
    color: var(--secondary-color);
    font-weight: bold;
}

/* Footer Styles */
.site-footer {
    background: var(--primary-color);
    color: white;
    padding: 3rem 0 1rem;
    margin-top: 4rem;
}

.footer-content {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(250px, 1fr));
    gap: 2rem;
    margin-bottom: 2rem;
}

.footer-section h3 {
    color: white;
    margin-bottom: 1rem;
    font-size: 1.5rem;
}

.footer-section h4 {
    color: white;
    margin-bottom: 1rem;
    font-size: 1.1rem;
}

.footer-section ul {
    list-style: none;
    padding: 0;
}

.footer-section ul li {
    margin: 0.5rem 0;
}

.footer-section a {
    color: #ecf0f1;
    text-decoration: none;
    transition: color 0.3s;
}

.footer-section a:hover {
    color: var(--secondary-color);
}

.footer-section p {
    margin: 0.5rem 0;
    display: flex;
    align-items: center;
    gap: 0.5rem;
}

.footer-bottom {
    border-top: 1px solid rgba(255, 255, 255, 0.1);
    padding-top: 1rem;
    text-align: center;
    display: flex;
    justify-content: space-between;
    align-items: center;
    flex-wrap: wrap;
    gap: 1rem;
}

.footer-bottom p {
    margin: 0;
}

.footer-bottom a {
    color: #ecf0f1;
    text-decoration: none;
}

.footer-bottom a:hover {
    color: var(--secondary-color);
}

@media (max-width: 768px) {
    .footer-content {
        grid-template-columns: 1fr;
        text-align: center;
    }
    
    .footer-bottom {
        flex-direction: column;
        text-align: center;
    }
}

/* Payment Styles */
.card-details {
    display: none;
}

.card-details.hidden {
    display: none;
}

.card-details:not(.hidden) {
    display: block;
}

.hero {
    background-image: url('../images/parallax.jpg');
    background-size: cover;
    background-position: center;
    color: white;
    padding: 4rem 0;
    text-align: center;
}

.hero-title {
    font-size: 3rem;
    margin-bottom: 1rem;
    line-height: 1.1;
}

.hero-subtitle {
    font-size: 1.2rem;
    margin-bottom: 2rem;
    opacity: 0.95;
}

.hero-cta {
    background: #fff;
    color: #667eea;
    padding: 0.75rem 1.25rem;
    border-radius: 6px;
    font-weight: 600;
    text-decoration: none;
    display: inline-block;
}

/* Featured section */
.featured-section {
    padding: 3rem 0;
}

.section-title {
    text-align: center;
    margin-bottom: 2rem;
    font-size: 2rem;
}

/* Products grid (basic responsive) */
.products-grid {
    display: grid;
    gap: 1.5rem;
    grid-template-columns: repeat(auto-fit, minmax(220px, 1fr));
}

/* Shared loading primitives */
.skeleton {
    position: relative;
    overflow: hidden;
    background: #e9edf1;
    border-radius: 6px;
}

.skeleton::after {
    content: '';
    position: absolute;
    inset: 0;
    transform: translateX(-100%);
    background: linear-gradient(90deg, transparent, rgba(255, 255, 255, 0.7), transparent);
    animation: skeleton-shimmer 1.25s infinite;
}

@keyframes skeleton-shimmer {
    100% {
        transform: translateX(100%);
    }
}

.skeleton-card {
    pointer-events: none;
    cursor: default;
}

.skeleton-product-image {
    width: 100%;
    height: 250px;
    border-radius: 8px;
}

.skeleton-card-content {
    display: flex;
    flex-direction: column;
    gap: 0.75rem;
    padding: 1.5rem;
}

.skeleton-line {
    width: 100%;
    height: 14px;
}

.skeleton-line-short {
    width: 42%;
}

.skeleton-line-price {
    width: 32%;
    height: 22px;
}

.skeleton-button {
    width: 100%;
    height: 42px;
    margin-top: 0.25rem;
}

.product-card:has(.out-of-stock){
    opacity: 0.5;
    cursor: not-allowed;
    pointer-events: none;
}

.out-of-stock{
    opacity: 0.5;
    color: red;
}

/* Utility: ensure .btn base exists (if not already in file) */
.btn {
    padding: 0.6rem 1rem;
    border: none;
    cursor: pointer;
    border-radius: 6px;
}

/* small screens */
@media (max-width: 480px) {
    .hero-title {
        font-size: 2rem;
    }

    .hero-subtitle {
        font-size: 1rem;
    }
}


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

/* Navigation */
nav {
    background: white;
    box-shadow: 0 2px 10px rgba(0, 0, 0, 0.1);
    padding: 1rem 0;
    position: sticky;
    top: 0;
    z-index: 1000;
}

.nav-container {
    display: flex;
    justify-content: space-between;
    align-items: center;
}

.logo {
    font-size: 1.5rem;
    font-weight: 700;
    color: var(--primary-color);
    text-decoration: none;
}

.nav-links {
    display: flex;
    gap: 2rem;
    list-style: none;
}

.nav-links a {
    text-decoration: none;
    color: var(--text-color);
    font-weight: 500;
    transition: color 0.3s;
}

.nav-links a:hover {
    color: var(--secondary-color);
}

.cart-link {
    position: relative;
}

.cart-count {
    position: absolute;
    top: -8px;
    right: -8px;
    background: var(--secondary-color);
    color: white;
    border-radius: 50%;
    width: 20px;
    height: 20px;
    display: flex;
    align-items: center;
    justify-content: center;
    font-size: 0.7rem;
}

.social-links {
    display: flex;
    gap: 1rem;
    margin-top: 1rem;
}

.social-links a {
    display: flex;
    align-items: center;
    justify-content: center;
    width: 36px;
    height: 36px;
    border-radius: 50%;
    background-color: #f0f0f0;
    color: #333;
    font-size: 1.2rem;
    transition: all 0.3s ease;
}

.social-links a:hover {
    background-color: #6c63ff;
    color: white;
    transform: translateY(-3px);
    box-shadow: 0 4px 8px rgba(0, 0, 0, 0.1);
}

/* Dark mode support */
.dark .social-links a {
    background-color: #2d3748;
    color: #e2e8f0;
}

.dark .social-links a:hover {
    background-color: #6c63ff;
    color: white;
}

/* Buttons */
.btn {
    display: inline-block;
    padding: 0.5rem 1.5rem;
    background: var(--primary-color);
    color: white;
    border: none;
    border-radius: 4px;
    cursor: pointer;
    text-decoration: none;
    transition: background 0.3s;
}

.btn:hover {
    background: #1a252f;
}

.btn-outline {
    background: transparent;
    border: 1px solid var(--primary-color);
    color: var(--primary-color);
}

.btn-outline:hover {
    background: var(--primary-color);
    color: white;
}

/* Product Grid */
.products-grid {
    display: grid;
    grid-template-columns: repeat(auto-fill, minmax(250px, 1fr));
    gap: 2rem;
    padding: 2rem 0;
}

.product-card {
    background: white;
    border-radius: 8px;
    overflow: hidden;
    box-shadow: 0 2px 10px rgba(0, 0, 0, 0.1);
    padding: 1rem;
    transition: transform 0.3s;
}

.product-card:hover {
    transform: translateY(-5px);
}

.product-card img {
    width: 100%;
    height: 200px;
    object-fit: cover;
}

.product-card h3 {
    padding: 1rem 1rem 0.5rem;
    font-size: 1.1rem;
}

.product-card .price {
    padding: 0 1rem 1rem;
    font-weight: 600;
    color: var(--primary-color);
    text-decoration: none;
}

.product-card .original-price {
    font-size: 1rem;
    color: #f60606c4;
    text-decoration: line-through;
    margin-right: 0.5rem;
}

.product-card .decreased {
    font-size: 1.1rem;
    color: #e74c3c;
    font-weight: 700;
    text-decoration: line-through;
    opacity: 0.7;
}

.product-card .btn {
    display: block;
    width: calc(100% - 2rem);
    margin: 0 1rem 1rem;
    text-align: center;
}

/* Footer */
footer {
    background: var(--primary-color);
    color: white;
    padding: 3rem 0 1rem;
    margin-top: 3rem;
}

.footer-content {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(200px, 1fr));
    gap: 2rem;
    margin-bottom: 2rem;
}

.footer-column h3 {
    margin-bottom: 1rem;
    font-size: 1.2rem;
}

.footer-links {
    list-style: none;
}

.footer-links li {
    margin-bottom: 0.5rem;
}

.footer-links a {
    color: #ecf0f1;
    text-decoration: none;
    transition: color 0.3s;
}

.footer-links a:hover {
    color: var(--secondary-color);
}

.footer-bottom {
    text-align: center;
    padding-top: 1rem;
    border-top: 1px solid rgba(255, 255, 255, 0.1);
}

.mobile-menu-btn {
    display: none;
}

/* Responsive */
@media (max-width: 768px) {
    .nav-links {
        display: none;
        position: fixed;
        top: 70px;
        left: 0;
        right: 0;
        background: white;
        flex-direction: column;
        padding: 2rem;
        box-shadow: 0 2px 10px rgba(0,0,0,0.1);
        z-index: 1000;
    }

    .nav-links.active {
        display: flex;
    }

    .mobile-menu-btn {
        display: block;
    }
}

/* Payment Section Styles (for future use) */
.payment-section {
    margin-top: 20px;
    padding: 20px;
    border: 1px solid #ddd;
    border-radius: 8px;
    background: #f9f9f9;
}

.payment-section h3 {
    margin-bottom: 15px;
    color: #333;
}

#payment-element {
    margin-bottom: 15px;
}

.payment-message {
    color: #dc3545;
    font-size: 14px;
    margin-top: 10px;
    min-height: 20px;
}

/* Share Button Styles */
.product-image-container {
    position: relative;
    overflow: hidden;
}

.share-btn {
    position: absolute;
    top: 10px;
    right: 10px;
    background: rgba(255, 255, 255, 0.9);
    border: none;
    border-radius: 50%;
    width: 40px;
    height: 40px;
    display: flex;
    align-items: center;
    justify-content: center;
    cursor: pointer;
    transition: all 0.3s ease;
    z-index: 10;
    opacity: 0;
    transform: translateY(-10px);
}

.product-image-container:hover .share-btn {
    opacity: 1;
    transform: translateY(0);
}

.share-btn:hover {
    background: #fff;
    box-shadow: 0 4px 12px rgba(0,0,0,0.15);
    transform: scale(1.1);
}

.share-btn i {
    font-size: 18px;
    color: #333;
}

/* Animations */
@keyframes slideIn {
    from { 
        opacity: 0;
        transform: translateX(20px);
    }
    to { 
        opacity: 1;
        transform: translateX(0);
    }
}

/* Mobile Responsive */
@media (max-width: 768px) {
    .share-btn {
        width: 35px;
        height: 35px;
        top: 8px;
        right: 8px;
    }
    
    .share-btn i {
        font-size: 16px;
    }
}

/* Banner Section */
.banner-section {
    padding: 4rem 0;
    background: url('../../products/banner.jpeg');
    background-size: cover;
    background-position: center;
    background-attachment: scroll;
    background-repeat: no-repeat;
    color: white;
    min-height: 400px;
    display: flex;
    align-items: center;
    position: relative;
    transition: transform 0.3s ease-out;
}

.banner-content {
    display: flex;
    align-items: center;
    gap: 3rem;
    justify-content: space-between;
}

.banner-text {
    flex: 1;
    max-width: 500px;
}

.banner-text h2 {
    font-size: 2.5rem;
    font-weight: 700;
    margin-bottom: 1rem;
    color: white;
}

.banner-text p {
    font-size: 1.2rem;
    margin-bottom: 2rem;
    opacity: 0.9;
    line-height: 1.6;
}

.btn-banner {
    background: white;
    color: #667eea;
    font-weight: 600;
    padding: 0.8rem 2rem;
    border-radius: 50px;
    text-decoration: none;
    transition: all 0.3s ease;
    display: inline-block;
}

.btn-banner:hover {
    transform: translateY(-2px);
    box-shadow: 0 10px 25px rgba(0,0,0,0.2);
    background: #f8f9fa;
}

.banner-image {
    flex: 1;
    max-width: 400px;
}

.banner-image img {
    width: 100%;
    height: auto;
    border-radius: 15px;
    box-shadow: 0 20px 40px rgba(0,0,0,0.2);
    transition: transform 0.3s ease;
}

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

/* Mobile Responsive */
@media (max-width: 768px) {
    .banner-content {
        flex-direction: column;
        text-align: center;
        gap: 2rem;
    }
    
    .banner-text {
        max-width: 100%;
    }
    
    .banner-text h2 {
        font-size: 2rem;
    }
    
    .banner-text p {
        font-size: 1.1rem;
    }
    
    .banner-image {
        max-width: 100%;
    }
}

@media (max-width: 480px) {
    .banner-section {
        padding: 3rem 0;
    }
    
    .banner-text h2 {
        font-size: 1.8rem;
    }
    
    .banner-text p {
        font-size: 1rem;
    }
}

/* Product Slider Styles */
.all-products-section {
    padding: 3rem 0;
    margin: 3rem auto;
    text-align: center;
    max-width: 1200px;
}

.product-slider-container {
    position: relative;
    overflow: hidden;
    border-radius: 12px;
}

.product-slider {
    display: flex;
    gap: 1.5rem;
    overflow-x: auto;
    scroll-behavior: smooth;
    padding: 1rem 0;
    scrollbar-width: thin;
    scrollbar-color: #ddd #f5f5f5;
}

.product-slider::-webkit-scrollbar {
    height: 8px;
}

.product-slider::-webkit-scrollbar-track {
    background: #f5f5f5;
    border-radius: 4px;
}

.product-slider::-webkit-scrollbar-thumb {
    background: #ddd;
    border-radius: 4px;
}

.product-slider::-webkit-scrollbar-thumb:hover {
    background: #ccc;
}

.slider-controls {
    position: absolute;
    top: 50%;
    transform: translateY(-50%);
    width: 100%;
    display: flex;
    justify-content: space-between;
    pointer-events: none;
    z-index: 10;
}

.slider-btn {
    background: rgba(255, 255, 255, 0.9);
    border: none;
    width: 50px;
    height: 50px;
    border-radius: 50%;
    display: flex;
    align-items: center;
    justify-content: center;
    cursor: pointer;
    box-shadow: 0 2px 10px rgba(0, 0, 0, 0.1);
    transition: all 0.3s ease;
    pointer-events: all;
    font-size: 1.2rem;
    color: var(--primary-color);
}

.slider-btn:hover {
    background: white;
    box-shadow: 0 4px 20px rgba(0, 0, 0, 0.15);
    transform: scale(1.1);
}

.prev-btn {
    margin-left: 1rem;
}

.next-btn {
    margin-right: 1rem;
}

.slider-product-card {
    flex: 0 0 280px;
    background: white;
    border-radius: 12px;
    overflow: hidden;
    box-shadow: 0 4px 15px rgba(0, 0, 0, 0.1);
    transition: all 0.3s ease;
    cursor: pointer;
}

.slider-product-card:hover {
    transform: translateY(-8px);
    box-shadow: 0 8px 25px rgba(0, 0, 0, 0.15);
}

.slider-product-card img {
    width: 100%;
    height: 260px;
    object-fit: contain;
    transition: transform 0.3s ease;
    background: #f8f8f8;
}

.slider-skeleton {
    cursor: default;
    pointer-events: none;
}

.skeleton-slider-image {
    width: 100%;
    height: 260px;
}

.slider-skeleton .product-info {
    display: flex;
    flex-direction: column;
    gap: 0.8rem;
}

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

.slider-product-card .product-info {
    padding: 1.5rem;
}

.slider-product-card h3 {
    font-size: 1.1rem;
    margin-bottom: 0.5rem;
    color: var(--text-color);
}

.slider-product-card .color-info {
    font-size: 0.9rem;
    color: #666;
    margin-bottom: 0.5rem;
    display: flex;
    align-items: center;
    gap: 0.5rem;
}

.color-dot {
    width: 16px;
    height: 16px;
    border-radius: 50%;
    border: 2px solid #ddd;
    display: inline-block;
}

.slider-product-card .price {
    font-size: 1.2rem;
    font-weight: 600;
    color: var(--primary-color);
}

.slider-product-card .original-price {
    font-size: 1rem;
    color: #999;
    text-decoration: line-through;
    margin-left: 0.5rem;
}

/* Search Styles */
.search-filter {
    display: flex;
    align-items: center;
    gap: 0.5rem;
    flex: 1;
    max-width: 400px;
}

.search-input {
    flex: 1;
    padding: 0.75rem 1rem;
    border: 2px solid var(--border-color);
    border-radius: 8px;
    font-size: 1rem;
    transition: border-color 0.3s ease;
}

.search-input:focus {
    outline: none;
    border-color: var(--primary-color);
}

.search-btn {
    padding: 0.75rem;
    background: var(--primary-color);
    color: white;
    border: none;
    border-radius: 8px;
    cursor: pointer;
    transition: background 0.3s ease;
}

.search-btn:hover {
    background: #1a252f;
}

.filters {
    display: flex;
    gap: 1rem;
    margin-bottom: 2rem;
    flex-wrap: wrap;
    align-items: center;
}

/* Responsive Image Fixes */
.product-card img {
    width: 100%;
    height: 260px;
    object-fit: contain;
    object-position: center;
    background: #f8f8f8;
    image-rendering: -webkit-optimize-contrast;
    image-rendering: crisp-edges;
}

@media (max-width: 768px) {
    .product-card img {
        height: 220px;
    }
    
    .slider-product-card {
        flex: 0 0 240px;
    }
    
    .slider-product-card img {
        height: 220px;
        object-fit: contain;
        background: #f8f8f8;
    }
}

@media (max-width: 480px) {
    .product-card img {
        height: 190px;
    }
    
    .slider-product-card {
        flex: 0 0 200px;
    }
    
    .slider-product-card img {
        height: 190px;
        object-fit: contain;
        background: #f8f8f8;
    }
    
    .filters {
        flex-direction: column;
        align-items: stretch;
    }
    
    .search-filter {
        max-width: none;
    }
    
    .slider-btn {
        width: 40px;
        height: 40px;
        font-size: 1rem;
    }
    
    .prev-btn {
        margin-left: 0.5rem;
    }
    
    .next-btn {
        margin-right: 0.5rem;
    }
}