/* Product Page Styles */

.product-page {
    padding: 2rem 0 4rem;
    min-height: 60vh;
}

/* Breadcrumb */
.breadcrumb {
    display: flex;
    align-items: center;
    gap: 0.5rem;
    margin-bottom: 2rem;
    font-size: 0.9rem;
    color: var(--text-muted);
}

.breadcrumb a {
    color: var(--text-muted);
    text-decoration: none;
    transition: color 0.3s ease;
}

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

.breadcrumb span:last-child {
    color: var(--text-primary);
    font-weight: 500;
}

/* Product Detail Layout */
.product-detail {
    display: grid;
    grid-template-columns: 1fr 1fr;
    gap: 3rem;
    margin-bottom: 3rem;
}

@media (max-width: 968px) {
    .product-detail {
        grid-template-columns: 1fr;
        gap: 2rem;
    }
}

/* Product Gallery */
.product-gallery {
    display: flex;
    flex-direction: column;
    gap: 1rem;
}

.gallery-main {
    position: relative;
    border-radius: 1.5rem;
    overflow: hidden;
    background: var(--card-bg);
    border: 1px solid var(--card-border);
}

.product-placeholder-large {
    width: 100%;
    aspect-ratio: 1;
    display: flex;
    align-items: center;
    justify-content: center;
}

.placeholder-icon-large {
    font-size: 8rem;
    filter: drop-shadow(0 4px 20px rgba(0, 0, 0, 0.2));
    animation: float 3s ease-in-out infinite;
}

@keyframes float {

    0%,
    100% {
        transform: translateY(0);
    }

    50% {
        transform: translateY(-10px);
    }
}

.gallery-main .product-badge {
    position: absolute;
    top: 1.5rem;
    left: 1.5rem;
    padding: 0.5rem 1rem;
    background: linear-gradient(135deg, var(--primary) 0%, var(--accent) 100%);
    color: white;
    font-size: 0.85rem;
    font-weight: 600;
    border-radius: 2rem;
    box-shadow: 0 4px 15px rgba(255, 107, 157, 0.4);
}

.gallery-main .product-badge.new {
    background: linear-gradient(135deg, #a855f7 0%, #7c3aed 100%);
    box-shadow: 0 4px 15px rgba(168, 85, 247, 0.4);
}

.gallery-main .product-badge.limited {
    background: linear-gradient(135deg, #f59e0b 0%, #d97706 100%);
    box-shadow: 0 4px 15px rgba(245, 158, 11, 0.4);
}

.gallery-thumbs {
    display: flex;
    gap: 0.75rem;
}

.thumb {
    width: 80px;
    height: 80px;
    border-radius: 1rem;
    cursor: pointer;
    opacity: 0.6;
    transition: all 0.3s ease;
    border: 2px solid transparent;
    overflow: hidden;
}

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

.thumb:hover,
.thumb.active {
    opacity: 1;
    border-color: var(--primary);
    transform: scale(1.05);
}

.gallery-main-img {
    width: 100%;
    height: 100%;
    object-fit: contain;
    padding: 1rem;
}

.thumb:hover,
.thumb.active {
    opacity: 1;
    border-color: var(--primary);
    transform: scale(1.05);
}

/* Product Info Section */
.product-detail-info {
    display: flex;
    flex-direction: column;
    gap: 1.25rem;
}

.product-detail-info .product-category {
    font-size: 0.85rem;
    color: var(--primary);
    font-weight: 600;
    text-transform: uppercase;
    letter-spacing: 1px;
}

.product-detail-title {
    font-size: 2rem;
    font-weight: 800;
    color: var(--text-primary);
    line-height: 1.2;
}

@media (max-width: 768px) {
    .product-detail-title {
        font-size: 1.5rem;
    }
}

.product-rating {
    display: flex;
    align-items: center;
    gap: 0.5rem;
}

.product-rating .stars {
    font-size: 1.1rem;
}

.product-rating .rating-text {
    color: var(--text-muted);
    font-size: 0.9rem;
}

.product-price-block {
    display: flex;
    align-items: center;
    gap: 1rem;
    flex-wrap: wrap;
}

.price-current-large {
    font-size: 2.5rem;
    font-weight: 800;
    background: linear-gradient(135deg, var(--primary) 0%, var(--accent) 100%);
    -webkit-background-clip: text;
    -webkit-text-fill-color: transparent;
    background-clip: text;
}

.price-old-large {
    font-size: 1.25rem;
    color: var(--text-muted);
    text-decoration: line-through;
}

.discount-badge {
    padding: 0.35rem 0.75rem;
    background: linear-gradient(135deg, #10b981 0%, #059669 100%);
    color: white;
    font-size: 0.85rem;
    font-weight: 700;
    border-radius: 0.5rem;
}

.product-detail-description {
    color: var(--text-secondary);
    line-height: 1.7;
    font-size: 1rem;
}

.product-features-list {
    display: flex;
    flex-direction: column;
    gap: 0.75rem;
    padding: 1.25rem;
    background: var(--card-bg);
    border: 1px solid var(--card-border);
    border-radius: 1rem;
}

.feature-item {
    display: flex;
    align-items: center;
    gap: 0.75rem;
    color: var(--text-secondary);
    font-size: 0.95rem;
}

.feature-item .feature-icon {
    font-size: 1.2rem;
}

.product-actions-block {
    display: flex;
    gap: 1rem;
    flex-wrap: wrap;
}

.product-actions-block .btn-large {
    padding: 1rem 2rem;
    font-size: 1.1rem;
}

.product-guarantee {
    display: flex;
    align-items: center;
    gap: 0.5rem;
    padding: 1rem;
    background: rgba(16, 185, 129, 0.1);
    border: 1px solid rgba(16, 185, 129, 0.2);
    border-radius: 0.75rem;
    color: #10b981;
    font-weight: 500;
}

.guarantee-icon {
    font-size: 1.2rem;
}

/* Product Tabs */
.product-tabs {
    background: var(--card-bg);
    border: 1px solid var(--card-border);
    border-radius: 1.5rem;
    overflow: hidden;
}

.tabs-nav {
    display: flex;
    border-bottom: 1px solid var(--card-border);
    overflow-x: auto;
}

.tab-btn {
    flex: 1;
    min-width: 120px;
    padding: 1.25rem 1.5rem;
    background: transparent;
    border: none;
    color: var(--text-muted);
    font-size: 1rem;
    font-weight: 600;
    cursor: pointer;
    transition: all 0.3s ease;
    position: relative;
}

.tab-btn:hover {
    color: var(--text-primary);
    background: rgba(255, 255, 255, 0.02);
}

.tab-btn.active {
    color: var(--primary);
}

.tab-btn.active::after {
    content: '';
    position: absolute;
    bottom: 0;
    left: 0;
    right: 0;
    height: 3px;
    background: linear-gradient(135deg, var(--primary) 0%, var(--accent) 100%);
}

.tabs-content {
    padding: 2rem;
}

.tab-panel {
    display: none;
}

.tab-panel.active {
    display: block;
    animation: fadeIn 0.3s ease;
}

@keyframes fadeIn {
    from {
        opacity: 0;
        transform: translateY(10px);
    }

    to {
        opacity: 1;
        transform: translateY(0);
    }
}

.tab-panel h3 {
    font-size: 1.25rem;
    font-weight: 700;
    color: var(--text-primary);
    margin-bottom: 1rem;
}

.tab-panel p {
    color: var(--text-secondary);
    line-height: 1.7;
    margin-bottom: 1rem;
}

/* Specs Table */
.specs-table {
    width: 100%;
    border-collapse: collapse;
}

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

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

.specs-table td {
    padding: 1rem 0;
    color: var(--text-secondary);
}

.specs-table td:first-child {
    font-weight: 600;
    color: var(--text-primary);
    width: 40%;
}

/* Delivery List */
.delivery-list {
    list-style: none;
    padding: 0;
    margin: 0;
}

.delivery-list li {
    padding: 0.75rem 0;
    color: var(--text-secondary);
    border-bottom: 1px solid var(--card-border);
}

.delivery-list li:last-child {
    border-bottom: none;
}