:root {
    --gold: #D4AF37;
    --dark: #1A2930;
    --light: #F5F5F5;
    --accent: #C41E3A;
    --primary: #2a7e4d;
}

.scroll-progress {
    position: fixed;
    top: 0;
    left: 0;
    width: 0%;
    height: 4px;
    background: linear-gradient(90deg, var(--gold), var(--primary));
    z-index: 9999;
    transition: width 0.3s ease;
}

.breadcrumb {
    background-color: white;
    padding: 15px 0;
    border-bottom: 1px solid #eee;
}

.breadcrumb a {
    color: var(--primary);
    text-decoration: none;
}

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

.breadcrumb .active {
    color: #666;
}

.breadcrumb-list {
    list-style: none;
    padding: 0;
    margin: 0;
    display: flex;
    flex-wrap: wrap;
    gap: 8px;
}

.breadcrumb-list li {
    display: flex;
    align-items: center;
}

.breadcrumb-list li:not(:last-child)::after {
    content: '/';
    margin-left: 8px;
    color: #999;
}

.product-main {
    padding: 50px 0;
    background-color: white;
}

.product-gallery {
    display: grid;
    grid-template-columns: 1fr 1fr;
    gap: 50px;
}

.gallery-main {
    position: relative;
    aspect-ratio: 1;
    background-color: #f9f9f9;
    border-radius: 15px;
    overflow: hidden;
    cursor: zoom-in;
}

.gallery-main img {
    width: 100%;
    height: 100%;
    object-fit: cover;
    transition: transform 0.3s;
}

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

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

.gallery-thumb {
    aspect-ratio: 1;
    background-color: #f9f9f9;
    border-radius: 8px;
    overflow: hidden;
    cursor: pointer;
    border: 2px solid transparent;
    transition: all 0.3s;
}

.gallery-thumb:hover,
.gallery-thumb.active {
    border-color: var(--gold);
}

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

.product-info {
    display: flex;
    flex-direction: column;
    justify-content: center;
}

.product-badge {
    display: inline-block;
    background-color: #8B5CF6;
    color: white;
    padding: 5px 15px;
    border-radius: 20px;
    font-size: 0.85rem;
    margin-bottom: 15px;
}

.product-title {
    font-size: 2.5rem;
    color: var(--dark);
    margin-bottom: 20px;
}

.product-subtitle {
    font-size: 1.2rem;
    color: #666;
    margin-bottom: 25px;
}

.product-price {
    display: flex;
    align-items: baseline;
    gap: 10px;
    margin-bottom: 30px;
}

.price-current {
    font-size: 2.5rem;
    color: var(--accent);
    font-weight: bold;
}

.price-unit {
    font-size: 1rem;
    color: #666;
}

.product-desc {
    font-size: 1.1rem;
    color: #555;
    line-height: 1.8;
    margin-bottom: 30px;
}

.product-sku {
    background-color: #f9f9f9;
    padding: 15px;
    border-radius: 8px;
    margin-bottom: 30px;
}

.sku-label {
    color: #888;
    font-size: 0.9rem;
}

.sku-value {
    font-family: monospace;
    font-weight: bold;
    color: var(--dark);
}

.buy-buttons {
    display: flex;
    gap: 15px;
    flex-wrap: wrap;
}

.btn-primary {
    background-color: var(--primary);
    color: white;
    border: none;
    padding: 15px 40px;
    border-radius: 30px;
    font-size: 1.1rem;
    font-weight: bold;
    cursor: pointer;
    transition: all 0.3s;
    display: flex;
    align-items: center;
    gap: 10px;
}

.btn-primary:hover {
    background-color: #1f5c3a;
    transform: translateY(-2px);
    box-shadow: 0 5px 15px rgba(42, 126, 77, 0.3);
}

.btn-secondary {
    background-color: transparent;
    color: var(--dark);
    border: 2px solid var(--dark);
    padding: 15px 40px;
    border-radius: 30px;
    font-size: 1.1rem;
    font-weight: bold;
    cursor: pointer;
    transition: all 0.3s;
    display: flex;
    align-items: center;
    gap: 10px;
}

.btn-secondary:hover {
    background-color: var(--dark);
    color: white;
}

.product-features {
    padding: 50px 0;
    background-color: #f9f9f9;
}

.section-title {
    text-align: center;
    margin-bottom: 40px;
}

.section-title h2 {
    font-size: 2.2rem;
    color: var(--dark);
    position: relative;
    display: inline-block;
}

.section-title h2::after {
    content: '';
    position: absolute;
    bottom: -10px;
    left: 0;
    right: 0;
    height: 3px;
    background: linear-gradient(90deg, var(--gold), var(--primary));
    border-radius: 2px;
}

.features-grid {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(300px, 1fr));
    gap: 30px;
}

.feature-card {
    background-color: white;
    padding: 30px;
    border-radius: 15px;
    text-align: center;
    transition: transform 0.3s, box-shadow 0.3s;
}

.feature-card:hover {
    transform: translateY(-10px);
    box-shadow: 0 10px 30px rgba(0, 0, 0, 0.1);
}

.feature-icon {
    font-size: 3rem;
    color: #8B5CF6;
    margin-bottom: 20px;
}

.feature-card h3 {
    font-size: 1.4rem;
    color: var(--dark);
    margin-bottom: 15px;
}

.feature-card p {
    color: #666;
    line-height: 1.6;
}

.product-specs {
    padding: 50px 0;
    background-color: white;
}

.specs-table {
    width: 100%;
    border-collapse: collapse;
}

.specs-table th,
.specs-table td {
    padding: 15px;
    text-align: left;
    border-bottom: 1px solid #eee;
}

.specs-table th {
    width: 30%;
    background-color: #f9f9f9;
    font-weight: bold;
    color: var(--dark);
}

.specs-table td {
    color: #555;
}

.related-products {
    padding: 50px 0;
    background-color: #f9f9f9;
}

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

.related-card {
    background-color: white;
    border-radius: 15px;
    overflow: hidden;
    transition: transform 0.3s;
    cursor: pointer;
}

.related-card:hover {
    transform: translateY(-5px);
}

.related-img {
    height: 260px;
    background-color: #f5f5f5;
    background-size: contain;
    background-repeat: no-repeat;
    background-position: center center;
    display: flex;
    align-items: center;
    justify-content: center;
}

.related-info {
    padding: 20px;
}

.related-title {
    font-size: 1.2rem;
    color: var(--dark);
    margin-bottom: 10px;
}

.related-desc {
    color: #666;
    font-size: 0.95rem;
    margin-bottom: 15px;
}

.related-price {
    font-size: 1.3rem;
    color: var(--accent);
    font-weight: bold;
}

.back-to-top {
    position: fixed;
    bottom: 30px;
    right: 30px;
    width: 50px;
    height: 50px;
    background-color: var(--dark);
    color: white;
    border-radius: 50%;
    display: flex;
    align-items: center;
    justify-content: center;
    cursor: pointer;
    opacity: 0;
    visibility: hidden;
    transition: all 0.3s;
    z-index: 1000;
}

.back-to-top.show {
    opacity: 1;
    visibility: visible;
}

.back-to-top:hover {
    background-color: var(--gold);
    color: var(--dark);
}

.link-error-modal {
    position: fixed;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    background-color: rgba(0, 0, 0, 0.7);
    display: flex;
    align-items: center;
    justify-content: center;
    opacity: 0;
    visibility: hidden;
    transition: all 0.3s ease;
    z-index: 9999;
}

.link-error-modal.show {
    opacity: 1;
    visibility: visible;
}

.link-error-content {
    background-color: white;
    padding: 40px;
    border-radius: 15px;
    text-align: center;
    max-width: 400px;
    width: 90%;
    transform: scale(0.9);
    transition: transform 0.3s ease;
}

.link-error-modal.show .link-error-content {
    transform: scale(1);
}

.error-icon {
    font-size: 4rem;
    margin-bottom: 20px;
}

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

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

    .price-current {
        font-size: 2rem;
    }

    .buy-buttons {
        flex-direction: column;
    }

    .btn-primary,
    .btn-secondary {
        width: 100%;
        justify-content: center;
    }

    .specs-table th {
        width: 40%;
    }
}

@media (max-width: 576px) {
    .gallery-thumbs {
        grid-template-columns: repeat(3, 1fr);
    }

    .product-title {
        font-size: 1.6rem;
    }

    .section-title h2 {
        font-size: 1.8rem;
    }
}