/* Product Detail CSS */
.product-top-nav {
    display: flex;
    justify-content: space-between;
    align-items: center;
    margin-bottom: 20px;
    margin-top: 40px;
    padding: 12px 16px;
    background: #fff;
    border-radius: 14px;
    border: 1px solid #eee;
    box-shadow: 0 10px 30px rgba(0,0,0,0.04);
}

.breadcrumbs {
    font-size: 13px;
    color: #666;
    display: flex;
    align-items: center;
    gap: 8px;
    flex-wrap: wrap;
}

.breadcrumbs a {
    color: #888;
    transition: color 0.2s;
}

.breadcrumbs a:hover {
    color: var(--primary-color);
}

.breadcrumbs .sep {
    color: #ccc;
    font-size: 12px;
}

.breadcrumbs .current {
    color: #333;
    font-weight: 600;
    white-space: nowrap;
    overflow: hidden;
    text-overflow: ellipsis;
    max-width: 180px;
}

.back-btn {
    display: inline-flex;
    align-items: center;
    gap: 6px;
    font-size: 13px;
    color: var(--primary-color);
    background: #f5f5f5;
    padding: 8px 14px;
    border-radius: 10px;
    transition: all 0.2s;
    border: 1px solid #eee;
}

.back-btn:hover {
    background: #efefef;
    color: #222;
}

@media (max-width: 480px) {
    .breadcrumbs .current {
        max-width: 100px;
    }
    .back-btn span {
        display: none;
    }
}

/* Related Products Section */
.related-products {
    margin-top: 50px;
    margin-bottom: 80px;
}

.related-products .section-title {
    font-size: 20px;
    margin-bottom: 18px;
    padding-right: 12px;
    border-right: 4px solid var(--primary-color);
}

/* Color Swatches */
.product-colors {
    display: flex;
    align-items: center;
    gap: 10px;
    margin: 14px 0;
    flex-wrap: wrap;
}

.color-swatches {
    display: flex;
    gap: 8px;
    flex-wrap: wrap;
}

.color-swatch-item {
    width: 26px;
    height: 26px;
    border-radius: 50%;
    border: 1px solid #e6e6e6;
    box-shadow: 0 4px 10px rgba(0,0,0,0.08);
}

.specs p {
    margin-bottom: 10px;
    color: #444;
    display: flex;
    gap: 6px;
}

@media (min-width: 1200px) {
    .container.product-container {
        max-width: 1350px;
    }
}

.product-detail-wrapper {
    display: grid;
    grid-template-columns: 1fr;
    gap: 30px;
    margin-bottom: 50px;
}

.gallery-card {
    background: #fff;
    border: 1px solid #eee;
    border-radius: 18px;
    padding: 12px;
    box-shadow: 0 12px 30px rgba(0,0,0,0.04);
}

.meta-card {
    background: #fff;
    border: 1px solid #eee;
    border-radius: 18px;
    padding: 24px;
    box-shadow: 0 12px 30px rgba(0,0,0,0.04);
}

.product-title {
    font-size: 26px;
    margin: 8px 0 12px;
    color: var(--primary-color);
    line-height: 1.4;
}

@media (min-width: 768px) {
    .product-detail-wrapper {
        grid-template-columns: 1fr 1fr;
        align-items: stretch; /* Make both columns equal height */
        gap: 30px;
    }
    .product-meta {
        position: sticky;
        top: 100px;
        height: 100%;
    }
}

.gallery-card, .meta-card {
    height: 100%; /* Force cards to fill the grid row height */
    display: flex;
    flex-direction: column;
}

.product-gallery .main-image {
    width: 100%;
    background: #fff;
    border: 1px solid #eee;
    border-radius: 20px;
    overflow: hidden;
    margin-bottom: 20px;
    position: relative;
    padding-top: 120%; /* Taller aspect ratio */
}

.product-gallery .main-image img {
    position: absolute;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    object-fit: contain;
    background-color: #fafafa;
}

.thumbnail-grid {
    display: grid;
    grid-template-columns: repeat(auto-fill, minmax(70px, 1fr));
    gap: 10px;
}

.thumb {
    width: 100%;
    height: 70px;
    border-radius: 10px;
    cursor: pointer;
    object-fit: cover;
    border: 2px solid #eee;
    transition: all 0.2s ease;
    background: #fff;
}

.thumb:hover, .thumb.active {
    border-color: var(--primary-color);
}

.category-badge {
    background: var(--secondary-color);
    padding: 6px 12px;
    border-radius: 999px;
    font-size: 12px;
    color: #333;
    display: inline-flex;
    align-items: center;
    gap: 6px;
    width: fit-content;
    margin-bottom: 10px;
}

.price-section {
    display: flex;
    align-items: center;
    justify-content: space-between;
    gap: 15px;
    margin: 20px 0 25px;
    padding: 20px;
    background: linear-gradient(135deg, #ffffff 0%, #f8f9fa 100%);
    border-radius: 16px;
    border: 1px solid #edf2f7;
    box-shadow: 0 4px 6px -1px rgba(0, 0, 0, 0.05), 0 2px 4px -1px rgba(0, 0, 0, 0.03);
}

.price-wrapper {
    display: flex;
    flex-direction: column;
    gap: 4px;
}

.current-price-container {
    display: flex;
    align-items: center;
    gap: 10px;
}

.price-section .current-price {
    font-size: 28px;
    font-weight: 800;
    color: #1a202c;
    letter-spacing: -0.5px;
}

.price-section .current-price small {
    font-size: 14px;
    font-weight: 600;
    color: #718096;
    margin-right: 2px;
}

.discount-badge {
    background: #feb2b2;
    color: #c53030;
    padding: 2px 8px;
    border-radius: 6px;
    font-size: 13px;
    font-weight: 700;
}

.price-section .old-price {
    font-size: 15px;
    color: #a0aec0;
    text-decoration: line-through;
    font-weight: 500;
}

.stock-status-info {
    display: flex;
    align-items: center;
}

.stock-badge {
    display: flex;
    align-items: center;
    gap: 6px;
    padding: 6px 12px;
    border-radius: 8px;
    font-size: 13px;
    font-weight: 600;
}

.stock-badge i {
    font-size: 14px;
}

.stock-badge.in-stock {
    background: #f0fff4;
    color: #38a169;
}

.stock-badge.out-of-stock {
    background: #fff5f5;
    color: #e53e3e;
}

@media (max-width: 480px) {
    .price-section {
        padding: 15px;
        flex-direction: row;
        align-items: center;
    }
    .price-section .current-price {
        font-size: 22px;
    }
}

.specs {
    border-top: 1px solid #eee;
    padding-top: 16px;
    margin-bottom: 20px;
}

.specs p {
    margin-bottom: 10px;
    color: #555;
    font-size: 14px;
}

/* Tags */
.product-tags {
    display: flex;
    flex-wrap: wrap;
    gap: 8px;
    margin-bottom: 20px;
}

.tag-item {
    font-size: 12px;
    color: #888;
    background: #f5f5f5;
    padding: 4px 10px;
    border-radius: 6px;
}

/* Season Badge */
.product-season-section {
    margin: 24px 0;
    padding-top: 24px;
    border-top: 1px solid #f0f0f0;
}

.season-label {
    display: block;
    font-size: 13px;
    color: #888;
    margin-bottom: 12px;
    font-weight: 500;
}

.season-badge-container {
    display: inline-flex;
    align-items: center;
    gap: 12px;
    padding: 12px 20px;
    border-radius: 16px;
    color: white;
    transition: transform 0.3s ease, box-shadow 0.3s ease;
    text-decoration: none;
    cursor: default;
    box-shadow: 0 8px 20px rgba(0,0,0,0.1);
}

.season-badge-container:hover {
    transform: translateY(-2px);
    box-shadow: 0 12px 25px rgba(0,0,0,0.15);
}

.season-badge-container i {
    font-size: 20px;
}

.season-badge-container .season-name {
    font-weight: 700;
    font-size: 16px;
}

.season-badge-spring { background: linear-gradient(135deg, #10b981 0%, #059669 100%); }
.season-badge-summer { background: linear-gradient(135deg, #f59e0b 0%, #d97706 100%); }
.season-badge-autumn { background: linear-gradient(135deg, #ea580c 0%, #c2410c 100%); }
.season-badge-winter { background: linear-gradient(135deg, #3b82f6 0%, #2563eb 100%); }
.season-badge-default { background: linear-gradient(135deg, #64748b 0%, #475569 100%); }

/* Share Section */
.share-section {
    margin-top: 10px;
    padding-top: 24px;
    border-top: 1px solid #f0f0f0;
}

.share-section p {
    font-size: 14px;
    font-weight: 600;
    color: #4a5568;
    margin-bottom: 15px;
    display: flex;
    align-items: center;
    gap: 8px;
}

.share-section p i {
    color: var(--primary-color);
}

.share-buttons {
    display: flex;
    flex-wrap: wrap;
    gap: 12px;
}

.share-btn {
    width: 42px;
    height: 42px;
    border-radius: 12px;
    display: flex;
    align-items: center;
    justify-content: center;
    color: white;
    font-size: 20px;
    transition: all 0.3s cubic-bezier(0.4, 0, 0.2, 1);
    border: none;
    cursor: pointer;
    box-shadow: 0 4px 6px rgba(0, 0, 0, 0.05);
}

.share-btn:hover {
    transform: translateY(-5px);
    box-shadow: 0 8px 15px rgba(0, 0, 0, 0.1);
}

.share-btn.facebook { background: #1877f2; }
.share-btn.whatsapp { background: #25d366; }
.share-btn.telegram { background: #0088cc; }
.share-btn.viber { background: #7360f2; }
.share-btn.copy { background: #4a5568; }

/* Copy Toast */
.copy-toast {
    position: fixed;
    bottom: 100px;
    left: 50%;
    transform: translateX(-50%);
    background: rgba(0, 0, 0, 0.8);
    color: white;
    padding: 12px 24px;
    border-radius: 50px;
    font-size: 14px;
    z-index: 9999;
    animation: slideUp 0.3s ease-out;
}

.copy-toast.fade-out {
    opacity: 0;
    transform: translateX(-50%) translateY(20px);
    transition: all 0.3s ease;
}

@keyframes slideUp {
    from { transform: translateX(-50%) translateY(20px); opacity: 0; }
    to { transform: translateX(-50%) translateY(0); opacity: 1; }
}

/* Description */
.description-content {
    line-height: 1.8;
    color: #444;
    font-size: 15px;
}

.product-description .section-title {
    font-size: 18px;
    margin-bottom: 15px;
    display: flex;
    align-items: center;
    gap: 8px;
    color: var(--primary-color);
}

.whatsapp-buy {
    margin: 24px 0;
    padding-top: 24px;
    border-top: 1px solid #f0f0f0;
}

.btn-whatsapp {
    background-color: #25d366;
    color: white;
    width: 100%;
    text-align: center;
    font-weight: 700;
    padding: 18px 20px;
    font-size: 18px;
    border-radius: 16px;
    box-shadow: 0 10px 20px rgba(37,211,102,0.25);
    display: flex;
    align-items: center;
    justify-content: center;
    gap: 10px;
    transition: all 0.3s ease;
}

.btn-whatsapp:hover {
    background-color: #1ebe57;
    transform: translateY(-3px);
    box-shadow: 0 15px 30px rgba(37,211,102,0.35);
}

.btn-whatsapp i {
    font-size: 24px;
}

@media (max-width: 768px) {
    .whatsapp-buy {
        position: fixed;
        bottom: 90px;
        left: 15px;
        right: 15px;
        padding: 20px;
        z-index: 999;
    }
    .btn-whatsapp {
        box-shadow: 0 10px 30px rgba(37,211,102,0.4);
        border: 2px solid rgba(255,255,255,0.2);
    }
}
