* {
    margin: 0;
    padding: 0;
    box-sizing: border-box;
}

.red-hat-display {
  font-family: "Red Hat Display", sans-serif;
  font-weight: 400;
  font-style: normal;
}


html, body {
    height: 100%;
    width: 100vw;
}

body {
    color: #1f2937;
    font-family: -apple-system, BlinkMacSystemFont, 'Segoe UI', 'Roboto', 'Oxygen', 'Ubuntu', 'Cantarell', sans-serif;
    line-height: 1.5;
    padding-bottom: 2rem;
}
header {
    width: 100%;
    padding: 1rem 0.5rem;
    display: flex;
    justify-content: center;
    align-items: center;
}
.brand-logo > img {
    height: 40px;
    width: fit-content;
}
.main-container {
    height: calc(100vh - 4rem);
    padding: 0;
}

@media (min-width: 1024px) {
    .main-container {
        height: calc(100vh - 4rem);
        padding: 0 2rem 2rem;
    }
}

.grid-layout {
    display: grid;
    grid-template-columns: 1fr;
    gap: 2rem;
    background-color: #fff;
    border-radius: 0.5rem;
    height: 100%;
}

@media (min-width: 1024px) {
    .grid-layout {
        grid-template-columns: 2fr 1fr;
    }
}

.viewer-section {
    display: flex;
    flex-direction: column;
    justify-content: center;
    align-items: center;
    background-color: #f3f4f6;
    height: 100%;
    position: relative;
}

#viewer-container{
    height: 100%;
}

.sidebar {
    display: flex;
    flex-direction: column;
    gap: 1rem;
    height: 100%;
    overflow-y: auto;
    padding: 0 0.5rem;
}
@media (min-width: 1024px) {
    .sidebar {
        padding: 0 0.5rem;
    }
}

/* Product info section */
.product-info {
    padding-bottom: 1.5rem;
}

.product-title {
    font-size: 32px;
    font-weight: 600;
    margin-bottom: 1rem;
    color: #000;
}

.product-code {
    font-size: 0.875rem;
    color: #9ca3af;
    letter-spacing: 0.05em;
    margin-bottom: 1.5rem;
}

.product-price {
    font-size: 1.5rem;
    font-weight: 600;
    color: #000;
}

/* Components and configurators containers */
#ring-components-container,
#material-configurators-container {
    display: flex;
    flex-direction: column;
    gap: 1.2rem;
}

.component-section,
.material-section {
    padding-bottom: 0.5rem;
}

.section-header {
    font-size: 0.875rem;
    font-weight: 700;
    text-transform: uppercase;
    letter-spacing: 0.05em;
    margin-bottom: 0.5rem;
    color: #000;
    padding-bottom: 1rem;
    border-bottom: 1px solid #e5e7eb;
}

.section-label {
    font-size: 14px;
    font-weight: 300;
    color: #2b2a2a;
    display: block;
    margin-bottom: 0.5rem;
    font-family: "Segoe UI";
}

/* Grid for variations and options */
.variations-grid,
.options-grid {
    display: grid;
    grid-template-columns: repeat(5, 1fr);
    gap: 0.25rem;
}

.option-item,
.material-option-item {
    display: flex;
    flex-direction: column;
    align-items: center;
    gap: 0.5rem;
    cursor: pointer;
}

.option-swatch {
    width: 3rem;
    height: 3rem;
    overflow: hidden;
    /* background-color: #e5e7eb; */
    transition: all 0.2s ease;
    flex-shrink: 0;
}
.material-option-swatch {
    width: 2.5rem;
    height: 2.5rem;
    border-radius: 50%;
    overflow: hidden;
    background-color: #e5e7eb;
    transition: all 0.2s ease;
    flex-shrink: 0;
}

.option-item:hover .option-swatch,
.material-option-item:hover .material-option-swatch {
    transform: scale(1.05);
}

.option-label.selected,
.material-option-label.selected {
    border-bottom: 1.5px solid #000;
    padding-bottom: 0.25rem;
}

.option-item.selected,
.material-option-item.selected {
    border-bottom: 1.5px solid #000;
    padding-bottom: 0.25rem;
}

.option-swatch img,
.material-option-swatch img {
    width: 100%;
    height: 100%;
    object-fit: cover;
}

.option-label,
.material-option-label {
    font-size: 0.75rem;
    color: #4b5563;
    text-align: center;
}

/* Loading state */
.option-swatch.loading,
.material-option-swatch.loading {
    position: relative;
    pointer-events: none;
}

.option-swatch.loading::after,
.material-option-swatch.loading::after {
    content: '';
    position: absolute;
    top: 0;
    left: 0;
    right: 0;
    bottom: 0;
    margin: auto;
    width: 24px;
    height: 24px;
    border: 3px solid rgba(255, 255, 255, 0.3);
    border-top: 3px solid #000;
    border-radius: 50%;
    animation: spin 0.8s linear infinite;
    background: rgba(255, 255, 255, 0.5);
    box-shadow: 0 0 10px rgba(255, 255, 255, 0.8);
    z-index: 10;
}

@keyframes spin {
    0% {
        transform: rotate(0deg);
    }
    100% {
        transform: rotate(360deg);
    }
}

/* Material swatches */
.material-swatch-white-gold {
    background: linear-gradient(135deg, #e8e8e8 0%, #f5f5f5 50%, #d0d0d0 100%);
    box-shadow: inset 0 2px 4px rgba(0, 0, 0, 0.1);
}

.material-swatch-gold {
    background: linear-gradient(135deg, #FFD700 0%, #FFA500 50%, #DAA520 100%);
    box-shadow: inset 0 2px 4px rgba(0, 0, 0, 0.15);
}

.material-swatch-rose-gold {
    background: linear-gradient(135deg, #ECC5C0 0%, #D4A5A5 50%, #C48B7C 100%);
    box-shadow: inset 0 2px 4px rgba(0, 0, 0, 0.12);
}

/* Gem swatches */
.gem-swatch-diamond {
    background: linear-gradient(135deg, #ffffff 0%, #e8e8e8 50%, #d4d4d4 100%);
    box-shadow: inset 0 2px 4px rgba(0, 0, 0, 0.1), 0 0 8px rgba(255, 255, 255, 0.5);
}

.gem-swatch-sapphire {
    background: linear-gradient(135deg, #1e3a8a 0%, #1e40af 50%, #312e81 100%);
    box-shadow: inset 0 2px 4px rgba(0, 0, 0, 0.3);
}

.gem-swatch-ruby {
    background: linear-gradient(135deg, #dc2626 0%, #b91c1c 50%, #991b1b 100%);
    box-shadow: inset 0 2px 4px rgba(0, 0, 0, 0.3);
}

.gem-swatch-emerald {
    background: linear-gradient(135deg, #047857 0%, #059669 50%, #065f46 100%);
    box-shadow: inset 0 2px 4px rgba(0, 0, 0, 0.3);
}

/* Utility classes */
.loading-message,
.empty-message {
    color: #6b7280;
    font-size: 0.875rem;
}