/* Container override for Product Detail */
.container {
    max-width: 1200px;
}

/* Breadcrumbs */
.breadcrumbs {
    padding: 20px 0;
}

.breadcrumbs a {
    color: var(--gray);
    text-decoration: none;
    font-size: 14px;
    transition: color 0.3s ease;
}

.breadcrumbs a:hover {
    color: var(--primary-red);
}

.breadcrumbs span {
    color: var(--gray);
    margin: 0 8px;
}

.breadcrumbs .current {
    color: var(--dark);
    font-weight: 500;
}

/* Product Section */
.product-section {
    padding: 40px 0 60px;
}

.product-container {
    display: flex;
    gap: 50px;
}

/* Product Gallery */
.product-gallery {
    flex: 1.2; /* Slightly more space for the gallery */
    display: flex;
    flex-direction: row;
    gap: 20px;
    max-height: 600px;
}

.thumbnail-list-vertical {
    display: flex;
    flex-direction: column;
    gap: 15px;
    overflow-y: auto;
    padding-right: 5px;
    width: 100px;
    flex-shrink: 0;
}

.thumbnail-list-vertical::-webkit-scrollbar {
    width: 4px;
}

.thumbnail-list-vertical::-webkit-scrollbar-track {
    background: #f1f1f1;
}

.thumbnail-list-vertical::-webkit-scrollbar-thumb {
    background: #ccc;
    border-radius: 4px;
}

.main-image-container {
    flex: 1;
    background-color: var(--white);
    border-radius: 12px;
    overflow: hidden;
    box-shadow: 0 4px 20px rgba(0,0,0,0.05);
    position: relative;
    display: flex;
    align-items: center;
    justify-content: center;
    aspect-ratio: 1 / 1;
}

.main-image-container img {
    width: 100%;
    height: 100%;
    object-fit: contain;
    transition: transform 0.6s cubic-bezier(0.25, 1, 0.5, 1);
}

.main-image-container:hover img {
    transform: scale(1.05);
}

.main-image-container i {
    font-size: 200px;
    color: #E0E0E0;
    padding: 40px;
}

.thumbnail {
    width: 90px;
    height: 90px;
    border-radius: 8px;
    border: 1px solid #eee;
    overflow: hidden;
    cursor: pointer;
    transition: all 0.3s ease;
    flex-shrink: 0;
    background-color: var(--white);
}

.thumbnail:hover,
.thumbnail.active {
    border-color: var(--primary-red);
    box-shadow: 0 4px 10px rgba(0,0,0,0.1);
}

.thumbnail img {
    width: 100%;
    height: 100%;
    object-fit: contain;
}

.zoom-icon {
    position: absolute;
    bottom: 20px;
    right: 20px;
    background-color: var(--white);
    width: 40px;
    height: 40px;
    border-radius: 50%;
    display: flex;
    align-items: center;
    justify-content: center;
    box-shadow: 0 2px 10px rgba(0, 0, 0, 0.1);
    cursor: pointer;
    transition: all 0.3s ease;
}

.zoom-icon:hover {
    background-color: var(--primary-red);
    color: var(--white);
}

/* Product Info */
.product-info {
    flex: 1;
}

.product-category {
    font-size: 12px;
    color: var(--primary-red);
    text-transform: uppercase;
    letter-spacing: 1px;
    margin-bottom: 10px;
}

.product-title {
    font-family: 'Cormorant Garamond', serif;
    font-size: 32px;
    font-weight: 600;
    margin-bottom: 15px;
    line-height: 1.2;
}

.product-code {
    font-size: 14px;
    color: var(--gray);
    margin-bottom: 20px;
}

.product-price {
    font-size: 28px;
    font-weight: 600;
    color: var(--dark);
    margin-bottom: 20px;
}

.product-status {
    display: inline-block;
    padding: 5px 10px;
    background-color: #E8F5E9;
    color: #2E7D32;
    border-radius: 4px;
    font-size: 14px;
    font-weight: 500;
    margin-bottom: 30px;
}

.product-description {
    margin-bottom: 30px;
    color: var(--gray);
    font-size: 16px;
    line-height: 1.8;
}

.product-options {
    margin-bottom: 30px;
}

.option-group {
    margin-bottom: 20px;
}

.option-title {
    font-size: 14px;
    font-weight: 600;
    margin-bottom: 10px;
    display: block;
}

.size-options {
    display: flex;
    justify-content: center;
    gap: 10px;
}

.size-option {
    width: 40px;
    height: 40px;
    border: 1px solid #E0E0E0;
    border-radius: 4px;
    display: flex;
    align-items: center;
    justify-content: center;
    cursor: pointer;
    transition: all 0.3s ease;
    font-size: 14px;
}

.size-option:hover,
.size-option.active {
    border-color: var(--primary-red);
    background-color: var(--accent-red);
}

.product-actions {
    display: flex;
    gap: 15px;
    margin-bottom: 30px;
}

.quantity-selector {
    display: flex;
    align-items: center;
    border: 1px solid #E0E0E0;
    border-radius: 4px;
    overflow: hidden;
}

.quantity-btn {
    width: 40px;
    height: 50px;
    background-color: var(--white);
    border: none;
    cursor: pointer;
    font-size: 18px;
    color: var(--dark);
    transition: background-color 0.3s ease;
}

.quantity-btn:hover {
    background-color: var(--light-gray);
}

.quantity-input {
    width: 50px;
    height: 50px;
    border: none;
    text-align: center;
    font-size: 16px;
    font-weight: 600;
}

.add-to-cart {
    flex: 1;
    background-color: var(--primary-red);
    color: var(--white);
    border: none;
    border-radius: 4px;
    height: 50px;
    min-height: 50px;
    padding: 0 18px;
    font-size: 14px;
    font-weight: 600;
    cursor: pointer;
    transition: all 0.3s ease;
    text-transform: uppercase;
    letter-spacing: 0.8px;
    display: inline-flex;
    align-items: center;
    justify-content: center;
    text-align: center;
    line-height: 1;
    white-space: nowrap;
}

.add-to-cart:hover {
    background-color: #A01D1D;
    transform: translateY(-2px);
    box-shadow: 0 5px 15px rgba(198, 40, 40, 0.3);
}

.add-to-wishlist {
    width: 50px;
    height: 50px;
    background-color: var(--white);
    border: 1px solid #E0E0E0;
    border-radius: 4px;
    display: flex;
    align-items: center;
    justify-content: center;
    cursor: pointer;
    transition: all 0.3s ease;
}

.add-to-wishlist:hover {
    border-color: var(--primary-red);
    color: var(--primary-red);
}

.product-features {
    display: flex;
    flex-wrap: wrap;
    gap: 20px;
    margin-bottom: 30px;
}

.feature {
    display: flex;
    align-items: center;
    gap: 10px;
    font-size: 14px;
    color: var(--gray);
}

.feature i {
    color: var(--primary-red);
}

/* Product Info Sections (Flat Layout) */
.product-info-sections {
    margin-top: 40px;
    display: flex;
    flex-direction: column;
    gap: 50px;
}

.info-section h3 {
    font-family: 'Cormorant Garamond', serif;
    font-size: 24px;
    margin-bottom: 25px;
    color: var(--dark);
    position: relative;
    padding-bottom: 10px;
}

.info-section h3::after {
    content: '';
    position: absolute;
    left: 0;
    bottom: 0;
    width: 60px;
    height: 2px;
    background-color: var(--primary-red);
}

.section-text {
    color: var(--gray);
    line-height: 1.8;
}

.specifications-table {
    width: 100%;
    border-collapse: collapse;
}

.specifications-table tr {
    border-bottom: 1px solid #E0E0E0;
}

.specifications-table td {
    padding: 15px 0;
    font-size: 14px;
}

.specifications-table td:first-child {
    font-weight: 600;
    color: var(--dark);
    width: 40%;
}

.specifications-table td:last-child {
    color: var(--gray);
}

/* Stone Inlay Section */
.stone-inlay-section {
    margin-top: 60px;
    padding-top: 40px;
    border-top: 1px solid #E0E0E0;
}

.inlay-title {
    font-family: 'Cormorant Garamond', serif;
    font-size: 28px;
    margin-bottom: 30px;
    color: var(--dark);
}

.stones-grid {
    display: flex;
    overflow-x: auto;
    gap: 20px;
    padding-bottom: 20px;
    scroll-behavior: smooth;
    -webkit-overflow-scrolling: touch;
}

/* Hide scrollbar for Chrome, Safari and Opera */
.stones-grid::-webkit-scrollbar {
    height: 6px;
}

.stones-grid::-webkit-scrollbar-track {
    background: #f1f1f1;
    border-radius: 10px;
}

.stones-grid::-webkit-scrollbar-thumb {
    background: #ccc;
    border-radius: 10px;
}

.stones-grid::-webkit-scrollbar-thumb:hover {
    background: var(--primary-red);
}

.stone-card {
    flex: 0 0 320px; /* Fixed width for horizontal display */
    background-color: #f9f9f9;
    border: 1px solid #eee;
    border-radius: 16px;
    overflow: hidden;
    display: flex;
    flex-direction: column;
}

.stone-header {
    background-color: #ededed;
    padding: 15px 20px;
}

.stone-name {
    font-size: 18px;
    font-weight: 600;
    margin-bottom: 8px;
    color: var(--dark);
}

.stone-carats-qty {
    display: flex;
    gap: 20px;
    font-size: 16px;
    color: var(--dark);
}

.stone-carat {
    font-weight: 500;
}

.stone-qty {
    color: var(--gray);
}

.stone-details {
    padding: 20px;
    display: grid;
    grid-template-columns: 1fr 1fr;
    gap: 15px;
}

.detail-item {
    display: flex;
    flex-direction: column;
    gap: 4px;
}

.detail-item.full-width {
    grid-column: 1 / -1;
}

.detail-item.dimensions-row {
    flex-direction: row;
    gap: 0;
}

.dimension-col {
    flex: 1;
    display: flex;
    flex-direction: column;
    gap: 4px;
}

.detail-label {
    font-size: 12px;
    color: var(--gray);
    display: flex;
    align-items: center;
    gap: 4px;
}

.detail-value {
    font-size: 15px;
    font-weight: 500;
    color: var(--dark);
}

.info-icon {
    font-size: 14px;
    cursor: help;
    color: #ccc;
    vertical-align: middle;
}

.stone-note {
    font-size: 13px;
    color: var(--gray);
    margin-top: 15px;
}



@media (max-width: 768px) {
    .product-container {
        flex-direction: column;
    }
}

@media (max-width: 480px) {
    .product-actions {
        flex-direction: column;
    }

    .add-to-cart {
        width: 100%;
        height: 52px;
        min-height: 52px;
    }
}

/* Similar Products */
.similar-products {
    padding: 80px 0;
    background-color: var(--white);
    border-top: 1px solid #F0F0F0;
}

.similar-products .section-title {
    font-family: 'Cormorant Garamond', serif;
    font-size: 32px;
    font-weight: 600;
    text-align: center;
    margin-bottom: 50px;
    color: var(--dark);
}

@media (max-width: 768px) {
    .similar-products {
        padding: 50px 0;
    }
    
    .similar-products .section-title {
        font-size: 26px;
        margin-bottom: 30px;
    }
}
