/* Product Page Specific Styles */
.product-section {
    padding: 4rem 0;
}

.product-container {
    max-width: 1200px;
    margin: 0 auto;
    padding: 0 1.5rem;
}

.product-header {
    margin-bottom: 2rem;
    padding-top: 34px;
}

.breadcrumbs {
    display: flex;
    align-items: center;
    flex-wrap: wrap;
    gap: 0.5rem;
    font-size: 0.9rem;
    color: var(--gray);
    margin-bottom: 1rem;
}

.breadcrumbs a {
    color: var(--gray);
    text-decoration: none;
    transition: color 0.3s;
}

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

.breadcrumbs span {
    color: var(--dark);
}

.product-title {
    font-size: 2.2rem;
    color: var(--dark);
    margin: 0;
    line-height: 1.3;
}

.product-content {
    display: grid;
    grid-template-columns: 1fr 350px;
    gap: 2rem;
    align-items: start;
}

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

/* Gallery Styles */
.product-gallery {
    margin-bottom: 3rem;
}

.main-image {
    height: 450px;
    border-radius: 10px;
    overflow: hidden;
    margin-bottom: 1rem;
}

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

.gallery-thumbs {
    display: grid;
    grid-template-columns: repeat(auto-fill, minmax(80px, 1fr));
    gap: 0.8rem;
}

.thumb-item {
    height: 80px;
    border-radius: 6px;
    overflow: hidden;
    cursor: pointer;
    border: 2px solid transparent;
    transition: all 0.3s;
}

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

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

/* Video Section */
.video-section {
    margin: 3rem 0;
}

.section-title {
    font-size: 1.8rem;
    color: var(--dark);
    margin-bottom: 1.5rem;
    position: relative;
    padding-bottom: 0.8rem;
}

.section-title::after {
    content: '';
    position: absolute;
    bottom: 0;
    left: 0;
    width: 60px;
    height: 3px;
    background-color: var(--primary);
}

.video-grid {
    display: grid;
    grid-template-columns: repeat(auto-fill, minmax(300px, 1fr));
    gap: 1.5rem;
}

.video-item {
    border-radius: 8px;
    overflow: hidden;
    height: 200px;
    position: relative;
}

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

.video-item::after {
    content: '\f04b';
    font-family: 'Font Awesome 5 Free';
    font-weight: 900;
    position: absolute;
    top: 50%;
    left: 50%;
    transform: translate(-50%, -50%);
    color: white;
    background-color: rgba(0, 0, 0, 0.5);
    width: 50px;
    height: 50px;
    border-radius: 50%;
    display: flex;
    align-items: center;
    justify-content: center;
    font-size: 1.2rem;
}

/* Product Details */
.product-details {
    background-color: white;
    border-radius: 10px;
    padding: 2rem;
    box-shadow: 0 5px 15px rgba(0, 0, 0, 0.05);
    position: sticky;
    top: 120px;
}

.price-block {
    margin-bottom: 1.5rem;
}

.current-price {
    font-size: 2rem;
    font-weight: 700;
    color: var(--dark);
}

.availability {
    display: flex;
    align-items: center;
    gap: 0.5rem;
    color: var(--success);
    font-weight: 600;
    margin-bottom: 1.5rem;
}

.availability.out-of-stock {
    color: #ef4444;
}

/* Quick Links */
.quick-links {
    margin: 2rem 0;
}

.quick-links-title {
    font-size: 1.2rem;
    color: var(--dark);
    margin-bottom: 1rem;
    font-weight: 600;
}

.quick-link {
    display: block;
    padding: 0.8rem 1rem;
    color: var(--primary);
    text-decoration: none;
    border-radius: 6px;
    transition: all 0.3s;
    margin-bottom: 0.5rem;
}

.quick-link:hover {
    background-color: rgba(37, 99, 235, 0.1);
}

.quick-link i {
    margin-right: 0.8rem;
    width: 20px;
    text-align: center;
}

/* Delivery Info */
.delivery-info {
    background-color: rgba(37, 99, 235, 0.05);
    padding: 1.5rem;
    border-radius: 8px;
}

.delivery-item {
    display: flex;
    align-items: flex-start;
    gap: 0.8rem;
    margin-bottom: 1rem;
}

.delivery-item:last-child {
    margin-bottom: 0;
}

.delivery-item i {
    color: var(--primary);
    margin-top: 0.2rem;
}

.delivery-title {
    font-weight: 600;
    color: var(--dark);
    margin-bottom: 0.2rem;
}

.delivery-text {
    color: var(--gray);
    font-size: 0.9rem;
}

/* Description */
.product-description {
    margin: 3rem 0;
}

.description-content {
    line-height: 1.7;
    font-size: 1.05rem;
    color: var(--dark);
}

.description-content p {
    margin-bottom: 1.5rem;
}

/* Specifications Tab */
.product-tabs {
    margin: 3rem 0;
}

.tabs-header {
    display: flex;
    border-bottom: 1px solid rgba(0, 0, 0, 0.1);
    margin-bottom: 2rem;
}

.tab-btn {
    padding: 1rem 1.5rem;
    background: none;
    border: none;
    cursor: pointer;
    font-weight: 600;
    color: var(--gray);
    position: relative;
    transition: all 0.3s;
}

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

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

.tab-content {
    display: none;
}

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

.specs-grid {
    display: grid;
    grid-template-columns: repeat(2, 1fr);
    gap: 1rem;
}

@media (max-width: 768px) {
    .specs-grid {
        grid-template-columns: 1fr;
    }
}

.spec-item {
    display: flex;
    justify-content: space-between;
    padding: 0.8rem 0;
    border-bottom: 1px solid rgba(0, 0, 0, 0.05);
}

.spec-name {
    color: var(--gray);
}

.spec-value {
    font-weight: 600;
    color: var(--dark);
}

/* Options Selector */
.options-selector {
    margin: 3rem 0;
}

.options-title {
    font-size: 1.8rem;
    color: var(--dark);
    margin-bottom: 1.5rem;
    position: relative;
    padding-bottom: 0.8rem;
}

.options-title::after {
    content: '';
    position: absolute;
    bottom: 0;
    left: 0;
    width: 60px;
    height: 3px;
    background-color: var(--primary);
}

.options-container {
    display: grid;
    grid-template-columns: 1fr 1fr;
    gap: 1.5rem;
}

@media (max-width: 768px) {
    .options-container {
        grid-template-columns: 1fr;
    }
}

.options-column {
    border: 1px solid rgba(0, 0, 0, 0.1);
    border-radius: 8px;
    padding: 1rem;
}

.column-title {
    font-weight: 600;
    color: var(--dark);
    margin-bottom: 1rem;
    text-align: center;
    padding-bottom: 0.5rem;
    border-bottom: 1px solid rgba(0, 0, 0, 0.1);
}

.option-item {
    display: flex;
    padding: 1rem 0;
    border-bottom: 1px solid rgba(0, 0, 0, 0.05);
    align-items: center;
}

.option-item:last-child {
    border-bottom: none;
}

.option-image {
    width: 60px;
    height: 60px;
    border-radius: 6px;
    overflow: hidden;
    margin-right: 1rem;
    flex-shrink: 0;
}

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

.option-content {
    flex: 1;
}

.option-name {
    font-weight: 500;
    margin-bottom: 0.3rem;
}

.option-desc {
    font-size: 0.9rem;
    color: var(--gray);
    margin-bottom: 0.5rem;
}

.option-price {
    font-weight: 600;
    color: var(--primary);
}

.option-action {
    background: none;
    border: none;
    cursor: pointer;
    color: var(--primary);
    font-size: 1.2rem;
    width: 36px;
    height: 36px;
    display: flex;
    align-items: center;
    justify-content: center;
    border-radius: 50%;
    transition: all 0.3s;
    flex-shrink: 0;
}

.option-action:hover {
    background-color: rgba(37, 99, 235, 0.1);
}

.total-price {
    margin-top: 2rem;
    padding-top: 1.5rem;
    border-top: 1px solid rgba(0, 0, 0, 0.1);
    display: flex;
    justify-content: space-between;
    align-items: center;
}

.total-label {
    font-weight: 600;
    color: var(--dark);
    font-size: 1.1rem;
}

.total-value {
    font-size: 1.5rem;
    font-weight: 700;
    color: var(--dark);
}

.no-options {
    color: var(--gray);
    text-align: center;
    padding: 1rem;
    font-size: 0.9rem;
}

.product-subtitle {
    margin-top: 0.5rem;
    color: var(--gray);
    font-size: 1rem;
}

.no-media-message {
    min-height: 280px;
    border: 2px dashed rgba(0, 0, 0, 0.1);
    border-radius: 10px;
    display: flex;
    align-items: center;
    justify-content: center;
    text-align: center;
    color: var(--gray);
    padding: 2rem;
}

.video-grid--embed {
    grid-template-columns: 1fr;
}

.video-grid--embed .video-embed {
    width: 100%;
}

.video-grid--embed iframe,
.video-grid--embed video {
    width: 100%;
    min-height: 320px;
    border: none;
    border-radius: 8px;
    display: block;
}

.product-article {
    display: block;
    margin-top: 0.5rem;
    font-size: 0.9rem;
    color: var(--gray);
}

.quick-specs {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(140px, 1fr));
    gap: 0.8rem;
    margin-bottom: 1.5rem;
}

.quick-specs__item {
    background-color: rgba(15, 23, 42, 0.03);
    border-radius: 8px;
    padding: 0.8rem;
    display: flex;
    flex-direction: column;
    gap: 0.3rem;
}

.quick-specs__item .label {
    font-size: 0.75rem;
    color: var(--gray);
    text-transform: uppercase;
    letter-spacing: 0.05em;
}

.quick-specs__item .value {
    font-weight: 600;
    color: var(--dark);
}

.image-modal {
    position: fixed;
    inset: 0;
    display: flex;
    align-items: center;
    justify-content: center;
    background: rgba(0, 0, 0, 0.75);
    opacity: 0;
    pointer-events: none;
    transition: opacity 0.2s ease;
    z-index: 1000;
}

.image-modal.is-open {
    opacity: 1;
    pointer-events: auto;
}

.image-modal__backdrop {
    position: absolute;
    inset: 0;
}

.image-modal__content {
    position: relative;
    max-width: min(90vw, 1200px);
    max-height: 90vh;
    padding: 0;
}

.image-modal__content img {
    display: block;
    max-width: 100%;
    max-height: 90vh;
    border-radius: 12px;
    box-shadow: 0 20px 40px rgba(0, 0, 0, 0.3);
}

.image-modal__close {
    position: absolute;
    top: 16px;
    right: 16px;
    border: none;
    background: rgba(255, 255, 255, 0.95);
    color: #0f172a;
    width: 44px;
    height: 44px;
    border-radius: 50%;
    font-size: 1.3rem;
    cursor: pointer;
    display: flex;
    align-items: center;
    justify-content: center;
    box-shadow: 0 12px 24px rgba(0, 0, 0, 0.18);
    transition: transform 0.2s ease, background 0.2s ease, color 0.2s ease;
    z-index: 2;
}

.image-modal__close:hover {
    background: #0f172a;
    color: #fff;
    transform: scale(1.05);
}

.image-modal__nav {
    position: absolute;
    top: 50%;
    transform: translateY(-50%);
    border: none;
    background: rgba(15, 23, 42, 0.6);
    color: #fff;
    width: 48px;
    height: 48px;
    border-radius: 50%;
    display: flex;
    align-items: center;
    justify-content: center;
    cursor: pointer;
    font-size: 1.2rem;
    transition: background 0.2s ease;
}

.image-modal__nav:hover {
    background: rgba(15, 23, 42, 0.85);
}

.image-modal__nav--prev {
    left: -64px;
}

.image-modal__nav--next {
    right: -64px;
}

@media (max-width: 768px) {
    .image-modal__nav--prev {
        left: 8px;
    }

    .image-modal__nav--next {
        right: 8px;
    }
}

.image-modal__counter {
    position: absolute;
    bottom: -32px;
    left: 50%;
    transform: translateX(-50%);
    background: rgba(15, 23, 42, 0.85);
    color: #fff;
    padding: 0.3rem 0.8rem;
    border-radius: 999px;
    font-size: 0.85rem;
}
