/* Product Page Styles */

/* Breadcrumb */
.breadcrumb {
    background: #f9f9f9;
    padding: 15px 0;
    margin-bottom: 40px;
}

.breadcrumb .container {
    display: flex;
    align-items: center;
    gap: 10px;
    font-size: 14px;
}

.breadcrumb a {
    color: #666;
    text-decoration: none;
    transition: color 0.3s;
}

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

.breadcrumb i {
    font-size: 10px;
    color: #999;
}

.breadcrumb span {
    color: var(--main-color);
}

/* Product Details */
.product-details {
    padding: 40px 0;
}

.product-layout {
    display: grid;
    grid-template-columns: 1fr 1fr;
    gap: 60px;
}

@media (max-width: 992px) {
    .product-layout {
        grid-template-columns: 1fr;
        gap: 40px;
    }
}

/* Product Images */
.product-images {
    position: sticky;
    top: 20px;
    height: fit-content;
}

.main-image {
    position: relative;
    margin-bottom: 20px;
    overflow: hidden;
    border-radius: 8px;
    background: #f9f9f9;
}

.main-image img {
    width: 100%;
    display: block;
    transition: transform 0.3s;
}

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

.zoom-indicator {
    position: absolute;
    bottom: 20px;
    right: 20px;
    background: rgba(0, 0, 0, 0.7);
    color: white;
    padding: 8px 15px;
    border-radius: 20px;
    font-size: 12px;
    display: flex;
    align-items: center;
    gap: 8px;
    opacity: 0;
    transition: opacity 0.3s;
}

.main-image:hover .zoom-indicator {
    opacity: 1;
}

.thumbnail-gallery {
    display: grid;
    grid-template-columns: repeat(4, 1fr);
    gap: 10px;
}

.thumbnail {
    border: 2px solid transparent;
    border-radius: 5px;
    overflow: hidden;
    cursor: pointer;
    transition: all 0.3s;
}

.thumbnail:hover,
.thumbnail.active {
    border-color: var(--main-color);
}

.thumbnail img {
    width: 100%;
    display: block;
}

/* Product Info */
.product-info {
    padding: 20px 0;
}

.product-title {
    font-size: 32px;
    font-weight: 700;
    margin-bottom: 15px;
    color: var(--main-black-color);
    text-transform: capitalize;
}

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

.product-rating {
    display: flex;
    align-items: center;
    gap: 10px;
    margin-bottom: 20px;
}

.product-rating .stars {
    color: orange;
    font-size: 16px;
}

.reviews-count {
    color: #666;
    font-size: 14px;
}

.product-price {
    display: flex;
    align-items: center;
    gap: 15px;
    margin-bottom: 25px;
}

.current-price {
    font-size: 36px;
    font-weight: 700;
    color: var(--main-color);
}

.old-price {
    font-size: 24px;
    color: #999;
    text-decoration: line-through;
}

.discount-badge {
    background: var(--main-color);
    color: white;
    padding: 5px 12px;
    border-radius: 20px;
    font-size: 14px;
    font-weight: 600;
}

.product-description {
    margin-bottom: 30px;
    line-height: 1.8;
    color: #666;
}

/* Product Options */
.product-options {
    margin-bottom: 30px;
}

.option-group {
    margin-bottom: 25px;
}

.option-group label {
    display: block;
    font-size: 16px;
    font-weight: 600;
    margin-bottom: 12px;
    color: var(--main-black-color);
}

/* Size Options */
.size-options {
    display: flex;
    gap: 10px;
    flex-wrap: wrap;
}

.size-btn {
    padding: 12px 24px;
    border: 2px solid #ddd;
    background: white;
    border-radius: 5px;
    cursor: pointer;
    transition: all 0.3s;
    font-size: 14px;
    font-weight: 500;
}

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

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

/* Color Options */
.color-options {
    display: flex;
    gap: 10px;
}

.color-btn {
    width: 40px;
    height: 40px;
    border: 3px solid transparent;
    border-radius: 50%;
    cursor: pointer;
    transition: all 0.3s;
    position: relative;
}

.color-btn::after {
    content: '';
    position: absolute;
    top: 50%;
    left: 50%;
    transform: translate(-50%, -50%);
    width: 28px;
    height: 28px;
    border-radius: 50%;
    background: inherit;
}

.color-btn:hover,
.color-btn.active {
    border-color: var(--main-black-color);
}

/* Quantity Selector */
.quantity-selector {
    display: flex;
    align-items: center;
    width: fit-content;
    border: 2px solid #ddd;
    border-radius: 5px;
    overflow: hidden;
}

.qty-btn {
    width: 45px;
    height: 45px;
    border: none;
    background: #f9f9f9;
    cursor: pointer;
    font-size: 18px;
    font-weight: 600;
    transition: background 0.3s;
}

.qty-btn:hover {
    background: var(--opac-main-color);
}

#quantity {
    width: 60px;
    height: 45px;
    border: none;
    text-align: center;
    font-size: 16px;
    font-weight: 600;
}

/* Product Actions */
.product-actions {
    display: flex;
    gap: 15px;
    margin-bottom: 30px;
}

.btn-add-cart {
    flex: 1;
    padding: 18px 40px;
    background: var(--main-color);
    color: white;
    border: none;
    border-radius: 5px;
    font-size: 16px;
    font-weight: 600;
    cursor: pointer;
    transition: all 0.3s;
    display: flex;
    align-items: center;
    justify-content: center;
    gap: 10px;
    text-transform: uppercase;
}

.btn-add-cart:hover {
    background: #5a3d32;
    transform: translateY(-2px);
    box-shadow: 0 6px 20px rgba(123, 82, 68, 0.3);
}

.btn-wishlist {
    width: 60px;
    height: 60px;
    border: 2px solid #ddd;
    background: white;
    border-radius: 5px;
    cursor: pointer;
    transition: all 0.3s;
    font-size: 24px;
    color: #999;
}

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

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

.btn-wishlist i.fas {
    color: var(--main-color);
}

.btn-wishlist.active i.fas {
    color: white;
}

/* Product Meta */
.product-meta {
    padding-top: 30px;
    border-top: 1px solid #eee;
}

.meta-item {
    margin-bottom: 12px;
    font-size: 14px;
    color: #666;
}

.meta-item strong {
    color: var(--main-black-color);
    margin-right: 8px;
}

/* Product Tabs */
.product-tabs {
    padding: 60px 0;
    background: #f9f9f9;
}

.tabs-header {
    display: flex;
    gap: 5px;
    border-bottom: 2px solid #ddd;
    margin-bottom: 40px;
}

@media (max-width: 768px) {
    .tabs-header {
        flex-direction: column;
    }
}

.tab-btn {
    padding: 15px 30px;
    background: transparent;
    border: none;
    border-bottom: 3px solid transparent;
    cursor: pointer;
    font-size: 16px;
    font-weight: 600;
    text-transform: capitalize;
    transition: all 0.3s;
    color: #666;
}

.tab-btn:hover,
.tab-btn.active {
    color: var(--main-color);
    border-bottom-color: var(--main-color);
    background: white;
}

.tabs-content {
    background: white;
    padding: 40px;
    border-radius: 8px;
    box-shadow: 0 2px 10px rgba(0, 0, 0, 0.05);
}

.tab-panel {
    display: none;
    animation: fadeIn 0.3s;
}

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

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

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

.tab-panel h3 {
    font-size: 24px;
    margin-bottom: 20px;
    color: var(--main-black-color);
}

.tab-panel p {
    line-height: 1.8;
    color: #666;
    margin-bottom: 15px;
}

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

.specs-table tr {
    border-bottom: 1px solid #eee;
}

.specs-table td {
    padding: 15px 10px;
}

.specs-table td:first-child {
    width: 200px;
}

/* Reviews */
.reviews-summary {
    background: #f9f9f9;
    padding: 30px;
    border-radius: 8px;
    margin-bottom: 30px;
    text-align: center;
}

.average-rating .rating-number {
    font-size: 48px;
    font-weight: 700;
    color: var(--main-color);
    display: block;
    margin-bottom: 10px;
}

.average-rating .stars {
    color: orange;
    font-size: 24px;
    margin-bottom: 10px;
}

.review-item {
    padding: 25px;
    border: 1px solid #eee;
    border-radius: 8px;
    margin-bottom: 20px;
}

.review-header {
    display: flex;
    justify-content: space-between;
    align-items: center;
    margin-bottom: 15px;
}

.review-header .stars {
    color: orange;
}

.review-date {
    color: #999;
    font-size: 13px;
}

.review-item h4 {
    font-size: 18px;
    margin-bottom: 10px;
    color: var(--main-black-color);
}

.review-item p {
    margin-bottom: 10px;
    line-height: 1.6;
}

.reviewer {
    font-size: 14px;
    color: #666;
    font-style: italic;
}

/* Related Products */
.related-products {
    padding: 60px 0;
}

.related-products .products-grid {
    display: grid;
    grid-template-columns: repeat(auto-fill, minmax(250px, 1fr));
    gap: 30px;
}