/* Product Page Styles */

/* Breadcrumbs */
.breadcrumbs-container {
    background: #f8f9fa;
    border-bottom: 1px solid #e9ecef;
    margin-bottom: 20px;
}

.breadcrumbs {
    max-width: 1400px;
    margin: 0 auto;
    padding: 14px 20px;
    display: flex;
    align-items: center;
    gap: 8px;
    font-size: 14px;
}

.breadcrumbs .woocommerce-breadcrumb {
    display: flex;
    align-items: center;
    gap: 8px;
    color: var(--text-light);
}

.breadcrumbs .woocommerce-breadcrumb a {
    color: #6c757d;
    text-decoration: none;
    transition: all 0.3s ease;
    position: relative;
}

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

.breadcrumbs .woocommerce-breadcrumb a::after {
    content: '/';
    margin: 0 8px;
    color: #dee2e6;
}

.breadcrumbs .woocommerce-breadcrumb a:last-of-type::after {
    content: '';
    margin: 0;
}

.breadcrumbs .woocommerce-breadcrumb > span {
    color: var(--text-dark);
    font-weight: 500;
}

.product-main {
    max-width: 1400px;
    margin: 0 auto;
    padding: 12px 12px 140px 12px;
}

.product-container {
    display: grid;
    grid-template-columns: 1fr;
    gap: 16px;
    margin-bottom: 24px;
}

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

.main-image {
    position: relative;
    border-radius: var(--radius-md);
    overflow: hidden;
    background: var(--white);
    box-shadow: var(--shadow-md);
    aspect-ratio: 1 / 1;
}

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

.wishlist-btn {
    position: absolute;
    top: 16px;
    right: 16px;
    width: 44px;
    height: 44px;
    background: rgba(255, 255, 255, 0.95);
    border: none;
    border-radius: 50%;
    color: var(--text-dark);
    font-size: 20px;
    cursor: pointer;
    transition: all 0.3s ease;
    display: flex;
    align-items: center;
    justify-content: center;
    z-index: 2;
    backdrop-filter: blur(10px);
}

.wishlist-btn:hover {
    background: var(--accent-color);
    color: var(--white);
    transform: scale(1.1);
}

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

.wishlist-btn.active i {
    font-weight: 900;
}

.discount-badge {
    position: absolute;
    top: 16px;
    left: 16px;
    padding: 8px 16px;
    background: var(--accent-color);
    color: var(--white);
    font-size: 14px;
    font-weight: 800;
    border-radius: var(--radius-md);
    z-index: 2;
}

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

.thumbnail {
    border-radius: var(--radius-md);
    overflow: hidden;
    cursor: pointer;
    border: 2px solid transparent;
    transition: all 0.3s ease;
    aspect-ratio: 1 / 1;
    object-fit: cover;
}

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

.thumbnail.active {
    border-color: var(--primary-color);
    box-shadow: var(--shadow-md);
}

/* Product Info */
.product-info {
    background: var(--white);
    border-radius: var(--radius-md);
    padding: 20px 16px;
    box-shadow: var(--shadow-sm);
}

.product-name {
    font-size: 22px;
    font-weight: 800;
    color: var(--text-dark);
    margin: 0 0 12px 0;
    line-height: 1.4;
}

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

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

.product-rating .stars i {
    margin-left: 2px;
}

.rating-count {
    font-size: 14px;
    color: var(--text-light);
    font-weight: 600;
}

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

.current-price {
    font-size: 28px;
    font-weight: 800;
    color: var(--primary-color);
}

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

.product-description {
    font-size: 15px;
    line-height: 1.7;
    color: var(--text-light);
    margin-bottom: 20px;
    padding-bottom: 20px;
    border-bottom: 1px solid var(--bg-light);
}

/* Product Options */
.product-options {
    display: flex;
    flex-direction: column;
    gap: 20px;
    margin-bottom: 24px;
}

.option-group {
    display: flex;
    flex-direction: column;
    gap: 10px;
}

.option-label {
    font-size: 15px;
    font-weight: 700;
    color: var(--text-dark);
}

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

.size-btn {
    min-width: 52px;
    height: 52px;
    padding: 0 18px;
    background: var(--bg-light);
    border: 2px solid transparent;
    border-radius: var(--radius-md);
    font-size: 16px;
    font-weight: 700;
    color: var(--text-dark);
    cursor: pointer;
    transition: all 0.3s ease;
    font-family: 'Moltaqa', sans-serif;
}

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

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

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

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

.color-btn:hover {
    transform: scale(1.1);
}

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

.color-btn.active::after {
    content: '\f00c';
    font-family: 'Font Awesome 6 Free';
    font-weight: 900;
    position: absolute;
    top: 50%;
    left: 50%;
    transform: translate(-50%, -50%);
    color: var(--white);
    font-size: 16px;
    text-shadow: 0 0 3px rgba(0,0,0,0.5);
}

/* Quantity Control */
.quantity-control {
    display: flex;
    align-items: center;
    gap: 8px;
    background: var(--bg-light);
    border-radius: var(--radius-md);
    padding: 4px;
    width: fit-content;
}

.qty-btn {
    width: 40px;
    height: 40px;
    background: var(--white);
    border: none;
    border-radius: var(--radius-sm);
    font-size: 20px;
    font-weight: 700;
    color: var(--primary-color);
    cursor: pointer;
    transition: all 0.3s ease;
    display: flex;
    align-items: center;
    justify-content: center;
}

.qty-btn:hover {
    background: var(--primary-color);
    color: var(--white);
}

.qty-input {
    width: 60px;
    text-align: center;
    border: none;
    background: transparent;
    font-size: 18px;
    font-weight: 700;
    color: var(--text-dark);
    font-family: 'Moltaqa', sans-serif;
}

/* Action Buttons */
.product-actions {
    display: grid;
    grid-template-columns: 1fr;
    gap: 10px;
    margin-bottom: 24px;
    padding-bottom: 24px;
    border-bottom: 1px solid var(--bg-light);
}

.add-to-cart-btn,
.buy-now-btn {
    display: flex;
    align-items: center;
    justify-content: center;
    gap: 10px;
    padding: 15px 20px;
    border: none;
    border-radius: var(--radius-md);
    font-size: 16px;
    font-weight: 800;
    cursor: pointer;
    transition: all 0.3s ease;
    font-family: 'Moltaqa', sans-serif;
}

.add-to-cart-btn {
    background: var(--primary-color);
    color: var(--white);
}

.add-to-cart-btn:hover {
    background: var(--primary-dark);
    transform: translateY(-2px);
    box-shadow: var(--shadow-lg);
}

.buy-now-btn {
    background: transparent;
    color: var(--primary-color);
    border: 2px solid var(--primary-color);
}

.buy-now-btn:hover {
    background: var(--bg-light);
}

/* Product Features */
.product-features {
    display: grid;
    gap: 10px;
}

.feature-item {
    display: flex;
    align-items: center;
    gap: 10px;
    padding: 12px;
    background: var(--bg-light);
    border-radius: var(--radius-md);
    font-size: 13px;
    color: var(--text-dark);
}

.feature-item i {
    font-size: 18px;
    color: var(--primary-color);
    min-width: 18px;
}

/* Product Tabs */
.product-tabs {
    background: var(--white);
    border-radius: var(--radius-md);
    box-shadow: var(--shadow-sm);
    margin-bottom: 24px;
    overflow: hidden;
}

.tabs-header {
    display: flex;
    border-bottom: 2px solid var(--bg-light);
    overflow-x: auto;
    -webkit-overflow-scrolling: touch;
}

.tab-btn {
    flex: 1;
    padding: 16px 12px;
    background: transparent;
    border: none;
    font-size: 15px;
    font-weight: 700;
    color: var(--text-light);
    cursor: pointer;
    transition: all 0.3s ease;
    font-family: 'Moltaqa', sans-serif;
    position: relative;
    white-space: nowrap;
    min-width: fit-content;
}

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

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

.tab-btn.active::after {
    content: '';
    position: absolute;
    bottom: -2px;
    left: 0;
    right: 0;
    height: 2px;
    background: var(--primary-color);
}

.tabs-content {
    padding: 20px 16px;
}

.tab-panel {
    display: none;
}

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

.tab-panel h3 {
    font-size: 18px;
    font-weight: 800;
    color: var(--text-dark);
    margin: 0 0 16px 0;
}

.tab-panel h4 {
    font-size: 16px;
    font-weight: 700;
    color: var(--text-dark);
    margin: 20px 0 12px 0;
}

.tab-panel p {
    font-size: 15px;
    line-height: 1.7;
    color: var(--text-light);
    margin-bottom: 14px;
}

.tab-panel ul {
    list-style: none;
    padding: 0;
    margin: 0;
}

.tab-panel ul li {
    padding: 8px 0 8px 24px;
    font-size: 15px;
    color: var(--text-light);
    position: relative;
    line-height: 1.6;
}

.tab-panel ul li::before {
    content: '\f00c';
    font-family: 'Font Awesome 6 Free';
    font-weight: 900;
    position: absolute;
    right: 0;
    color: var(--primary-color);
}

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

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

.specs-table td {
    padding: 12px 8px;
    font-size: 14px;
    vertical-align: top;
}

.specs-table td:first-child {
    font-weight: 700;
    color: var(--text-dark);
    width: 35%;
}

.specs-table td:last-child {
    color: var(--text-light);
    line-height: 1.6;
}

/* Reviews */
.reviews-summary {
    display: grid;
    grid-template-columns: 1fr;
    gap: 24px;
    margin-bottom: 24px;
    padding-bottom: 24px;
    border-bottom: 2px solid var(--bg-light);
}

.rating-overview {
    text-align: center;
    padding: 16px;
    background: var(--bg-light);
    border-radius: var(--radius-md);
}

.average-rating {
    font-size: 48px;
    font-weight: 800;
    color: var(--primary-color);
    margin-bottom: 8px;
}

.rating-overview .stars {
    color: #FFA500;
    font-size: 20px;
    margin-bottom: 8px;
}

.rating-overview .stars i {
    margin: 0 2px;
}

.rating-overview p {
    font-size: 13px;
    color: var(--text-light);
    margin: 0;
}

.rating-bars {
    display: flex;
    flex-direction: column;
    gap: 10px;
}

.rating-bar {
    display: grid;
    grid-template-columns: 70px 1fr 35px;
    align-items: center;
    gap: 10px;
    font-size: 13px;
}

.rating-bar span:first-child {
    color: var(--text-light);
    text-align: right;
}

.rating-bar span:last-child {
    color: var(--text-light);
    text-align: center;
}

.bar {
    height: 7px;
    background: var(--bg-light);
    border-radius: 4px;
    overflow: hidden;
}

.bar .fill {
    height: 100%;
    background: #FFA500;
    border-radius: 4px;
    transition: width 0.5s ease;
}

/* Reviews List */
.reviews-list {
    display: flex;
    flex-direction: column;
    gap: 16px;
}

.review-item {
    padding: 16px;
    background: var(--bg-light);
    border-radius: var(--radius-md);
}

.review-header {
    display: flex;
    justify-content: space-between;
    align-items: flex-start;
    margin-bottom: 10px;
    gap: 8px;
}

.reviewer-info {
    display: flex;
    gap: 10px;
    flex: 1;
}

.reviewer-avatar {
    width: 40px;
    height: 40px;
    background: var(--primary-color);
    border-radius: 50%;
    display: flex;
    align-items: center;
    justify-content: center;
    color: var(--white);
    font-size: 18px;
    flex-shrink: 0;
}

.reviewer-name {
    font-size: 15px;
    font-weight: 700;
    color: var(--text-dark);
    margin: 0 0 4px 0;
}

.review-stars {
    color: #FFA500;
    font-size: 13px;
}

.review-stars i {
    margin-left: 2px;
}

.review-date {
    font-size: 12px;
    color: var(--text-light);
    white-space: nowrap;
}

.review-text {
    font-size: 14px;
    line-height: 1.7;
    color: var(--text-light);
    margin: 0;
}

/* Related Products */
.related-products {
    margin-bottom: 24px;
}

.section-title {
    font-size: 20px;
    font-weight: 800;
    color: var(--text-dark);
    margin: 0 0 16px 0;
    text-align: center;
}

.products-grid {
    display: grid;
    grid-template-columns: repeat(2, 1fr);
    gap: 12px;
}

.product-card {
    background: var(--white);
    border-radius: var(--radius-md);
    overflow: hidden;
    box-shadow: var(--shadow-sm);
    transition: all 0.3s ease;
}

.product-card:hover {
    box-shadow: var(--shadow-md);
    transform: translateY(-2px);
}

.product-image {
    position: relative;
    aspect-ratio: 1 / 1;
    overflow: hidden;
}

.product-image img {
    width: 100%;
    height: 100%;
    object-fit: cover;
    transition: transform 0.3s ease;
}

.product-card:hover .product-image img {
    transform: scale(1.05);
}

.wishlist-icon {
    position: absolute;
    top: 8px;
    right: 8px;
    width: 32px;
    height: 32px;
    background: rgba(255, 255, 255, 0.95);
    border: none;
    border-radius: 50%;
    color: var(--text-dark);
    font-size: 14px;
    cursor: pointer;
    transition: all 0.3s ease;
    display: flex;
    align-items: center;
    justify-content: center;
    backdrop-filter: blur(10px);
}

.wishlist-icon:hover {
    background: var(--accent-color);
    color: var(--white);
    transform: scale(1.1);
}

.product-badge {
    position: absolute;
    top: 8px;
    left: 8px;
    padding: 4px 8px;
    font-size: 11px;
    font-weight: 700;
    border-radius: var(--radius-sm);
    color: var(--white);
}

.product-badge.new {
    background: #4CAF50;
}

.product-badge.sale {
    background: var(--accent-color);
}

.product-info-card {
    padding: 12px;
}

.product-title {
    font-size: 14px;
    font-weight: 700;
    color: var(--text-dark);
    margin: 0 0 6px 0;
    line-height: 1.4;
    display: -webkit-box;
    -webkit-line-clamp: 2;
    -webkit-box-orient: vertical;
    overflow: hidden;
}

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

.product-rating .stars {
    font-size: 12px;
}

.reviews-count {
    font-size: 11px;
    color: var(--text-light);
}

.product-price-card {
    display: flex;
    align-items: center;
    gap: 6px;
    margin-bottom: 8px;
}

.product-price-card .price {
    font-size: 16px;
    font-weight: 800;
    color: var(--primary-color);
}

.old-price-card {
    font-size: 13px;
    font-weight: 600;
    color: var(--text-light);
    text-decoration: line-through;
}

.add-to-cart {
    width: 100%;
    padding: 10px 12px;
    background: var(--primary-color);
    color: var(--white);
    border: none;
    border-radius: var(--radius-md);
    font-size: 13px;
    font-weight: 700;
    cursor: pointer;
    transition: all 0.3s ease;
    font-family: 'Moltaqa', sans-serif;
    display: flex;
    align-items: center;
    justify-content: center;
    gap: 6px;
}

.add-to-cart:hover {
    background: var(--primary-dark);
}

/* Responsive Design */
@media (min-width: 768px) {
    .product-main {
        padding: 32px 40px 60px 40px;
    }

    .product-container {
        grid-template-columns: 1fr 1fr;
        gap: 40px;
        margin-bottom: 40px;
    }

    .product-gallery {
        gap: 16px;
    }

    .main-image {
        border-radius: var(--radius-lg);
    }

    .thumbnail-images {
        grid-template-columns: repeat(4, 1fr);
        gap: 12px;
    }

    .product-info {
        padding: 28px 24px;
        border-radius: var(--radius-lg);
    }

    .product-name {
        font-size: 28px;
        margin-bottom: 16px;
    }

    .product-rating {
        gap: 12px;
        margin-bottom: 20px;
    }

    .product-rating .stars {
        font-size: 18px;
    }

    .rating-count {
        font-size: 15px;
    }

    .product-price {
        gap: 16px;
        margin-bottom: 20px;
    }

    .current-price {
        font-size: 36px;
    }

    .old-price {
        font-size: 24px;
    }

    .product-description {
        font-size: 16px;
        margin-bottom: 28px;
        padding-bottom: 28px;
    }

    .product-options {
        gap: 24px;
        margin-bottom: 28px;
    }

    .option-label {
        font-size: 16px;
    }

    .product-actions {
        grid-template-columns: 1fr 1fr;
        gap: 12px;
        margin-bottom: 28px;
        padding-bottom: 28px;
    }

    .add-to-cart-btn,
    .buy-now-btn {
        padding: 16px 24px;
        font-size: 18px;
    }

    .product-features {
        grid-template-columns: 1fr 1fr;
        gap: 16px;
    }

    .feature-item {
        font-size: 14px;
    }

    .feature-item i {
        font-size: 20px;
    }

    .product-tabs {
        border-radius: var(--radius-lg);
        margin-bottom: 40px;
    }

    .tab-btn {
        padding: 20px 24px;
        font-size: 16px;
    }

    .tabs-content {
        padding: 32px 24px;
    }

    .tab-panel h3 {
        font-size: 22px;
        margin-bottom: 20px;
    }

    .tab-panel h4 {
        font-size: 18px;
        margin: 24px 0 12px 0;
    }

    .tab-panel p {
        font-size: 16px;
    }

    .tab-panel ul li {
        font-size: 16px;
    }

    .specs-table td {
        padding: 16px 12px;
        font-size: 16px;
    }

    .reviews-summary {
        grid-template-columns: 200px 1fr;
        gap: 48px;
        margin-bottom: 32px;
        padding-bottom: 32px;
    }

    .rating-overview {
        padding: 0;
        background: transparent;
    }

    .average-rating {
        font-size: 56px;
    }

    .rating-overview .stars {
        font-size: 24px;
    }

    .rating-overview p {
        font-size: 14px;
    }

    .rating-bar {
        grid-template-columns: 80px 1fr 40px;
        gap: 12px;
        font-size: 14px;
    }

    .bar {
        height: 8px;
    }

    .reviews-list {
        gap: 24px;
    }

    .review-item {
        padding: 24px;
    }

    .review-header {
        margin-bottom: 12px;
    }

    .reviewer-avatar {
        width: 48px;
        height: 48px;
        font-size: 20px;
    }

    .reviewer-name {
        font-size: 16px;
    }

    .review-stars {
        font-size: 14px;
    }

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

    .review-text {
        font-size: 15px;
    }

    .related-products {
        margin-bottom: 40px;
    }

    .section-title {
        font-size: 28px;
        margin-bottom: 24px;
    }

    .products-grid {
        grid-template-columns: repeat(4, 1fr);
        gap: 24px;
    }

    .product-badge {
        top: 12px;
        left: 12px;
        padding: 6px 12px;
        font-size: 12px;
    }

    .wishlist-icon {
        top: 12px;
        right: 12px;
        width: 36px;
        height: 36px;
        font-size: 16px;
    }

    .product-info-card {
        padding: 16px;
    }

    .product-title {
        font-size: 16px;
        margin-bottom: 8px;
    }

    .product-rating {
        gap: 6px;
        margin-bottom: 12px;
    }

    .product-rating .stars {
        font-size: 14px;
    }

    .reviews-count {
        font-size: 13px;
    }

    .product-price-card {
        gap: 8px;
        margin-bottom: 12px;
    }

    .product-price-card .price {
        font-size: 20px;
    }

    .old-price-card {
        font-size: 16px;
    }

    .add-to-cart {
        padding: 12px 16px;
        font-size: 15px;
        gap: 8px;
    }
}

@media (min-width: 1024px) {
    .product-container {
        grid-template-columns: 1.2fr 1fr;
        gap: 48px;
    }

    .product-name {
        font-size: 32px;
    }

    .current-price {
        font-size: 42px;
    }
}

@media (min-width: 1440px) {
    .product-main {
        max-width: 1400px;
    }
}
