/* Product Detail Page Specific Styles */

/* Button Styles */
.btn-light {
    background: var(--color-background) !important;
    color: var(--color-primary) !important;
    border: 1px solid var(--color-primary) !important;
}

.btn-light:hover {
    background-color: #f4992c !important;
    color: #ffffff !important;
}

.main-content {
    padding-top: 120px;
    padding-bottom: 72px;
}

.product-section {
    display: flex;
    flex-direction: column;
    gap: 24px;
}

.breadcrumbs ol {
    display: flex;
    align-items: center;
    gap: 8px;
    margin: 0;
    padding: 0;
    list-style: none;
}

.breadcrumbs a {
    color: #737373;
    font-size: 14px;
    line-height: 18px;
}

.breadcrumbs a:hover {
    text-decoration: underline;
}

.breadcrumbs span {
    color: #262626;
    font-size: 14px;
    line-height: 18px;
}

.breadcrumbs img {
    width: 14px;
    height: 14px;
}

.product-layout {
    display: flex;
    gap: 40px;
}

.product-layout__gallery {
    flex: 1;
    min-width: 0;
    border: 1px solid #cccccc;
    background-color: #ffffff;
    display: flex;
    align-items: center;
    justify-content: center;
    overflow: hidden;
}

.product-layout__gallery img {
    width: 100%;
    height: auto;
    object-fit: cover;
}

.product-layout__info {
    flex: 1;
    min-width: 0;
    max-width: 100%;
    display: flex;
    flex-direction: column;
}

.product-layout__info h1 {
    margin: 0 0 20px 0;
    font-size: 32px;
    font-weight: 600;
    line-height: 1.2;
    color: #262626;
}

.product-info-group {
    display: flex;
    flex-direction: column;
    gap: 16px;
    flex-grow: 1;
}

.product-info-block h3 {
    margin: 0 0 8px 0;
    font-size: 16px;
    font-weight: 600;
    line-height: 24px;
    color: #000000;
}

.product-info-block p {
    margin: 0;
    font-size: 16px;
    line-height: 24px;
    color: #262626;
    overflow: hidden;
}

.product-actions {
    display: flex;
    gap: 16px;
    margin-top: 24px;
}

.related-products-section {
    margin-top: 80px;
}

.related-products__header {
    background-color: #ebeffc;
    padding: 24px;
    margin-bottom: 24px;
}

.related-products__header h2 {
    margin: 0;
    font-size: 24px;
    font-weight: 600;
    line-height: 32px;
    color: #262626;
}

.related-products__grid {
    display: grid;
    grid-template-columns: repeat(3, 1fr);
    gap: 24px;
}

.product-card {
    background-color: #f0f0f0;
    padding: 16px;
    display: flex;
    flex-direction: column;
    gap: 13px;
}

.product-card__image-wrapper {
    background-color: #ffffff;
    overflow: hidden;
    aspect-ratio: 352 / 183;
    display: flex;
    align-items: center;
    justify-content: center;
}

.product-card__image {
    width: 100%;
    height: 100%;
    object-fit: cover;
}

.product-card__content {
    display: flex;
    flex-direction: column;
    gap: 8px;
    flex-grow: 1;
}

.product-card__content h3 {
    margin: 0;
    font-size: 20px;
    font-weight: 600;
    line-height: 24px;
    color: #262626;
}

.product-card__content p {
    margin: 0;
    font-size: 14px;
    line-height: 18px;
    color: #404040;
    flex-grow: 1;
}

.product-tags {
    display: flex;
    flex-wrap: wrap;
    gap: 8px;
    margin-top: 8px;
}
.product-tags .tag {
    background: #f0f0f0;
    padding: 4px 12px;
    border-radius: 16px;
    font-size: 14px;
    color: #333;
    border: 1px solid #ddd;
}

.product-card__link {
    display: flex;
    align-items: center;
    gap: 8px;
    font-size: 14px;
    font-weight: 700;
    line-height: 18px;
    color: #f4992c;
    margin-top: auto;
}

.product-card__link:hover span {
    text-decoration: underline;
}

@media (max-width: 1024px) {
    .product-layout {
        flex-direction: column;
    }

    .related-products__grid {
        grid-template-columns: repeat(2, 1fr);
    }
}

@media (max-width: 768px) {
    .main-content {
        padding-top: 32px;
    }

    .product-actions {
        flex-direction: column;
    }

    .related-products__grid {
        grid-template-columns: 1fr;
    }
}
