.breadcrumb-nav {
    padding: 18px 0 0;
}

.breadcrumb-nav nav {
    color: var(--text-medium);
    font-size: 14px;
}

.breadcrumb-nav a {
    color: var(--accent);
    text-decoration: none;
    font-weight: 600;
}

.product-section {
    padding: 30px 0 24px;
}

.product-container {
    display: grid;
    grid-template-columns: minmax(0, 1fr) minmax(360px, 0.92fr);
    gap: 30px;
    align-items: start;
}

.product-gallery,
.product-details,
.specifications,
.related-products,
.inquiry-modal,
.image-modal-content {
    background: rgba(255,255,255,0.88);
    border: 1px solid rgba(26, 67, 112, 0.10);
    border-radius: 24px;
    box-shadow: var(--shadow-sm);
    backdrop-filter: blur(18px);
}

.product-gallery,
.product-details,
.specifications,
.related-products,
.inquiry-modal {
    overflow: hidden;
}

.product-gallery,
.product-details,
.specifications,
.related-products {
    padding: 26px;
}

.product-gallery {
    position: relative;
}

.product-badges {
    display: flex;
    gap: 8px;
    margin-bottom: 16px;
}

.main-image {
    position: relative;
    display: flex;
    align-items: center;
    justify-content: center;
    min-height: 480px;
    padding: 30px;
    background: radial-gradient(circle at center, #ffffff 0%, #eff7ff 64%, #e4f0fc 100%);
    border: 1px solid rgba(26, 67, 112, 0.08);
    border-radius: 20px;
}

.product-main-image {
    max-width: 100%;
    max-height: 420px;
    object-fit: contain;
}

.view-full-button {
    position: absolute;
    right: 18px;
    bottom: 18px;
    display: inline-flex;
    align-items: center;
    gap: 8px;
    min-height: 42px;
    padding: 0 18px;
    border: 0;
    border-radius: 999px;
    box-shadow: 0 16px 34px rgba(47,125,246,0.24);
    cursor: pointer;
}

.thumbnail-gallery {
    display: grid;
    grid-template-columns: repeat(auto-fill, minmax(88px, 1fr));
    gap: 12px;
    margin-top: 16px;
}

.thumbnail {
    display: flex;
    align-items: center;
    justify-content: center;
    min-height: 88px;
    padding: 10px;
    background: rgba(248,252,255,0.88);
    border: 1px solid rgba(26, 67, 112, 0.08);
    border-radius: 16px;
    cursor: pointer;
    transition: var(--transition);
}

.thumbnail.active,
.thumbnail:hover {
    border-color: rgba(47,125,246,0.24);
    box-shadow: var(--shadow-sm);
}

.thumbnail img {
    width: 100%;
    height: 64px;
    object-fit: contain;
}

.product-details h1 {
    margin: 0 0 12px;
    font-size: clamp(34px, 4vw, 50px);
    line-height: 0.98;
    color: var(--text-dark);
}

.vendor,
.product-description p,
.color-label,
.modal-header p {
    color: var(--text-medium);
    line-height: 1.8;
}

.product-quick-facts {
    display: grid;
    grid-template-columns: repeat(3, minmax(0, 1fr));
    gap: 14px;
    margin: 20px 0;
}

.product-quick-facts div,
.inventory-display,
.related-product-card,
.accordion-item,
.company-info-box {
    background: rgba(248,252,255,0.88);
    border: 1px solid rgba(26, 67, 112, 0.08);
    border-radius: 18px;
}

.product-quick-facts div {
    padding: 16px 18px;
}

.product-quick-facts span,
.spec-label,
.inventory-title,
.option-title,
.form-label {
    display: block;
    margin-bottom: 6px;
    font-size: 12px;
    font-weight: 800;
    letter-spacing: 0.08em;
    text-transform: uppercase;
    color: var(--text-light);
}

.product-quick-facts strong,
.spec-value,
.info-value,
.info-label {
    color: var(--text-dark);
}

.price {
    margin: 0 0 18px;
    font-size: 30px;
    font-weight: 800;
    color: var(--text-dark);
}

.configuration-form {
    margin-top: 20px;
}

.color-options {
    display: flex;
    flex-wrap: wrap;
    gap: 10px;
}

.color-option {
    width: 34px;
    height: 34px;
    border-radius: 50%;
    border: 2px solid rgba(26, 67, 112, 0.14);
    cursor: pointer;
    transition: var(--transition);
}

.color-option.active {
    box-shadow: 0 0 0 4px rgba(47,125,246,0.14);
    transform: scale(1.04);
}

.color-black { background: #111827; }
.color-white { background: #ffffff; }
.color-red { background: #ef4444; }
.color-blue { background: #3b82f6; }
.color-green { background: #22c55e; }
.color-yellow { background: #facc15; }
.color-orange { background: #fb923c; }
.color-purple { background: #a855f7; }
.color-pink { background: #ec4899; }
.color-brown { background: #8b5e3c; }
.color-gray { background: #9ca3af; }
.color-lightgray { background: #d1d5db; }
.color-darkgray { background: #4b5563; }
.color-silver { background: linear-gradient(135deg, #d1d5db, #f3f4f6); }
.color-charcoal { background: #374151; }
.color-teal { background: #14b8a6; }
.color-lime { background: #84cc16; }
.color-navy { background: #1e3a8a; }
.color-olive { background: #6b8e23; }
.color-maroon { background: #7f1d1d; }

.inventory-display {
    display: none;
    padding: 18px;
    margin-bottom: 18px;
}

.inventory-items {
    display: grid;
    gap: 10px;
}

.quantity-control {
    display: grid;
    grid-template-columns: 52px minmax(0, 1fr) 52px;
    gap: 10px;
    align-items: center;
}

.quantity-btn {
    min-height: 48px;
    border: 0;
    border-radius: 16px;
    cursor: pointer;
    font-size: 18px;
    font-weight: 800;
}

.quantity-input {
    min-height: 48px;
    text-align: center;
    font-weight: 700;
}

.specifications {
    margin-top: 20px;
}

.specifications h2,
.related-products h3,
.modal-header h2 {
    margin: 0 0 18px;
    font-size: 32px;
    color: var(--text-dark);
}

.accordion {
    display: grid;
    gap: 14px;
}

.accordion-item {
    overflow: hidden;
}

.accordion-button {
    width: 100%;
    display: flex;
    align-items: center;
    justify-content: space-between;
    gap: 12px;
    padding: 20px 22px;
    border: 0;
    background: transparent;
    color: var(--text-dark);
    font-size: 20px;
    font-weight: 700;
    text-align: left;
    cursor: pointer;
}

.accordion-icon {
    flex: 0 0 auto;
    font-size: 24px;
    line-height: 1;
}

.accordion-content {
    display: none;
    padding: 0 22px 22px;
}

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

.price-table {
    width: 100%;
    border-collapse: collapse;
    border-spacing: 0;
    overflow: hidden;
    border-radius: 16px;
}

.price-table th,
.price-table td {
    padding: 14px 16px;
    border: 1px solid rgba(26, 67, 112, 0.08);
    text-align: center;
}

.price-table th {
    background: rgba(15, 39, 70, 0.92);
    color: #ffffff;
    font-weight: 800;
}

.price-table td {
    background: rgba(255,255,255,0.86);
    color: var(--text-dark);
}

.specs-container {
    display: grid;
    grid-template-columns: 1fr 1fr;
    gap: 20px;
}

.specs-list {
    list-style: none;
    margin: 0;
    padding: 0;
    display: grid;
    gap: 12px;
}

.specs-list li {
    padding: 16px 18px;
    background: rgba(255,255,255,0.86);
    border: 1px solid rgba(26, 67, 112, 0.08);
    border-radius: 16px;
}

.related-products {
    margin: 24px 0 0;
}

.related-products-container {
    display: grid;
    grid-template-columns: repeat(4, minmax(0, 1fr));
    gap: 18px;
}

.related-product-card {
    display: block;
    overflow: hidden;
    color: inherit;
    text-decoration: none;
    transition: var(--transition);
}

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

.related-product-image {
    width: 100%;
    height: 190px;
    object-fit: contain;
    background: radial-gradient(circle at center, #ffffff 0%, #eff7ff 64%, #e4f0fc 100%);
    border-bottom: 1px solid rgba(26, 67, 112, 0.08);
}

.related-product-content {
    padding: 16px;
}

.related-product-name {
    margin: 0 0 10px;
    font-size: 18px;
    line-height: 1.25;
    color: var(--text-dark);
}

.related-product-price {
    font-size: 20px;
    font-weight: 800;
    color: var(--text-dark);
}

.modal-overlay,
.image-modal {
    position: fixed;
    inset: 0;
    display: none;
    align-items: center;
    justify-content: center;
    padding: 24px;
    background: rgba(8, 33, 61, 0.56);
    z-index: 5000;
}


.modal-overlay.active,
.image-modal.active {
    display: flex;
}

.inquiry-modal {
    width: min(760px, 100%);
    padding: 28px;
}

.image-modal-content {
    position: relative;
    max-width: min(1100px, 100%);
    max-height: calc(100vh - 48px);
    padding: 18px;
}

.image-modal-content img {
    max-width: 100%;
    max-height: calc(100vh - 84px);
    object-fit: contain;
}

.close-image-modal {
    position: absolute;
    top: 10px;
    right: 10px;
    width: 42px;
    height: 42px;
    border: 0;
    border-radius: 50%;
    background: rgba(8, 33, 61, 0.84);
    color: #ffffff;
    font-size: 18px;
    cursor: pointer;
}

@media (max-width: 1100px) {
    .product-container,
    .specs-container,
    .related-products-container {
        grid-template-columns: 1fr 1fr;
    }

    .product-container {
        grid-template-columns: 1fr;
    }
}

@media (max-width: 768px) {
    .product-section {
        padding: 22px 0 16px;
    }

    .product-gallery,
    .product-details,
    .specifications,
    .related-products,
    .inquiry-modal {
        padding: 20px;
    }

    .product-quick-facts,
    .specs-container,
    .related-products-container,
    .quantity-control,
    .thumbnail-gallery {
        grid-template-columns: 1fr;
    }

    .main-image {
        min-height: 320px;
        padding: 18px;
    }

    .product-main-image {
        max-height: 280px;
    }

    .accordion-button {
        padding: 18px;
        font-size: 18px;
    }

    .accordion-content {
        padding: 0 18px 18px;
    }
}
