/* PRODUCT DETAIL PAGE STYLES */

/* Breadcrumb */
.product-breadcrumb {
    padding: 20px 0;
    font-size: 13px;
    color: var(--text-muted);
}

.product-breadcrumb a {
    color: var(--text-main);
    transition: var(--transition);
}

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

.product-breadcrumb .separator {
    margin: 0 10px;
    font-size: 10px;
}

/* Product Layout */
.product-detail-layout {
    display: flex;
    gap: 50px;
    margin-bottom: 60px;
}

.product-gallery {
    flex: 1;
    min-width: 0;
}

.product-info-section {
    flex: 1;
    min-width: 0;
}

/* Gallery Styles */
.main-image-container {
    background: #fcfcfc;
    border: 1px solid var(--border);
    border-radius: var(--radius);
    padding: 30px;
    text-align: center;
    margin-bottom: 20px;
    position: relative;
    overflow: hidden;
}

.main-image-container img {
    max-width: 100%;
    height: auto;
    object-fit: contain;
    max-height: 500px;
    transition: transform 0.4s ease;
}

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

.product-badge-large {
    position: absolute;
    top: 20px;
    left: 20px;
    background: var(--accent);
    color: white;
    padding: 6px 15px;
    font-size: 13px;
    font-weight: 700;
    border-radius: 4px;
    text-transform: uppercase;
    letter-spacing: 1px;
}

.thumbnail-gallery {
    display: flex;
    gap: 15px;
}

.thumb-item {
    width: 80px;
    height: 80px;
    border: 2px solid transparent;
    border-radius: 8px;
    overflow: hidden;
    cursor: pointer;
    background: #fdfdfd;
    padding: 10px;
    transition: var(--transition);
}

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

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

/* Info Section */
.product-title-large {
    font-size: 32px;
    font-weight: 800;
    color: var(--primary-dark);
    margin-bottom: 10px;
    line-height: 1.2;
}

.product-meta {
    display: flex;
    align-items: center;
    gap: 15px;
    margin-bottom: 20px;
    font-size: 14px;
}

.product-rating {
    color: var(--accent);
}

.product-sku {
    color: var(--text-muted);
}

.product-price-large {
    font-size: 28px;
    font-weight: 700;
    color: var(--text-main);
    margin-bottom: 20px;
    display: flex;
    align-items: center;
    gap: 15px;
}

.old-price {
    font-size: 18px;
    color: var(--text-muted);
    text-decoration: line-through;
    font-weight: 400;
}

.product-short-desc {
    color: var(--text-muted);
    font-size: 15px;
    line-height: 1.6;
    margin-bottom: 30px;
    padding-bottom: 30px;
    border-bottom: 1px solid var(--border);
}

/* Variations */
.variation-group {
    margin-bottom: 25px;
}

.variation-title {
    font-size: 14px;
    font-weight: 600;
    margin-bottom: 10px;
    display: block;
    color: var(--text-main);
}

.variation-options {
    display: flex;
    gap: 10px;
    flex-wrap: wrap;
}

.var-btn {
    padding: 10px 20px;
    background: white;
    border: 1px solid var(--border);
    border-radius: 4px;
    font-size: 14px;
    color: var(--text-main);
    cursor: pointer;
    transition: var(--transition);
    font-weight: 500;
}

.var-btn:hover {
    border-color: var(--primary);
    color: var(--primary);
}

.var-btn.active {
    background: var(--primary);
    color: white;
    border-color: var(--primary);
}

/* Action Area */
.product-action-area {
    display: flex;
    gap: 15px;
    margin-bottom: 30px;
    align-items: center;
}

.qty-selector {
    display: flex;
    align-items: center;
    border: 1px solid var(--border);
    border-radius: 4px;
    overflow: hidden;
    height: 50px;
}

.qty-btn {
    width: 40px;
    height: 100%;
    background: #f9f9f9;
    border: none;
    font-size: 18px;
    cursor: pointer;
    color: var(--text-main);
    transition: var(--transition);
}

.qty-btn:hover {
    background: #eaeaea;
}

.qty-input {
    width: 50px;
    height: 100%;
    border: none;
    text-align: center;
    font-size: 16px;
    font-weight: 600;
    color: var(--text-main);
    border-left: 1px solid var(--border);
    border-right: 1px solid var(--border);
    -moz-appearance: textfield;
}

.qty-input::-webkit-outer-spin-button,
.qty-input::-webkit-inner-spin-button {
    -webkit-appearance: none;
    margin: 0;
}

.add-btn-large {
    flex: 1;
    height: 50px;
    background: var(--primary);
    color: white;
    border: none;
    border-radius: 4px;
    font-size: 16px;
    font-weight: 600;
    cursor: pointer;
    transition: var(--transition);
    display: flex;
    align-items: center;
    justify-content: center;
    gap: 10px;
}

.add-btn-large:hover {
    background: var(--primary-dark);
}

.wishlist-btn-large {
    width: 50px;
    height: 50px;
    background: white;
    border: 1px solid var(--border);
    border-radius: 4px;
    color: var(--text-main);
    font-size: 20px;
    display: flex;
    align-items: center;
    justify-content: center;
    cursor: pointer;
    transition: var(--transition);
}

.wishlist-btn-large:hover {
    color: var(--accent);
    border-color: var(--accent);
}

/* Trust Badges */
.trust-badges-inline {
    display: flex;
    flex-wrap: wrap;
    gap: 20px;
    padding: 20px;
    background: #fdfaf6;
    border-radius: var(--radius);
    border: 1px solid var(--border);
}

.trust-badge-item {
    display: flex;
    align-items: center;
    gap: 10px;
    font-size: 13px;
    color: var(--text-main);
    font-weight: 500;
}

.trust-badge-item i {
    font-size: 18px;
    color: var(--primary);
}

/* Product Tabs */
.product-tabs-section {
    margin: 60px 0;
    border-top: 1px solid var(--border);
    padding-top: 40px;
}

.tabs-nav {
    display: flex;
    gap: 30px;
    border-bottom: 1px solid var(--border);
    margin-bottom: 30px;
    justify-content: center;
}

.tab-btn {
    background: none;
    border: none;
    padding: 10px 0 15px;
    font-size: 18px;
    font-weight: 600;
    color: var(--text-muted);
    cursor: pointer;
    position: relative;
    transition: color 0.3s;
}

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

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

.tab-btn.active::after {
    content: '';
    position: absolute;
    bottom: -1px;
    left: 0;
    width: 100%;
    height: 3px;
    background: var(--accent);
    border-radius: 3px 3px 0 0;
}

.tab-content {
    display: none;
    max-width: 800px;
    margin: 0 auto;
    font-size: 15px;
    line-height: 1.8;
    color: var(--text-main);
    animation: fadeIn 0.4s ease;
}

.tab-content.active {
    display: block;
}

.tab-content h3 {
    font-size: 20px;
    margin-bottom: 15px;
    color: var(--primary-dark);
}

.tab-content ul {
    margin-bottom: 20px;
    padding-left: 20px;
}

.tab-content li {
    margin-bottom: 10px;
}

@media (max-width: 998px) {
    .product-detail-layout {
        flex-direction: column;
    }
    .tabs-nav {
        flex-wrap: wrap;
        gap: 15px;
        justify-content: flex-start;
    }
}
