@import url('https://fonts.googleapis.com/css2?family=Playfair+Display:ital,wght@0,400;0,600;0,700;1,400&family=Plus+Jakarta+Sans:wght@300;400;500;600;700&display=swap');

/* Custom Utility to hide scrollbars on category pill rows */
@layer utilities {
    .no-scrollbar::-webkit-scrollbar {
        display: none;
    }
    .no-scrollbar {
        -ms-overflow-style: none;
        scrollbar-width: none;
    }
}

/* Adjust tracking and display typography smoothing matching Figma/UI references */
body {
    font-family: 'Plus Jakarta Sans', sans-serif;
    letter-spacing: -0.015em;
    -webkit-font-smoothing: antialiased;
    -moz-osx-font-smoothing: grayscale;
}

/* Apply luxury serif styling to headings and logo details */
.font-serif,
h1,
.tracking-tight,
h3.italic {
    font-family: 'Playfair Display', serif !important;
}

/* Base elements styling overrides to ensure font family inheritance */
input, select, textarea, button {
    font-family: 'Plus Jakarta Sans', sans-serif !important;
}

/* Accessibility Sizing Styles - Older Preset triggers semi-bold font weights globally */
.older-accessibility-mode, 
.older-accessibility-mode h1, 
.older-accessibility-mode h2, 
.older-accessibility-mode h3, 
.older-accessibility-mode h4, 
.older-accessibility-mode p, 
.older-accessibility-mode span, 
.older-accessibility-mode a, 
.older-accessibility-mode button, 
.older-accessibility-mode input, 
.older-accessibility-mode textarea {
    font-weight: 600 !important;
}

/* Fluid design transition configuration adjustments */
.grid-cols-12 > div {
    will-change: transform, box-shadow;
    transition: all 0.4s cubic-bezier(0.16, 1, 0.3, 1);
}
/* Catalog Interactive Hover State Styling Architecture */
.catalog-price-btn, 
.wishlist-btn, 
.cart-btn {
    transition: all 0.25s cubic-bezier(0.4, 0, 0.2, 1);
}

/* Group hover utility states to isolate button triggers */
.group:hover .catalog-price-btn {
    background-color: #000000;
    color: #ffffff;
    border-color: #000000;
}

.group:hover .cart-btn {
    background-color: #000000;
    color: #ffffff;
    border-color: #000000;
}
/* Horizontal Loop Keyframe Animation Core configuration */
@keyframes ticker {
    0% {
        transform: translate3d(0, 0, 0);
    }
    100% {
        transform: translate3d(-50%, 0, 0);
    }
}

.animate-infinite-ticker {
    display: flex;
    width: max-content;
    animation: ticker 30s linear infinite;
}

/* Custom layout rosette dynamic modifications */
@keyframes inverse-spin {
    from { transform: rotate(0deg); }
    to { transform: rotate(-360deg); }
}

/* Ensure lookbook card image rendering elements look smooth and sharp during rotation tracking */
.w-48 img {
    backface-visibility: hidden;
    -webkit-font-smoothing: subpixel-antialiased;
}
/* Ensure smooth transitions on blog cards when user hovers */
.grid div {
    backface-visibility: hidden;
}

/* Tracking tweaks matching precise design systems typography layout */
h3 {
    letter-spacing: -0.015em;
}
/* Clean styling adjustments for footer list items and elements input normalization */
footer h4 {
    font-size: 0.875rem;
    font-weight: 500;
}

footer ul li a {
    transition: color 0.2s ease-in-out;
}

/* Fix text rendering across complex background containers */
input[type="email"]::placeholder {
    color: #9ca3af;
    opacity: 1;
}
/* Immersive Canvas Layout Frame State Visibility Animations rules */
#productDetailModal.show-active {
    display: block !important;
    animation: openFullscreenFrame 0.4s cubic-bezier(0.16, 1, 0.3, 1) forwards;
}

@keyframes openFullscreenFrame {
    to {
        transform: scale(1);
        opacity: 1;
    }
}

body.modal-open-lock {
    overflow: hidden !important;
}

/* Remove direct indicator outlines on details layout */
details summary::-webkit-details-marker {
    display: none;
}

/* --- ROSH Premium Collections Page Layout Styles --- */

/* Premium Custom Scrollbars */
.no-scrollbar::-webkit-scrollbar {
    display: none;
}
.no-scrollbar {
    -ms-overflow-style: none;
    scrollbar-width: none;
}

/* Custom Checkbox Aesthetic */
input[type="checkbox"].filter-category-checkbox,
input[type="checkbox"].filter-brand-checkbox,
input[type="checkbox"].filter-avail-checkbox {
    appearance: none;
    -webkit-appearance: none;
    width: 16px;
    height: 16px;
    border: 1px solid #d1d5db;
    border-radius: 4px;
    outline: none;
    cursor: pointer;
    transition: all 0.2s ease;
    position: relative;
    display: inline-block;
    vertical-align: middle;
    background-color: #fff;
}

input[type="checkbox"].filter-category-checkbox:checked,
input[type="checkbox"].filter-brand-checkbox:checked,
input[type="checkbox"].filter-avail-checkbox:checked {
    background-color: #1c1c1c;
    border-color: #1c1c1c;
}

input[type="checkbox"].filter-category-checkbox:checked::after,
input[type="checkbox"].filter-brand-checkbox:checked::after,
input[type="checkbox"].filter-avail-checkbox:checked::after {
    content: "";
    position: absolute;
    left: 5px;
    top: 2px;
    width: 4px;
    height: 8px;
    border: solid white;
    border-width: 0 1.5px 1.5px 0;
    transform: rotate(45deg);
}

/* Premium Range Input Styling */
input[type="range"] {
    -webkit-appearance: none;
    width: 100%;
    height: 4px;
    background: #e5e7eb;
    border-radius: 2px;
    outline: none;
}

input[type="range"]::-webkit-slider-thumb {
    -webkit-appearance: none;
    appearance: none;
    width: 16px;
    height: 16px;
    border-radius: 50%;
    background: #1c1c1c;
    cursor: pointer;
    border: 2px solid #ffffff;
    box-shadow: 0 2px 4px rgba(0,0,0,0.15);
    transition: all 0.15s ease;
}

input[type="range"]::-webkit-slider-thumb:hover {
    transform: scale(1.15);
    background: #000000;
}

/* Image Swap Hover Effect Zoom & Shadow Overlay */
.group {
    position: relative;
    overflow: hidden;
}

.group .primary-image {
    transition: transform 0.6s cubic-bezier(0.16, 1, 0.3, 1);
}

.group:hover .primary-image {
    transform: scale(1.04);
}

.group .hover-image {
    transition: opacity 0.6s cubic-bezier(0.16, 1, 0.3, 1), transform 0.6s cubic-bezier(0.16, 1, 0.3, 1);
}

.group:hover .hover-image {
    opacity: 1;
    transform: scale(1.04);
}

/* Star Radio minimal aesthetic checks */
input[type="radio"].filter-rating-radio {
    appearance: none;
    -webkit-appearance: none;
    width: 16px;
    height: 16px;
    border: 1px solid #d1d5db;
    border-radius: 50%;
    outline: none;
    cursor: pointer;
    transition: all 0.2s ease;
    position: relative;
    display: inline-block;
    vertical-align: middle;
    background-color: #fff;
}

input[type="radio"].filter-rating-radio:checked {
    border-color: #1c1c1c;
}

input[type="radio"].filter-rating-radio:checked::after {
    content: "";
    position: absolute;
    left: 4px;
    top: 4px;
    width: 6px;
    height: 6px;
    border-radius: 50%;
    background-color: #1c1c1c;
}

/* Sidebar Drawer Slide Transition animations */
#filter-drawer {
    transition: transform 0.4s cubic-bezier(0.16, 1, 0.3, 1);
}

/* Prevent clipping of the absolutely positioned accessibility/text-size dropdown on desktop */
@media (min-width: 1024px) {
    header div.overflow-x-auto {
        overflow: visible !important;
    }
}

/* Hero Slider Fade Transitions */
.hero-transition {
    transition: opacity 0.4s cubic-bezier(0.16, 1, 0.3, 1), transform 0.4s cubic-bezier(0.16, 1, 0.3, 1) !important;
}
.hero-fade-out {
    opacity: 0 !important;
    transform: translateY(10px) !important;
}

.hero-img-transition {
    transition: opacity 0.5s cubic-bezier(0.16, 1, 0.3, 1) !important;
}
.hero-img-fade-out {
    opacity: 0 !important;
}

/* ============================================
   PREMIUM PRODUCT SHOW CARD (Reference Design)
   ============================================ */
.product-show-card {
    position: relative;
    border-radius: 24px;
    overflow: hidden;
    background: #f3f4f6;
    box-shadow: 0 4px 24px rgba(0,0,0,0.06), 0 1px 3px rgba(0,0,0,0.04);
    transition: transform 0.45s cubic-bezier(0.16, 1, 0.3, 1),
                box-shadow 0.45s cubic-bezier(0.16, 1, 0.3, 1);
    cursor: pointer;
    display: flex;
    flex-direction: column;
}

.product-show-card:hover {
    transform: translateY(-6px);
    box-shadow: 0 20px 50px rgba(0,0,0,0.10), 0 4px 12px rgba(0,0,0,0.06);
}

.product-show-card__image-wrap {
    position: relative;
    width: 100%;
    aspect-ratio: 3 / 4;
    overflow: hidden;
    border-radius: 24px 24px 0 0;
}

.product-show-card__image-wrap img {
    width: 100%;
    height: 100%;
    object-fit: cover;
    transition: transform 0.7s cubic-bezier(0.16, 1, 0.3, 1);
}

.product-show-card:hover .product-show-card__image-wrap img {
    transform: scale(1.06);
}

.product-show-card__image-wrap .hover-image {
    position: absolute;
    inset: 0;
    opacity: 0;
    transition: opacity 0.6s cubic-bezier(0.16, 1, 0.3, 1),
                transform 0.7s cubic-bezier(0.16, 1, 0.3, 1);
}

.product-show-card:hover .product-show-card__image-wrap .hover-image {
    opacity: 1;
    transform: scale(1.06);
}

/* Gradient overlay at bottom of image */
.product-show-card__gradient {
    position: absolute;
    bottom: 0;
    left: 0;
    right: 0;
    height: 55%;
    background: linear-gradient(to top, rgba(0,0,0,0.55) 0%, rgba(0,0,0,0.15) 50%, transparent 100%);
    pointer-events: none;
    z-index: 2;
    transition: height 0.4s ease;
}

.product-show-card:hover .product-show-card__gradient {
    height: 60%;
}

/* Badge (SALE/NEW/TRENDING) */
.product-show-card__badge {
    position: absolute;
    top: 14px;
    left: 14px;
    z-index: 10;
    font-size: 10px;
    font-weight: 700;
    padding: 4px 10px;
    border-radius: 8px;
    letter-spacing: 0.04em;
}

/* Quick view floating button */
.product-show-card__quick-view {
    position: absolute;
    top: 14px;
    right: 14px;
    z-index: 10;
    width: 36px;
    height: 36px;
    border-radius: 50%;
    background: rgba(255,255,255,0.85);
    backdrop-filter: blur(8px);
    -webkit-backdrop-filter: blur(8px);
    display: flex;
    align-items: center;
    justify-content: center;
    opacity: 0;
    transform: scale(0.8);
    transition: opacity 0.3s ease, transform 0.3s ease, background 0.2s ease;
    cursor: pointer;
    border: none;
    color: #374151;
}

.product-show-card:hover .product-show-card__quick-view {
    opacity: 1;
    transform: scale(1);
}

.product-show-card__quick-view:hover {
    background: rgba(255,255,255,1);
    color: #000;
}

/* Card info section */
.product-show-card__info {
    padding: 16px 18px 18px;
    display: flex;
    flex-direction: column;
    gap: 6px;
    background: #ffffff;
    border-radius: 0 0 24px 24px;
}

/* Product name + brand badge row */
.product-show-card__name-row {
    display: flex;
    align-items: center;
    gap: 6px;
}

.product-show-card__name {
    font-size: 15px;
    font-weight: 600;
    color: #111827;
    line-height: 1.3;
    overflow: hidden;
    text-overflow: ellipsis;
    white-space: nowrap;
    flex: 1;
    min-width: 0;
}

.product-show-card__brand-badge {
    width: 18px;
    height: 18px;
    border-radius: 50%;
    background: #1c1c1c;
    display: flex;
    align-items: center;
    justify-content: center;
    flex-shrink: 0;
}

.product-show-card__brand-badge svg {
    width: 10px;
    height: 10px;
    color: #ffffff;
}

/* Description */
.product-show-card__desc {
    font-size: 12px;
    color: #6b7280;
    font-weight: 400;
    line-height: 1.5;
    overflow: hidden;
    text-overflow: ellipsis;
    white-space: nowrap;
}

/* Stats + Cart button row */
.product-show-card__footer {
    display: flex;
    align-items: center;
    justify-content: space-between;
    margin-top: 6px;
}

.product-show-card__stats {
    display: flex;
    align-items: center;
    gap: 12px;
    font-size: 12px;
    color: #9ca3af;
    font-weight: 400;
}

.product-show-card__stats .stat-item {
    display: flex;
    align-items: center;
    gap: 4px;
}

.product-show-card__stats .stat-item svg {
    width: 14px;
    height: 14px;
    opacity: 0.65;
}

.product-show-card__cart-btn {
    display: flex;
    align-items: center;
    gap: 4px;
    padding: 7px 16px;
    border-radius: 50px;
    border: 1.5px solid #e5e7eb;
    background: #ffffff;
    font-size: 12px;
    font-weight: 600;
    color: #374151;
    cursor: pointer;
    transition: all 0.25s cubic-bezier(0.4, 0, 0.2, 1);
    white-space: nowrap;
    letter-spacing: 0.01em;
}

.product-show-card__cart-btn:hover {
    background: #1c1c1c;
    color: #ffffff;
    border-color: #1c1c1c;
    transform: scale(1.04);
}

.product-show-card__cart-btn:active {
    transform: scale(0.97);
}

/* Wishlist heart button overlaid on image */
.product-show-card__wishlist {
    position: absolute;
    bottom: 14px;
    right: 14px;
    z-index: 10;
    width: 34px;
    height: 34px;
    border-radius: 50%;
    background: rgba(255,255,255,0.85);
    backdrop-filter: blur(8px);
    -webkit-backdrop-filter: blur(8px);
    display: flex;
    align-items: center;
    justify-content: center;
    border: none;
    cursor: pointer;
    opacity: 0;
    transform: scale(0.8);
    transition: opacity 0.3s ease, transform 0.3s ease, background 0.2s ease;
    color: #6b7280;
}

.product-show-card:hover .product-show-card__wishlist {
    opacity: 1;
    transform: scale(1);
}

.product-show-card__wishlist:hover {
    background: #fff;
    color: #ef4444;
}

.product-show-card__wishlist.active {
    opacity: 1;
    transform: scale(1);
    color: #ef4444;
    background: rgba(255,255,255,0.95);
}

/* Price tag in image area */
.product-show-card__price-tag {
    position: absolute;
    bottom: 14px;
    left: 14px;
    z-index: 10;
    font-size: 13px;
    font-weight: 700;
    color: #ffffff;
    text-shadow: 0 1px 4px rgba(0,0,0,0.35);
    letter-spacing: -0.01em;
}

.product-show-card__price-tag .original-price {
    font-size: 10px;
    font-weight: 400;
    text-decoration: line-through;
    opacity: 0.7;
    margin-left: 6px;
}

/* Responsive adjustments */
@media (max-width: 640px) {
    .product-show-card__name {
        font-size: 13px;
    }
    .product-show-card__desc {
        font-size: 11px;
    }
    .product-show-card__cart-btn {
        padding: 6px 12px;
        font-size: 11px;
    }
    .product-show-card__stats {
        font-size: 11px;
        gap: 8px;
    }
    .product-show-card__info {
        padding: 12px 14px 14px;
    }
}