/* ═══════════════════════════════════════════════════════════════════════════
   TryOsome — Premium Beauty Store CSS
   Nykaa / Sephora–inspired design system
   ═══════════════════════════════════════════════════════════════════════════ */

/* ─── Reset & Base ─────────────────────────────────────────────────────────── */
*, *::before, *::after { box-sizing: border-box; margin: 0; padding: 0; }
html { scroll-behavior: smooth; -webkit-text-size-adjust: 100%; }
body {
    font-family: 'Inter', system-ui, -apple-system, sans-serif;
    -webkit-font-smoothing: antialiased;
    -moz-osx-font-smoothing: grayscale;
    color: #111;
    background: #fff;
    line-height: 1.6;
    overflow-x: hidden;
}
a { color: inherit; text-decoration: none; }
img { max-width: 100%; height: auto; display: block; background-color: #f5f5f5; }
button { cursor: pointer; }
input, textarea, select, button { font-family: inherit; }

/* ─── Scrollbar ────────────────────────────────────────────────────────────── */
::-webkit-scrollbar { width: 6px; }
::-webkit-scrollbar-track { background: transparent; }
::-webkit-scrollbar-thumb { background: #d1d1d1; border-radius: 3px; }
::-webkit-scrollbar-thumb:hover { background: #999; }

/* ─── Announcement Bar ─────────────────────────────────────────────────────── */
.announcement-bar {
    background: linear-gradient(90deg, #1a1a1a 0%, #2d2d2d 50%, #1a1a1a 100%);
    padding: 8px 16px;
    text-align: center;
    overflow: hidden;
    position: relative;
}
.announcement-bar__text {
    color: #fff;
    font-size: 11px;
    font-weight: 500;
    letter-spacing: 0.15em;
    text-transform: uppercase;
    display: inline-block;
    animation: marquee 20s linear infinite;
    white-space: nowrap;
}
@keyframes marquee {
    0% { transform: translateX(100%); }
    100% { transform: translateX(-100%); }
}
@media (min-width: 768px) {
    .announcement-bar__text {
        animation: none;
        font-size: 12px;
        letter-spacing: 0.2em;
    }
}

/* ─── Sticky Header ────────────────────────────────────────────────────────── */
.site-header {
    position: sticky;
    top: 0;
    z-index: 100;
    background: rgba(255,255,255,0.97);
    backdrop-filter: blur(12px);
    -webkit-backdrop-filter: blur(12px);
    border-bottom: 1px solid rgba(0,0,0,0.06);
    transition: box-shadow 0.3s ease;
}
.site-header.scrolled {
    box-shadow: 0 2px 20px rgba(0,0,0,0.06);
}

/* ─── Product Cards ────────────────────────────────────────────────────────── */
.product-card {
    position: relative;
    transition: transform 0.35s cubic-bezier(0.25, 0.46, 0.45, 0.94);
}
.product-card:hover {
    transform: translateY(-4px);
}
.product-card .product-img-wrap {
    position: relative;
    overflow: hidden;
    border-radius: 2px;
    background: #f8f8f8;
}
.product-card .product-img-wrap img {
    transition: transform 0.6s cubic-bezier(0.25, 0.46, 0.45, 0.94);
}
.product-card:hover .product-img-wrap img {
    transform: scale(1.08);
}
.product-card .product-overlay {
    position: absolute;
    inset: 0;
    background: linear-gradient(180deg, transparent 60%, rgba(0,0,0,0.02) 100%);
    opacity: 0;
    transition: opacity 0.3s ease;
}
.product-card:hover .product-overlay {
    opacity: 1;
}
.product-card .quick-add-btn {
    position: absolute;
    bottom: 0;
    left: 0;
    right: 0;
    background: rgba(0,0,0,0.9);
    color: #fff;
    text-align: center;
    padding: 12px;
    font-size: 11px;
    font-weight: 600;
    letter-spacing: 0.15em;
    text-transform: uppercase;
    transform: translateY(100%);
    transition: transform 0.35s cubic-bezier(0.25, 0.46, 0.45, 0.94);
    border: none;
    width: 100%;
}
.product-card:hover .quick-add-btn {
    transform: translateY(0);
}
@media (max-width: 767px) {
    .product-card .quick-add-btn {
        position: relative;
        transform: none;
        border-radius: 0;
        margin-top: 8px;
    }
}
.product-card .product-badge {
    position: absolute;
    top: 10px;
    left: 10px;
    background: #111;
    color: #fff;
    font-size: 9px;
    font-weight: 600;
    letter-spacing: 0.12em;
    text-transform: uppercase;
    padding: 4px 10px;
    z-index: 2;
}
.product-card .product-title {
    font-size: 13px;
    font-weight: 500;
    margin-top: 10px;
    line-height: 1.4;
    color: #111;
    overflow: hidden;
    text-overflow: ellipsis;
    white-space: nowrap;
}
.product-card .product-price {
    font-size: 14px;
    font-weight: 700;
    margin-top: 4px;
    color: #111;
}

/* ─── Buttons ──────────────────────────────────────────────────────────────── */
.btn-primary {
    display: inline-flex;
    align-items: center;
    justify-content: center;
    gap: 8px;
    background: #111;
    color: #fff;
    font-size: 12px;
    font-weight: 600;
    letter-spacing: 0.12em;
    text-transform: uppercase;
    padding: 14px 32px;
    border: 2px solid #111;
    transition: all 0.3s ease;
    position: relative;
    overflow: hidden;
}
.btn-primary::before {
    content: '';
    position: absolute;
    top: 0;
    left: -100%;
    width: 100%;
    height: 100%;
    background: linear-gradient(90deg, transparent, rgba(255,255,255,0.1), transparent);
    transition: left 0.5s ease;
}
.btn-primary:hover::before { left: 100%; }
.btn-primary:hover { background: #333; border-color: #333; }

.btn-outline {
    display: inline-flex;
    align-items: center;
    justify-content: center;
    gap: 8px;
    background: transparent;
    color: #111;
    font-size: 12px;
    font-weight: 600;
    letter-spacing: 0.12em;
    text-transform: uppercase;
    padding: 14px 32px;
    border: 2px solid #111;
    transition: all 0.3s ease;
}
.btn-outline:hover { background: #111; color: #fff; }

/* ─── Hero Section ─────────────────────────────────────────────────────────── */
.hero-section {
    position: relative;
    height: 65vh;
    min-height: 400px;
    overflow: hidden;
}
@media (min-width: 768px) {
    .hero-section { height: 80vh; min-height: 550px; }
}
@media (min-width: 1024px) {
    .hero-section { height: 92vh; min-height: 650px; }
}
.hero-slide {
    position: absolute;
    inset: 0;
    transition: opacity 1.2s cubic-bezier(0.25, 0.46, 0.45, 0.94);
}
.hero-slide img {
    width: 100%;
    height: 100%;
    object-fit: cover;
    object-position: center 20%;
    transform: scale(1);
    transition: transform 8s cubic-bezier(0.25, 0.46, 0.45, 0.94);
}
.hero-slide.active img {
    transform: scale(1.05);
}
.hero-slide .hero-overlay {
    position: absolute;
    inset: 0;
    background: linear-gradient(180deg,
        rgba(0,0,0,0.15) 0%,
        rgba(0,0,0,0.35) 50%,
        rgba(0,0,0,0.5) 100%);
}
.hero-content {
    position: absolute;
    inset: 0;
    display: flex;
    align-items: center;
    justify-content: center;
    text-align: center;
    z-index: 10;
}
.hero-content .hero-subtitle {
    color: rgba(255,255,255,0.8);
    font-size: 11px;
    font-weight: 500;
    letter-spacing: 0.35em;
    text-transform: uppercase;
    margin-bottom: 16px;
}
.hero-content h1 {
    color: #fff;
    font-size: 2.5rem;
    font-weight: 300;
    letter-spacing: -0.02em;
    line-height: 1.1;
    margin-bottom: 12px;
}
.hero-content h1 strong { font-weight: 700; }
@media (min-width: 768px) {
    .hero-content h1 { font-size: 3.5rem; }
}
@media (min-width: 1024px) {
    .hero-content h1 { font-size: 5rem; margin-bottom: 16px; }
}
.hero-content .hero-desc {
    color: rgba(255,255,255,0.7);
    font-size: 14px;
    font-weight: 300;
    max-width: 480px;
    margin: 0 auto 28px;
    line-height: 1.6;
}
.hero-dots {
    position: absolute;
    bottom: 28px;
    left: 50%;
    transform: translateX(-50%);
    display: flex;
    gap: 8px;
    z-index: 20;
}
.hero-dot {
    width: 8px;
    height: 8px;
    border-radius: 50%;
    background: rgba(255,255,255,0.4);
    border: none;
    cursor: pointer;
    transition: all 0.3s ease;
}
.hero-dot.active { background: #fff; transform: scale(1.25); }

/* ─── Section Headings ─────────────────────────────────────────────────────── */
.section-heading {
    text-align: center;
    margin-bottom: 40px;
}
.section-heading .section-eyebrow {
    font-size: 11px;
    font-weight: 500;
    letter-spacing: 0.3em;
    text-transform: uppercase;
    color: #999;
    margin-bottom: 8px;
}
.section-heading h2 {
    font-size: 1.75rem;
    font-weight: 300;
    letter-spacing: -0.01em;
    color: #111;
}
.section-heading h2 strong { font-weight: 700; }
@media (min-width: 768px) {
    .section-heading h2 { font-size: 2.25rem; }
}

/* ─── Category Grid ────────────────────────────────────────────────────────── */
.category-card {
    display: flex;
    flex-direction: column;
    align-items: center;
    gap: 12px;
    padding: 28px 16px;
    border: 1px solid #eee;
    transition: all 0.3s ease;
    text-align: center;
}
.category-card:hover { border-color: #111; background: #fafafa; }
.category-card .category-icon {
    width: 48px;
    height: 48px;
    background: #f5f5f5;
    border-radius: 50%;
    display: flex;
    align-items: center;
    justify-content: center;
    transition: all 0.3s ease;
}
.category-card:hover .category-icon { background: #111; color: #fff; }
.category-card .category-name {
    font-size: 11px;
    font-weight: 600;
    letter-spacing: 0.1em;
    text-transform: uppercase;
}

/* ─── Trust Badges ─────────────────────────────────────────────────────────── */
.trust-section { background: #f9f9f9; }
.trust-card { text-align: center; padding: 32px 20px; transition: transform 0.3s ease; }
.trust-card:hover { transform: translateY(-4px); }
.trust-icon {
    width: 56px;
    height: 56px;
    margin: 0 auto 16px;
    background: #111;
    color: #fff;
    border-radius: 50%;
    display: flex;
    align-items: center;
    justify-content: center;
}
.trust-title { font-size: 14px; font-weight: 600; letter-spacing: 0.05em; margin-bottom: 6px; }
.trust-desc { font-size: 13px; color: #777; line-height: 1.5; }

/* ─── Banner Section ───────────────────────────────────────────────────────── */
.promo-banner { position: relative; overflow: hidden; min-height: 300px; }
@media (min-width: 768px) { .promo-banner { min-height: 400px; } }
.promo-banner img {
    width: 100%;
    height: 100%;
    object-fit: cover;
    position: absolute;
    inset: 0;
}
.promo-banner .promo-overlay {
    position: absolute;
    inset: 0;
    background: linear-gradient(90deg, rgba(0,0,0,0.6) 0%, rgba(0,0,0,0.2) 100%);
    display: flex;
    align-items: center;
    padding: 40px;
}
@media (min-width: 768px) { .promo-banner .promo-overlay { padding: 60px 80px; } }

/* ─── Footer ───────────────────────────────────────────────────────────────── */
.site-footer { background: #0d0d0d; color: #fff; padding: 56px 0 0; }
.site-footer a { color: #aaa; transition: color 0.2s ease; }
.site-footer a:hover { color: #fff; }
.footer-grid { display: grid; grid-template-columns: 1fr; gap: 32px; }
@media (min-width: 768px) { .footer-grid { grid-template-columns: 2fr 1fr 1fr 1fr; gap: 48px; } }
.footer-heading {
    font-size: 11px;
    font-weight: 600;
    letter-spacing: 0.15em;
    text-transform: uppercase;
    margin-bottom: 16px;
    color: #fff;
}
.footer-links { list-style: none; }
.footer-links li { margin-bottom: 10px; }
.footer-links a { font-size: 13px; color: #888; }
.footer-bottom {
    border-top: 1px solid #222;
    margin-top: 40px;
    padding: 20px 0;
    text-align: center;
    font-size: 11px;
    color: #555;
    letter-spacing: 0.05em;
}

/* ─── Toast ────────────────────────────────────────────────────────────────── */
#toast { animation: toastSlide 0.35s cubic-bezier(0.25, 0.46, 0.45, 0.94); }
@keyframes toastSlide {
    from { transform: translateY(20px) scale(0.95); opacity: 0; }
    to   { transform: translateY(0) scale(1); opacity: 1; }
}
.toast-inner {
    background: #111;
    color: #fff;
    padding: 14px 24px;
    border-radius: 8px;
    box-shadow: 0 8px 30px rgba(0,0,0,0.15);
    font-size: 13px;
    font-weight: 500;
    display: flex;
    align-items: center;
    gap: 10px;
}

/* ─── Form Controls ────────────────────────────────────────────────────────── */
.form-input {
    width: 100%;
    border: 1px solid #e0e0e0;
    padding: 12px 16px;
    font-size: 14px;
    background: #fff;
    transition: border-color 0.2s ease, box-shadow 0.2s ease;
    outline: none;
}
.form-input:focus { border-color: #111; box-shadow: 0 0 0 1px #111; }
.form-label {
    display: block;
    font-size: 11px;
    font-weight: 600;
    letter-spacing: 0.08em;
    text-transform: uppercase;
    color: #555;
    margin-bottom: 6px;
}

/* ─── Shade Selector ───────────────────────────────────────────────────────── */
.shade-btn {
    width: 36px;
    height: 36px;
    border-radius: 50%;
    border: 2px solid #ddd;
    cursor: pointer;
    transition: all 0.2s ease;
    position: relative;
}
.shade-btn:hover { border-color: #888; }
.shade-btn.active {
    border-color: #111;
    box-shadow: 0 0 0 2px #fff, 0 0 0 4px #111;
    transform: scale(1.1);
}
.shade-btn.out-of-stock { opacity: 0.35; cursor: not-allowed; }
.shade-btn.out-of-stock::after {
    content: '';
    position: absolute;
    top: 50%;
    left: -2px;
    right: -2px;
    height: 1px;
    background: #999;
    transform: rotate(-45deg);
}

/* ─── Qty Selector ─────────────────────────────────────────────────────────── */
.qty-selector { display: inline-flex; align-items: center; border: 1px solid #ddd; overflow: hidden; }
.qty-selector button {
    width: 40px;
    height: 40px;
    background: #fff;
    border: none;
    font-size: 16px;
    display: flex;
    align-items: center;
    justify-content: center;
    transition: background 0.2s ease;
}
.qty-selector button:hover { background: #f5f5f5; }
.qty-selector input {
    width: 48px;
    height: 40px;
    text-align: center;
    border: none;
    border-left: 1px solid #ddd;
    border-right: 1px solid #ddd;
    font-size: 14px;
    font-weight: 500;
    outline: none;
    -moz-appearance: textfield;
}
.qty-selector input::-webkit-outer-spin-button,
.qty-selector input::-webkit-inner-spin-button { -webkit-appearance: none; }

/* ─── Page Transitions ─────────────────────────────────────────────────────── */
@keyframes fadeUp {
    from { opacity: 0; transform: translateY(20px); }
    to   { opacity: 1; transform: translateY(0); }
}
.animate-fade-up { animation: fadeUp 0.6s cubic-bezier(0.25, 0.46, 0.45, 0.94) forwards; opacity: 0; }
.animate-delay-1 { animation-delay: 0.1s; }
.animate-delay-2 { animation-delay: 0.2s; }
.animate-delay-3 { animation-delay: 0.3s; }

/* ─── Print ────────────────────────────────────────────────────────────────── */
@media print {
    .announcement-bar, .site-header, .site-footer, #toast, button { display: none !important; }
    main { padding: 0 !important; }
}

/* ─── Details/Summary ──────────────────────────────────────────────────────── */
details summary::-webkit-details-marker { display: none; }
details summary { list-style: none; }

/* ─── Skeleton Loader ──────────────────────────────────────────────────────── */
.skeleton {
    background: linear-gradient(90deg, #f0f0f0 25%, #e8e8e8 50%, #f0f0f0 75%);
    background-size: 200% 100%;
    animation: shimmer 1.5s infinite;
    border-radius: 2px;
}
@keyframes shimmer {
    0% { background-position: 200% 0; }
    100% { background-position: -200% 0; }
}
