html {
    scroll-behavior: smooth;
}

::-webkit-scrollbar {
    width: 8px;
}

::-webkit-scrollbar-track {
    background: #0F0F0F;
}

::-webkit-scrollbar-thumb {
    background: #2D2D2D;
    border-radius: 4px;
}

::-webkit-scrollbar-thumb:hover {
    background: #C9A84C;
}

.nav-link.active {
    color: #C9A84C;
}

.nav-link.active::after {
    content: '';
    display: block;
    width: 100%;
    height: 2px;
    background: #C9A84C;
    margin-top: 4px;
    border-radius: 1px;
}

.img-hover-zoom {
    overflow: hidden;
}

.img-hover-zoom img {
    transition: transform 0.7s ease;
}

.img-hover-zoom:hover img {
    transform: scale(1.1);
}

.card-hover {
    transition: transform 0.3s ease, box-shadow 0.3s ease;
}

.card-hover:hover {
    transform: translateY(-4px);
    box-shadow: 0 20px 40px rgba(0, 0, 0, 0.3);
}

.toast {
    position: fixed;
    top: 80px;
    right: 20px;
    padding: 14px 24px;
    border-radius: 10px;
    font-size: 14px;
    font-weight: 500;
    z-index: 9999;
    transform: translateX(120%);
    transition: transform 0.4s cubic-bezier(0.68, -0.55, 0.265, 1.55);
    max-width: 360px;
    backdrop-filter: blur(8px);
}

.toast.show {
    transform: translateX(0);
}

.toast-success {
    background: rgba(34, 197, 94, 0.15);
    border: 1px solid rgba(34, 197, 94, 0.3);
    color: #4ade80;
}

.toast-error {
    background: rgba(239, 68, 68, 0.15);
    border: 1px solid rgba(239, 68, 68, 0.3);
    color: #f87171;
}

.toast-info {
    background: rgba(201, 168, 76, 0.15);
    border: 1px solid rgba(201, 168, 76, 0.3);
    color: #E8D5A3;
}

.loading-spinner {
    display: inline-block;
    width: 20px;
    height: 20px;
    border: 2px solid rgba(201, 168, 76, 0.3);
    border-top-color: #C9A84C;
    border-radius: 50%;
    animation: spin 0.6s linear infinite;
}

.loading-spinner-lg {
    width: 40px;
    height: 40px;
    border-width: 3px;
}

@keyframes spin {
    to { transform: rotate(360deg); }
}

.modal-overlay {
    position: fixed;
    inset: 0;
    background: rgba(0, 0, 0, 0.7);
    backdrop-filter: blur(4px);
    z-index: 100;
    display: flex;
    align-items: center;
    justify-content: center;
    opacity: 0;
    visibility: hidden;
    transition: opacity 0.3s ease, visibility 0.3s ease;
}

.modal-overlay.active {
    opacity: 1;
    visibility: visible;
}

.modal-overlay .modal-content {
    transform: scale(0.95) translateY(10px);
    transition: transform 0.3s ease;
}

.modal-overlay.active .modal-content {
    transform: scale(1) translateY(0);
}

.text-gradient-gold {
    background: linear-gradient(135deg, #C9A84C, #E8D5A3, #C9A84C);
    -webkit-background-clip: text;
    -webkit-text-fill-color: transparent;
    background-clip: text;
}

@keyframes fadeInUp {
    from {
        opacity: 0;
        transform: translateY(20px);
    }
    to {
        opacity: 1;
        transform: translateY(0);
    }
}

.fade-in-up {
    animation: fadeInUp 0.6s ease forwards;
}

@keyframes fadeIn {
    from { opacity: 0; }
    to { opacity: 1; }
}

.fade-in {
    animation: fadeIn 0.6s ease forwards;
}

.stars {
    display: inline-flex;
    gap: 2px;
}

.line-clamp-2 {
    display: -webkit-box;
    -webkit-line-clamp: 2;
    -webkit-box-orient: vertical;
    overflow: hidden;
}

.line-clamp-3 {
    display: -webkit-box;
    -webkit-line-clamp: 3;
    -webkit-box-orient: vertical;
    overflow: hidden;
}

input[type="date"],
input[type="time"] {
    color-scheme: dark;
}

select option {
    background: #1A1A1A;
    color: #F5F5F5;
}

.prose img {
    border-radius: 12px;
}

.prose a {
    color: #C9A84C;
    text-decoration: none;
}

.prose a:hover {
    color: #E8D5A3;
}

.product-md-content {
    overflow-wrap: break-word;
    word-wrap: break-word;
    word-break: break-word;
}

.product-md-content p {
    margin-bottom: 0.75em;
}

.product-md-content p:last-child {
    margin-bottom: 0;
}

.portfolio-gallery {
    display: grid;
    gap: 20px;
}

.portfolio-gallery--editorial {
    grid-template-columns: repeat(3, 1fr);
    grid-auto-rows: 280px;
    grid-auto-flow: dense;
}

.portfolio-gallery--classic {
    grid-template-columns: repeat(3, 1fr);
    grid-auto-rows: 360px;
}

.gallery-item {
    position: relative;
    overflow: hidden;
    border-radius: 12px;
    cursor: pointer;
}

.gallery-item__img {
    width: 100%;
    height: 100%;
    object-fit: cover;
    object-position: center;
    transition: transform 0.4s ease;
}

.gallery-item:hover .gallery-item__img {
    transform: scale(1.03);
}

.gallery-item__overlay {
    position: absolute;
    inset: 0;
    background: linear-gradient(to top, rgba(15, 15, 15, 0.8) 0%, transparent 50%);
    opacity: 0;
    transition: opacity 0.3s ease;
    display: flex;
    align-items: flex-end;
    padding: 16px;
}

.gallery-item:hover .gallery-item__overlay {
    opacity: 1;
}

.gallery-item__caption {
    color: #F5F5F5;
    font-size: 0.875rem;
    font-weight: 500;
}

.gallery-item--square {
    grid-row: span 1;
    grid-column: span 1;
}

.gallery-item--portrait {
    grid-row: span 2;
    grid-column: span 1;
}

.gallery-item--tall {
    grid-row: span 3;
    grid-column: span 1;
}

.gallery-item--wide {
    grid-row: span 1;
    grid-column: span 2;
}

.gallery-item--feature {
    grid-row: span 2;
    grid-column: span 2;
}

@media (max-width: 768px) {
    .portfolio-gallery--editorial,
    .portfolio-gallery--classic {
        grid-template-columns: repeat(2, 1fr);
        grid-auto-rows: 200px;
        gap: 12px;
    }

    .gallery-item--wide {
        grid-column: span 2;
    }

    .gallery-item--feature {
        grid-row: span 2;
        grid-column: span 2;
    }

    .gallery-item--tall {
        grid-row: span 2;
    }
}

.dress-rec-scrollbar {
    scrollbar-width: thin;
    scrollbar-color: rgba(201, 168, 76, 0.4) #1a1a1a;
}

.dress-rec-scrollbar::-webkit-scrollbar {
    height: 6px;
}

.dress-rec-scrollbar::-webkit-scrollbar-track {
    background: #1a1a1a;
    border-radius: 4px;
}

.dress-rec-scrollbar::-webkit-scrollbar-thumb {
    background: rgba(201, 168, 76, 0.35);
    border-radius: 4px;
}

.dress-rec-scrollbar::-webkit-scrollbar-thumb:hover {
    background: rgba(201, 168, 76, 0.55);
}
