﻿/*
        PROFESSIONAL & UI/UX IMPROVEMENTS (Inherited from previous step):
        1. Refined box-shadows for a softer, premium feel.
        2. Updated primary CTA button color to a rich Indigo gradient.
        3. Added subtle borders for definition.
        */
.carousel-section {
    max-width: 1400px;
    margin: 0 auto 5rem auto; /* Added extra bottom margin for separation */
    background: white;
    border-radius: 24px;
    padding: 60px 40px;
    /* Updated shadow for a softer, more professional lift */
    box-shadow: 0 10px 30px rgba(0, 0, 0, 0.05), 0 20px 50px rgba(0, 0, 0, 0.08);
}

carousel-section .section-header {
    display: block;
    text-align: center;
    margin-bottom: 50px;
}

.section-title {
    font-size: 2.5rem;
    font-weight: 700;
    /* Subtle dark color change for modern look */
    color: #1f2937;
    margin-bottom: 12px;
    letter-spacing: -0.02em;
}

.section-subtitle {
    font-size: 1.1rem;
    color: #6b7280;
    font-weight: 400;
}

.carousel-container {
    position: relative;
    overflow: hidden;
    padding: 20px 0;
}

/* Note: .carousel-track class is shared, but IDs are unique in HTML */
.carousel-track {
    display: flex;
    gap: 30px;
    transition: transform 0.6s cubic-bezier(0.4, 0, 0.2, 1);
    padding: 10px;
}

.product-card {
    min-width: 320px;
    background: white;
    border-radius: 20px;
    padding: 20px;
    box-shadow: 0 1px 3px rgba(0, 0, 0, 0.05), 0 10px 15px rgba(0, 0, 0, 0.05);
    border: 1px solid #e5e7eb;
    transition: all 0.4s cubic-bezier(0.4, 0, 0.2, 1);
    position: relative;
    /*    cursor: pointer;*/
    overflow: hidden; /* مهم للسلايدر */
}

    .product-card:hover {
        transform: translateY(-8px);
        box-shadow: 0 8px 30px rgba(0, 0, 0, 0.12);
    }

.product-image-wrapper {
    position: relative;
    width: 100%;
    height: 280px;
    background: #f8f9fa;
    border-radius: 16px;
    overflow: hidden; /* مهم جدًا */
    margin-bottom: 20px;
}

.product-images-slider {
    display: flex;
    width: 100%;
    height: 100%;
    transition: transform 0.5s ease-in-out;
}

.product-image {
    width: 100%;
    height: 100%;
    flex-shrink: 0;
    object-fit: cover;
    transition: transform 0.5s ease;
}

.product-card:hover .product-image {
    transform: scale(1.08);
}

.image-dots {
    position: absolute;
    bottom: 8px;
    left: 50%;
    transform: translateX(-50%);
    display: flex;
    gap: 6px;
    z-index: 3;
}

.image-dot {
    width: 6px;
    height: 6px;
    border-radius: 50%;
    background: rgba(0, 0, 0, 0.5);
    transition: all 0.3s ease;
    cursor: pointer;
}

    .image-dot.active {
        background: rgb(13, 0, 250);
        width: 20px;
        border-radius: 3px;
    }


.discount-badge {
    position: absolute;
    top: 12px;
    left: 12px;
    background: linear-gradient(135deg, #ef4444 0%, #dc2626 100%);
    color: white;
    padding: 8px 14px;
    border-radius: 12px;
    font-weight: 700;
    font-size: 0.9rem;
    box-shadow: 0 4px 12px rgba(239, 68, 68, 0.6);
    z-index: 2;
}

.sales-label {
    position: absolute;
    top: 12px;
    right: 12px;
    background: linear-gradient(135deg, #3b82f6 0%, #2563eb 100%);
    color: white;
    padding: 8px 14px;
    border-radius: 12px;
    font-weight: 600;
    font-size: 0.85rem;
    box-shadow: 0 4px 12px rgba(59, 130, 246, 0.4);
    z-index: 2;
}


.favorite-btn {
    position: absolute;
    bottom: 12px;
    right: 12px;
    width: 44px;
    height: 44px;
    background: white;
    /* Added subtle border */
    border: 1px solid #f3f4f6;
    border-radius: 50%;
    display: flex;
    align-items: center;
    justify-content: center;
    cursor: pointer;
    box-shadow: 0 4px 12px rgba(0, 0, 0, 0.15);
    transition: all 0.3s ease;
    z-index: 2;
}

    .favorite-btn:hover {
        transform: scale(1.1);
        background: #fee;
    }

    .favorite-btn svg {
        width: 20px;
        height: 20px;
        fill: none;
        stroke: #ef4444;
        stroke-width: 2;
        transition: all 0.3s ease;
    }

    .favorite-btn.active svg {
        fill: #ef4444;
    }

.product-info {
    padding: 0 4px;
}

.product-title {
    font-size: 1.15rem;
    font-weight: 600;
    color: #1f2937;
    margin-bottom: 12px;
    line-height: 1.4;
    display: -webkit-box;
    -webkit-line-clamp: 2;
    -webkit-box-orient: vertical;
    overflow: hidden;
}

.price-container {
    display: flex;
    align-items: center;
    gap: 12px;
    margin-bottom: 16px;
}

.old-price {
    font-size: 1rem;
    color: #9ca3af;
    text-decoration: line-through;
    font-weight: 400;
}

.new-price {
    font-size: 1.5rem;
    color: #1a1a1a;
    font-weight: 700;
}

.add-to-cart-btn, .view-product-btn {
    width: 100%;
    background: linear-gradient(135deg, #2a3446 0%, #1b2432 100%); /* Professional soft gradient */
    color: white;
    border: none;
    padding: 14px 24px;
    border-radius: 12px;
    font-size: 1rem;
    font-weight: 600;
    cursor: pointer;
    transition: all 0.3s ease;
    position: relative;
    overflow: hidden;
    letter-spacing: 0.3px;
    text-decoration: none;
}

    /* Premium soft shine effect */
    .add-to-cart-btn::before, .view-product-btn::before {
        content: '';
        position: absolute;
        top: 0;
        left: -100%;
        width: 100%;
        height: 100%;
        background: linear-gradient( 90deg, transparent, rgba(255, 255, 255, 0.15), transparent );
        transition: left 0.6s ease;
    }

    .add-to-cart-btn:hover::before, .view-product-btn:hover::before {
        left: 100%;
    }

    /* Hover effect: lighter, modern elevation */
    .add-to-cart-btn:hover, .view-product-btn:hover {
        transform: translateY(-3px);
        background: linear-gradient(135deg, #34425a 0%, #1f2938 100%); /* Brighter on hover */
        box-shadow: 0 10px 24px rgba(27, 36, 50, 0.45);
    }

    /* Tap feel */
    .add-to-cart-btn:active, .view-product-btn:active {
        transform: translateY(0);
        box-shadow: 0 4px 12px rgba(27, 36, 50, 0.25);
    }

/* Note: .carousel-nav class is shared, but IDs in the HTML are unique */
.carousel-nav {
    position: absolute;
    top: 50%;
    transform: translateY(-50%);
    width: 50px;
    height: 50px;
    background: white;
    border: none;
    border-radius: 50%;
    display: flex;
    align-items: center;
    justify-content: center;
    cursor: pointer;
    box-shadow: 0 6px 20px rgba(0, 0, 0, 0.1); /* Refined shadow */
    transition: all 0.3s ease;
    z-index: 10;
    margin-inline: .9375rem;
}

    .carousel-nav:hover {
        transform: translateY(-50%) scale(1.1);
        box-shadow: 0 6px 25px rgba(0, 0, 0, 0.2);
    }

    .carousel-nav.prev {
        left: -25px;
    }

    .carousel-nav.next {
        right: -25px;
    }

    .carousel-nav svg {
        width: 24px;
        height: 24px;
        fill: #1a1a1a;
    }

.carousel-indicators {
    display: flex;
    justify-content: center;
    gap: 10px;
    margin-top: 40px;
}

.indicator {
    width: 40px;
    height: 4px;
    background: #e5e7eb;
    border-radius: 2px;
    cursor: pointer;
    transition: all 0.3s ease;
}

    .indicator.active {
        /* Keep blue for contrast with the new primary button color */
        background: linear-gradient(135deg, #3b82f6 0%, #2563eb 100%);
        width: 60px;
    }

@media (max-width: 768px) {
    .carousel-section {
        padding: 40px 20px;
    }

    .section-title {
        font-size: 2rem;
    }

    .product-card {
        min-width: 280px;
    }

    .carousel-nav {
        width: 40px;
        height: 40px;
    }

        .carousel-nav.prev {
            left: -10px;
        }

        .carousel-nav.next {
            right: -10px;
        }
}

@media (max-width: 480px) {
    .product-card {
        min-width: 260px;
    }

    .section-title {
        font-size: 1.75rem;
    }

    .carousel-track {
        gap: 15px;
    }
}



body {
    font-family: 'Segoe UI', Tahoma, Geneva, Verdana, sans-serif;
    background: linear-gradient(135deg, #f8f9fa 0%, #e9ecef 100%);
    color: #1f2937;
    padding-top: 80px;
}


/* Breadcrumb */
.breadcrumb {
    display: flex;
    gap: 8px;
    margin-bottom: 30px;
    font-size: 0.95rem;
    color: #6b7280;
    animation: fadeIn 0.5s ease;
}

    .breadcrumb a {
        color: #3b82f6;
        text-decoration: none;
        transition: color 0.3s;
    }

        .breadcrumb a:hover {
            color: #2563eb;
        }

/* Product Main Section */
.product-detail {
    display: grid;
    grid-template-columns: 1fr 1fr;
    gap: 60px;
    background: white;
    border-radius: 24px;
    padding: 50px;
    box-shadow: 0 10px 30px rgba(0, 0, 0, 0.06);
    margin-bottom: 60px;
    animation: fadeInUp 0.8s ease;
}

/* Image Gallery */
.image-gallery {
    position: sticky;
    top: 100px;
    height: fit-content;
}

.main-image-container {
    position: relative;
    width: 100%;
    height: 500px;
    background: #f8f9fa;
    border-radius: 20px;
    overflow: hidden;
    margin-bottom: 20px;
}

.main-image {
    width: 100%;
    height: 100%;
    object-fit: cover;
    transition: transform 0.6s ease;
}

.main-image-container:hover .main-image {
    transform: scale(1.1);
}

.image-badges {
    position: absolute;
    top: 20px;
    left: 20px;
    display: flex;
    flex-direction: column;
    gap: 10px;
}

.badge {
    padding: 10px 18px;
    border-radius: 12px;
    font-weight: 700;
    font-size: 0.9rem;
    color: white;
    box-shadow: 0 4px 12px rgba(0, 0, 0, 0.2);
}

.badge-discount {
    background: linear-gradient(135deg, #ef4444 0%, #dc2626 100%);
}

.badge-stock {
    background: linear-gradient(135deg, #10b981 0%, #059669 100%);
}

.image-thumbnails {
    display: grid;
    grid-template-columns: repeat(4, 1fr);
    gap: 15px;
}

.thumbnail {
    width: 100%;
    height: 100px;
    border-radius: 12px;
    overflow: hidden;
    cursor: pointer;
    border: 3px solid transparent;
    transition: all 0.3s ease;
}

    .thumbnail:hover {
        border-color: #3b82f6;
    }

    .thumbnail.active {
        border-color: #2563eb;
        box-shadow: 0 0 0 4px rgba(37, 99, 235, 0.1);
    }

    .thumbnail img {
        width: 100%;
        height: 100%;
        object-fit: cover;
    }

/* Product Info */
.product-info {
    display: flex;
    flex-direction: column;
}

.product-meta {
    display: flex;
    gap: 15px;
    margin-bottom: 20px;
    flex-wrap: wrap;
}

.meta-item {
    display: flex;
    align-items: center;
    gap: 8px;
    font-size: 0.95rem;
    color: #6b7280;
}

    .meta-item i {
        color: #3b82f6;
    }

.rating {
    display: flex;
    align-items: center;
    gap: 8px;
}

.stars {
    color: #fbbf24;
}

.product-title {
    font-size: 2.5rem;
    font-weight: 700;
    color: #1f2937;
    margin-bottom: 20px;
    line-height: 1.2;
}

.price-section {
    background: linear-gradient(135deg, #f8f9fa 0%, #e9ecef 100%);
    padding: 25px;
    border-radius: 16px;
    margin-bottom: 30px;
}

.price-wrapper {
    display: flex;
    align-items: center;
    gap: 20px;
    margin-bottom: 15px;
}

.current-price {
    font-size: 3rem;
    font-weight: 700;
    color: #1f2937;
}

.original-price {
    font-size: 1.5rem;
    color: #9ca3af;
    text-decoration: line-through;
}

.savings {
    background: #10b981;
    color: white;
    padding: 6px 12px;
    border-radius: 8px;
    font-weight: 600;
    font-size: 0.9rem;
}

.price-note {
    font-size: 0.95rem;
    color: #6b7280;
}

.product-description {
    font-size: 1.1rem;
    line-height: 1.8;
    color: #4b5563;
    margin-bottom: 30px;
}

body {
    font-family: 'Segoe UI', Tahoma, Geneva, Verdana, sans-serif;
    background: linear-gradient(135deg, #f8f9fa 0%, #e9ecef 100%);
    color: #1f2937;
    padding-top: 80px;
}


/* Breadcrumb */
.breadcrumb {
    display: flex;
    gap: 8px;
    margin-bottom: 30px;
    font-size: 0.95rem;
    color: #6b7280;
    animation: fadeIn 0.5s ease;
}

    .breadcrumb a {
        color: #3b82f6;
        text-decoration: none;
        transition: color 0.3s;
    }

        .breadcrumb a:hover {
            color: #2563eb;
        }

/* Product Main Section */
.product-detail {
    display: grid;
    grid-template-columns: 1fr 1fr;
    gap: 60px;
    background: white;
    border-radius: 24px;
    padding: 50px;
    box-shadow: 0 10px 30px rgba(0, 0, 0, 0.06);
    margin-bottom: 60px;
    animation: fadeInUp 0.8s ease;
}

/* Image Gallery */
.image-gallery {
    position: sticky;
    top: 100px;
    height: fit-content;
}

.main-image-container {
    position: relative;
    width: 100%;
    height: 500px;
    background: #f8f9fa;
    border-radius: 20px;
    overflow: hidden;
    margin-bottom: 20px;
}

.main-image {
    width: 100%;
    height: 100%;
    object-fit: cover;
    transition: transform 0.6s ease;
}

.main-image-container:hover .main-image {
    transform: scale(1.1);
}

.image-badges {
    position: absolute;
    top: 20px;
    left: 20px;
    display: flex;
    flex-direction: column;
    gap: 10px;
}

.badge {
    padding: 10px 18px;
    border-radius: 12px;
    font-weight: 700;
    font-size: 0.9rem;
    color: white;
    box-shadow: 0 4px 12px rgba(0, 0, 0, 0.2);
}

.badge-discount {
    background: linear-gradient(135deg, #ef4444 0%, #dc2626 100%);
}

.badge-stock {
    background: linear-gradient(135deg, #10b981 0%, #059669 100%);
}

.image-thumbnails {
    display: grid;
    grid-template-columns: repeat(4, 1fr);
    gap: 15px;
}

.thumbnail {
    width: 100%;
    height: 100px;
    border-radius: 12px;
    overflow: hidden;
    cursor: pointer;
    border: 3px solid transparent;
    transition: all 0.3s ease;
}

    .thumbnail:hover {
        border-color: #3b82f6;
    }

    .thumbnail.active {
        border-color: #2563eb;
        box-shadow: 0 0 0 4px rgba(37, 99, 235, 0.1);
    }

    .thumbnail img {
        width: 100%;
        height: 100%;
        object-fit: cover;
    }

/* Product Info */
.product-info {
    display: flex;
    flex-direction: column;
}

.product-meta {
    display: flex;
    gap: 15px;
    margin-bottom: 20px;
    flex-wrap: wrap;
}

.meta-item {
    display: flex;
    align-items: center;
    gap: 8px;
    font-size: 0.95rem;
    color: #6b7280;
}

    .meta-item i {
        color: #3b82f6;
    }

.rating {
    display: flex;
    align-items: center;
    gap: 8px;
}

.stars {
    color: #fbbf24;
}

.product-title {
    font-size: 2.5rem;
    font-weight: 700;
    color: #1f2937;
    margin-bottom: 20px;
    line-height: 1.2;
}

.price-section {
    background: linear-gradient(135deg, #f8f9fa 0%, #e9ecef 100%);
    padding: 25px;
    border-radius: 16px;
    margin-bottom: 30px;
}

.price-wrapper {
    display: flex;
    align-items: center;
    gap: 20px;
    margin-bottom: 15px;
}

.current-price {
    font-size: 3rem;
    font-weight: 700;
    color: #1f2937;
}

.original-price {
    font-size: 1.5rem;
    color: #9ca3af;
    text-decoration: line-through;
}

.savings {
    background: #10b981;
    color: white;
    padding: 6px 12px;
    border-radius: 8px;
    font-weight: 600;
    font-size: 0.9rem;
}

.price-note {
    font-size: 0.95rem;
    color: #6b7280;
}

.product-description {
    font-size: 1.1rem;
    line-height: 1.8;
    color: #4b5563;
    margin-bottom: 30px;
}

/* Quantity & Actions */
.action-section {
    display: flex;
    flex-direction: column;
    gap: 20px;
    margin-bottom: 30px;
}

.quantity-selector {
    display: flex;
    align-items: center;
    gap: 20px;
}

.quantity-label {
    font-weight: 600;
    color: #374151;
}

.quantity-controls {
    display: flex;
    align-items: center;
    gap: 0;
    border: 2px solid #e5e7eb;
    border-radius: 12px;
    overflow: hidden;
}

.quantity-btn {
    background: #f9fafb;
    border: none;
    width: 50px;
    height: 50px;
    font-size: 1.3rem;
    cursor: pointer;
    transition: all 0.3s ease;
    color: #374151;
    border-radius: 0;
}

    .quantity-btn:hover {
        background: #e5e7eb;
    }

.quantity-input {
    border: none;
    width: 70px;
    height: 50px;
    text-align: center;
    font-size: 1.2rem;
    font-weight: 600;
    background: white;
}

.action-buttons {
    display: flex;
    gap: 15px;
}

.btn {
    flex: 1;
    padding: 18px 32px;
    border: none;
    border-radius: 14px;
    font-size: 1.1rem;
    font-weight: 600;
    cursor: pointer;
    transition: all 0.3s ease;
    position: relative;
    overflow: hidden;
    display: flex;
    align-items: center;
    justify-content: center;
    gap: 10px;
}

.btn-primary {
    background: linear-gradient(135deg, #2a3446 0%, #1b2432 100%);
    color: white;
}

    .btn-primary::before {
        content: '';
        position: absolute;
        top: 0;
        left: -100%;
        width: 100%;
        height: 100%;
        background: linear-gradient(90deg, transparent, rgba(255, 255, 255, 0.15), transparent);
        transition: left 0.6s ease;
    }

    .btn-primary:hover::before {
        left: 100%;
    }

    .btn-primary:hover {
        transform: translateY(-3px);
        box-shadow: 0 10px 24px rgba(27, 36, 50, 0.45);
    }

.btn-secondary {
    background: white;
    color: #1f2937;
    border: 2px solid #e5e7eb;
}

    .btn-secondary:hover {
        border-color: #ef4444;
        color: #ef4444;
        transform: translateY(-2px);
    }

/* Features */
.features-section {
    display: grid;
    grid-template-columns: repeat(2, 1fr);
    gap: 15px;
    margin-bottom: 30px;
}

.feature-item {
    display: flex;
    align-items: center;
    gap: 12px;
    padding: 15px;
    background: #f9fafb;
    border-radius: 12px;
    border: 1px solid #e5e7eb;
}

.feature-icon {
    width: 40px;
    height: 40px;
    background: linear-gradient(135deg, #3b82f6 0%, #2563eb 100%);
    border-radius: 10px;
    display: flex;
    align-items: center;
    justify-content: center;
    color: white;
}

.feature-text {
    font-size: 0.95rem;
    font-weight: 500;
    color: #374151;
}

/* Specifications */
.specs-section {
    background: white;
    border-radius: 24px;
    padding: 50px;
    box-shadow: 0 10px 30px rgba(0, 0, 0, 0.06);
    margin-bottom: 60px;
    animation: fadeInUp 1s ease;
}

.section-title {
    font-size: 2rem;
    font-weight: 700;
    margin-bottom: 30px;
    color: #1f2937;
}

.specs-grid {
    display: grid;
    grid-template-columns: repeat(2, 1fr);
    gap: 20px;
}

.spec-item {
    display: flex;
    justify-content: space-between;
    padding: 20px;
    background: #f9fafb;
    border-radius: 12px;
    border-left: 4px solid #3b82f6;
}

.spec-label {
    font-weight: 600;
    color: #374151;
}

.spec-value {
    color: #6b7280;
}

/* Related Products */
.related-section {
    animation: fadeInUp 1.2s ease;
}

.related-title {
    font-size: 2rem;
    font-weight: 700;
    margin-bottom: 40px;
    text-align: center;
    color: #1f2937;
}

.related-grid {
    display: grid;
    grid-template-columns: repeat(auto-fill, minmax(280px, 1fr));
    gap: 30px;
}

/* Related product cards - matching style */
.related-card {
    background: white;
    border-radius: 20px;
    padding: 20px;
    box-shadow: 0 1px 3px rgba(0, 0, 0, 0.05), 0 10px 15px rgba(0, 0, 0, 0.05);
    border: 1px solid #e5e7eb;
    transition: all 0.4s cubic-bezier(0.4, 0, 0.2, 1);
    cursor: pointer;
}

    .related-card:hover {
        transform: translateY(-8px);
        box-shadow: 0 8px 30px rgba(0, 0, 0, 0.12);
    }

.related-image {
    width: 100%;
    height: 200px;
    background: #f8f9fa;
    border-radius: 16px;
    overflow: hidden;
    margin-bottom: 15px;
}

    .related-image img {
        width: 100%;
        height: 100%;
        object-fit: cover;
        transition: transform 0.5s ease;
    }

.related-card:hover .related-image img {
    transform: scale(1.1);
}

.related-info h3 {
    font-size: 1rem;
    margin-bottom: 10px;
    color: #1f2937;
}

.related-price {
    font-size: 1.3rem;
    font-weight: 700;
    color: #1f2937;
}

/* Animations */
@keyframes fadeIn {
    from {
        opacity: 0;
    }

    to {
        opacity: 1;
    }
}

@keyframes fadeInUp {
    from {
        opacity: 0;
        transform: translateY(30px);
    }

    to {
        opacity: 1;
        transform: translateY(0);
    }
}

/* Responsive */
@media (max-width: 1024px) {
    .product-detail {
        grid-template-columns: 1fr;
        gap: 40px;
        padding: 40px 30px;
    }

    .image-gallery {
        position: static;
    }

    .main-image-container {
        height: 400px;
    }

    .specs-grid {
        grid-template-columns: 1fr;
    }

    .specs-section,
    .product-detail {
        padding: 40px 30px;
    }
}

@media (max-width: 768px) {
    body {
        padding-top: 70px;
    }

    .header-placeholder {
        height: 70px;
        font-size: 1.3rem;
    }

    .container {
        padding: 30px 15px;
    }

    .breadcrumb {
        font-size: 0.85rem;
        flex-wrap: wrap;
    }

    .product-detail {
        padding: 30px 20px;
        margin-bottom: 40px;
    }

    .main-image-container {
        height: 300px;
    }

    .image-thumbnails {
        grid-template-columns: repeat(4, 1fr);
        gap: 10px;
    }

    .thumbnail {
        height: 70px;
    }

    .product-meta {
        flex-direction: column;
        gap: 10px;
        align-items: flex-start;
    }

    .product-title {
        font-size: 1.75rem;
        margin-bottom: 15px;
    }

    .price-section {
        padding: 20px;
        margin-bottom: 25px;
    }

    .price-wrapper {
        flex-direction: column;
        align-items: flex-start;
        gap: 10px;
    }

    .current-price {
        font-size: 2.2rem;
    }

    .original-price {
        font-size: 1.3rem;
    }

    .product-description {
        font-size: 1rem;
        margin-bottom: 25px;
    }

    .action-section {
        gap: 15px;
        margin-bottom: 25px;
    }

    .quantity-selector {
        flex-direction: column;
        align-items: flex-start;
        width: 100%;
    }

    .quantity-controls {
        width: 100%;
    }

    .quantity-btn {
        flex: 1;
    }

    .quantity-input {
        flex: 1;
    }

    .action-buttons {
        flex-direction: column;
        gap: 12px;
    }

    .btn {
        padding: 16px 24px;
        font-size: 1rem;
    }

    .features-section {
        grid-template-columns: 1fr;
        gap: 12px;
        margin-bottom: 25px;
    }

    .feature-item {
        padding: 12px;
    }

    .specs-section {
        padding: 30px 20px;
        margin-bottom: 40px;
    }

    .section-title {
        font-size: 1.5rem;
        margin-bottom: 25px;
    }

    .specs-grid {
        gap: 15px;
    }

    .spec-item {
        padding: 15px;
        flex-direction: column;
        gap: 8px;
        align-items: flex-start;
    }

    .related-title {
        font-size: 1.5rem;
        margin-bottom: 30px;
    }

    .related-grid {
        grid-template-columns: repeat(auto-fill, minmax(250px, 1fr));
        gap: 20px;
    }
}

@media (max-width: 480px) {
    .container {
        padding: 20px 10px;
    }

    .product-detail {
        padding: 20px 15px;
        border-radius: 16px;
    }

    .main-image-container {
        height: 250px;
        border-radius: 16px;
    }

    .image-badges {
        top: 12px;
        left: 12px;
        gap: 8px;
    }

    .badge {
        padding: 6px 12px;
        font-size: 0.8rem;
    }

    .image-thumbnails {
        grid-template-columns: repeat(4, 1fr);
        gap: 8px;
    }

    .thumbnail {
        height: 60px;
        border-radius: 8px;
    }

    .product-title {
        font-size: 1.5rem;
    }

    .price-wrapper {
        gap: 8px;
    }

    .current-price {
        font-size: 2rem;
    }

    .original-price {
        font-size: 1.2rem;
    }

    .savings {
        padding: 5px 10px;
        font-size: 0.85rem;
    }

    .price-note {
        font-size: 0.85rem;
    }

    .product-description {
        font-size: 0.95rem;
    }

    .btn {
        padding: 14px 20px;
        font-size: 0.95rem;
    }

    .feature-item {
        padding: 10px;
    }

    .feature-icon {
        width: 36px;
        height: 36px;
    }

    .feature-text {
        font-size: 0.9rem;
    }

    .specs-section {
        padding: 25px 15px;
        border-radius: 16px;
    }

    .section-title {
        font-size: 1.3rem;
        margin-bottom: 20px;
    }

    .spec-item {
        padding: 12px;
        border-radius: 10px;
    }

    .spec-label,
    .spec-value {
        font-size: 0.9rem;
    }

    .related-title {
        font-size: 1.3rem;
        margin-bottom: 25px;
    }

    .related-grid {
        grid-template-columns: 1fr;
        gap: 15px;
    }

    .related-card {
        padding: 15px;
        border-radius: 16px;
    }

    .related-image {
        height: 180px;
        border-radius: 12px;
    }

    .related-info h3 {
        font-size: 0.95rem;
    }

    .related-price {
        font-size: 1.2rem;
    }
}

.action-buttons {
    display: flex;
    gap: 15px;
}

.btn {
    flex: 1;
    padding: 18px 32px;
    border: none;
    border-radius: 14px;
    font-size: 1.1rem;
    font-weight: 600;
    cursor: pointer;
    transition: all 0.3s ease;
    position: relative;
    overflow: hidden;
    display: flex;
    align-items: center;
    justify-content: center;
    gap: 10px;
}

.btn-primary {
    background: linear-gradient(135deg, #2a3446 0%, #1b2432 100%);
    color: white;
}

    .btn-primary::before {
        content: '';
        position: absolute;
        top: 0;
        left: -100%;
        width: 100%;
        height: 100%;
        background: linear-gradient(90deg, transparent, rgba(255, 255, 255, 0.15), transparent);
        transition: left 0.6s ease;
    }

    .btn-primary:hover::before {
        left: 100%;
    }

    .btn-primary:hover {
        transform: translateY(-3px);
        box-shadow: 0 10px 24px rgba(27, 36, 50, 0.45);
    }

.btn-secondary {
    background: white;
    color: #1f2937;
    border: 2px solid #e5e7eb;
}

    .btn-secondary:hover {
        border-color: #ef4444;
        color: #ef4444;
        transform: translateY(-2px);
    }

/* Features */
.features-section {
    display: grid;
    grid-template-columns: repeat(2, 1fr);
    gap: 15px;
    margin-bottom: 30px;
}

.feature-item {
    display: flex;
    align-items: center;
    gap: 12px;
    padding: 15px;
    background: #f9fafb;
    border-radius: 12px;
    border: 1px solid #e5e7eb;
}

.feature-icon {
    width: 40px;
    height: 40px;
    background: linear-gradient(135deg, #3b82f6 0%, #2563eb 100%);
    border-radius: 10px;
    display: flex;
    align-items: center;
    justify-content: center;
    color: white;
}

.feature-text {
    font-size: 0.95rem;
    font-weight: 500;
    color: #374151;
}

/* Specifications */
.specs-section {
    background: white;
    border-radius: 24px;
    padding: 50px;
    box-shadow: 0 10px 30px rgba(0, 0, 0, 0.06);
    margin-bottom: 60px;
    animation: fadeInUp 1s ease;
}

.section-title {
    font-size: 2rem;
    font-weight: 700;
    margin-bottom: 30px;
    color: #1f2937;
}

.specs-grid {
    display: grid;
    grid-template-columns: repeat(2, 1fr);
    gap: 20px;
}

.spec-item {
    display: flex;
    justify-content: space-between;
    padding: 20px;
    background: #f9fafb;
    border-radius: 12px;
    border-left: 4px solid #3b82f6;
}

.spec-label {
    font-weight: 600;
    color: #374151;
}

.spec-value {
    color: #6b7280;
}

/* Related Products */
.related-section {
    animation: fadeInUp 1.2s ease;
}

.related-title {
    font-size: 2rem;
    font-weight: 700;
    margin-bottom: 40px;
    text-align: center;
    color: #1f2937;
}

.related-grid {
    display: grid;
    grid-template-columns: repeat(auto-fill, minmax(280px, 1fr));
    gap: 30px;
}

/* Related product cards - matching style */
.related-card {
    background: white;
    border-radius: 20px;
    padding: 20px;
    box-shadow: 0 1px 3px rgba(0, 0, 0, 0.05), 0 10px 15px rgba(0, 0, 0, 0.05);
    border: 1px solid #e5e7eb;
    transition: all 0.4s cubic-bezier(0.4, 0, 0.2, 1);
    cursor: pointer;
}

    .related-card:hover {
        transform: translateY(-8px);
        box-shadow: 0 8px 30px rgba(0, 0, 0, 0.12);
    }

.related-image {
    width: 100%;
    height: 200px;
    background: #f8f9fa;
    border-radius: 16px;
    overflow: hidden;
    margin-bottom: 15px;
}

    .related-image img {
        width: 100%;
        height: 100%;
        object-fit: cover;
        transition: transform 0.5s ease;
    }

.related-card:hover .related-image img {
    transform: scale(1.1);
}

.related-info h3 {
    font-size: 1rem;
    margin-bottom: 10px;
    color: #1f2937;
}

.related-price {
    font-size: 1.3rem;
    font-weight: 700;
    color: #1f2937;
}

/* Animations */
@keyframes fadeIn {
    from {
        opacity: 0;
    }

    to {
        opacity: 1;
    }
}

@keyframes fadeInUp {
    from {
        opacity: 0;
        transform: translateY(30px);
    }

    to {
        opacity: 1;
        transform: translateY(0);
    }
}

/* Responsive */
@media (max-width: 1024px) {
    .product-detail {
        grid-template-columns: 1fr;
        gap: 40px;
        padding: 40px 30px;
    }

    .image-gallery {
        position: static;
    }

    .main-image-container {
        height: 400px;
    }

    .specs-grid {
        grid-template-columns: 1fr;
    }

    .specs-section,
    .product-detail {
        padding: 40px 30px;
    }
}

@media (max-width: 768px) {
    body {
        padding-top: 70px;
    }

    .header-placeholder {
        height: 70px;
        font-size: 1.3rem;
    }

    .container {
        padding: 30px 15px;
    }

    .breadcrumb {
        font-size: 0.85rem;
        flex-wrap: wrap;
    }

    .product-detail {
        padding: 30px 20px;
        margin-bottom: 40px;
    }

    .main-image-container {
        height: 300px;
    }

    .image-thumbnails {
        grid-template-columns: repeat(4, 1fr);
        gap: 10px;
    }

    .thumbnail {
        height: 70px;
    }

    .product-meta {
        flex-direction: column;
        gap: 10px;
        align-items: flex-start;
    }

    .product-title {
        font-size: 1.75rem;
        margin-bottom: 15px;
    }

    .price-section {
        padding: 20px;
        margin-bottom: 25px;
    }

    .price-wrapper {
        flex-direction: column;
        align-items: flex-start;
        gap: 10px;
    }

    .current-price {
        font-size: 2.2rem;
    }

    .original-price {
        font-size: 1.3rem;
    }

    .product-description {
        font-size: 1rem;
        margin-bottom: 25px;
    }

    .action-section {
        gap: 15px;
        margin-bottom: 25px;
    }

    .quantity-selector {
        flex-direction: column;
        align-items: flex-start;
        width: 100%;
    }

    .quantity-controls {
        width: 100%;
    }

    .quantity-btn {
        flex: 1;
    }

    .quantity-input {
        flex: 1;
    }

    .action-buttons {
        flex-direction: column;
        gap: 12px;
    }

    .btn {
        padding: 16px 24px;
        font-size: 1rem;
    }

    .features-section {
        grid-template-columns: 1fr;
        gap: 12px;
        margin-bottom: 25px;
    }

    .feature-item {
        padding: 12px;
    }

    .specs-section {
        padding: 30px 20px;
        margin-bottom: 40px;
    }

    .section-title {
        font-size: 1.5rem;
        margin-bottom: 25px;
    }

    .specs-grid {
        gap: 15px;
    }

    .spec-item {
        padding: 15px;
        flex-direction: column;
        gap: 8px;
        align-items: flex-start;
    }

    .related-title {
        font-size: 1.5rem;
        margin-bottom: 30px;
    }

    .related-grid {
        grid-template-columns: repeat(auto-fill, minmax(250px, 1fr));
        gap: 20px;
    }
}

@media (max-width: 480px) {
    .container {
        padding: 20px 10px;
    }

    .product-detail {
        padding: 20px 15px;
        border-radius: 16px;
    }

    .main-image-container {
        height: 250px;
        border-radius: 16px;
    }

    .image-badges {
        top: 12px;
        left: 12px;
        gap: 8px;
    }

    .badge {
        padding: 6px 12px;
        font-size: 0.8rem;
    }

    .image-thumbnails {
        grid-template-columns: repeat(4, 1fr);
        gap: 8px;
    }

    .thumbnail {
        height: 60px;
        border-radius: 8px;
    }

    .product-title {
        font-size: 1.5rem;
    }

    .price-wrapper {
        gap: 8px;
    }

    .current-price {
        font-size: 2rem;
    }

    .original-price {
        font-size: 1.2rem;
    }

    .savings {
        padding: 5px 10px;
        font-size: 0.85rem;
    }

    .price-note {
        font-size: 0.85rem;
    }

    .product-description {
        font-size: 0.95rem;
    }

    .btn {
        padding: 14px 20px;
        font-size: 0.95rem;
    }

    .feature-item {
        padding: 10px;
    }

    .feature-icon {
        width: 36px;
        height: 36px;
    }

    .feature-text {
        font-size: 0.9rem;
    }

    .specs-section {
        padding: 25px 15px;
        border-radius: 16px;
    }

    .section-title {
        font-size: 1.3rem;
        margin-bottom: 20px;
    }

    .spec-item {
        padding: 12px;
        border-radius: 10px;
    }

    .spec-label,
    .spec-value {
        font-size: 0.9rem;
    }

    .related-title {
        font-size: 1.3rem;
        margin-bottom: 25px;
    }

    .related-grid {
        grid-template-columns: 1fr;
        gap: 15px;
    }

    .related-card {
        padding: 15px;
        border-radius: 16px;
    }

    .related-image {
        height: 180px;
        border-radius: 12px;
    }

    .related-info h3 {
        font-size: 0.95rem;
    }

    .related-price {
        font-size: 1.2rem;
    }
}
