/* ============================================
   ARIKAA - Custom Styles
   Brand: Rose #8B2252, Gold #C5A55A, Cream #FFF9F5
   ============================================ */

/* ---- CSS Variables ---- */
:root {
    --brand: #8B2252;
    --brand-dark: #6B1A40;
    --brand-light: #A62D66;
    --gold: #C5A55A;
    --gold-dark: #B8943F;
    --gold-light: #D4B86A;
    --cream: #FFF9F5;
    --cream-dark: #F5EDE5;
}

/* ---- Smooth Scrolling ---- */
html { scroll-behavior: smooth; }

/* ---- Selection ---- */
::selection { background: rgba(139,34,82,0.2); color: #6B1A40; }

/* ---- Scrollbar ---- */
::-webkit-scrollbar { width: 8px; }
::-webkit-scrollbar-track { background: var(--cream); }
::-webkit-scrollbar-thumb { background: var(--gold); border-radius: 10px; }
::-webkit-scrollbar-thumb:hover { background: var(--gold-dark); }

/* ============================================
   ANIMATIONS
   ============================================ */
@keyframes fadeInUp {
    from { opacity: 0; transform: translateY(30px); }
    to { opacity: 1; transform: translateY(0); }
}
@keyframes fadeIn {
    from { opacity: 0; }
    to { opacity: 1; }
}
@keyframes scaleIn {
    from { opacity: 0; transform: scale(0.9); }
    to { opacity: 1; transform: scale(1); }
}
@keyframes slideDown {
    from { opacity: 0; transform: translateY(-10px); }
    to { opacity: 1; transform: translateY(0); }
}
@keyframes pulse-gold {
    0%, 100% { box-shadow: 0 0 0 0 rgba(197,165,90,0.4); }
    50% { box-shadow: 0 0 0 10px rgba(197,165,90,0); }
}
@keyframes shimmer {
    0% { background-position: -200% 0; }
    100% { background-position: 200% 0; }
}
@keyframes marquee {
    0% { transform: translateX(100%); }
    100% { transform: translateX(-100%); }
}
@keyframes float {
    0%, 100% { transform: translateY(0px); }
    50% { transform: translateY(-10px); }
}
@keyframes heartBeat {
    0% { transform: scale(1); }
    15% { transform: scale(1.3); }
    30% { transform: scale(1); }
    45% { transform: scale(1.2); }
    60% { transform: scale(1); }
}
@keyframes toastIn {
    from { opacity: 0; transform: translateX(100px); }
    to { opacity: 1; transform: translateX(0); }
}
@keyframes toastOut {
    from { opacity: 1; transform: translateX(0); }
    to { opacity: 0; transform: translateX(100px); }
}
@keyframes spin {
    to { transform: rotate(360deg); }
}

.animate-fadeInUp { animation: fadeInUp 0.6s ease-out forwards; }
.animate-fadeIn { animation: fadeIn 0.4s ease-out forwards; }
.animate-scaleIn { animation: scaleIn 0.5s ease-out forwards; }
.animate-slideDown { animation: slideDown 0.3s ease-out forwards; }
.animate-float { animation: float 3s ease-in-out infinite; }

/* ============================================
   SKELETON LOADING
   ============================================ */
.skeleton {
    background: linear-gradient(90deg, #f0f0f0 25%, #e0e0e0 50%, #f0f0f0 75%);
    background-size: 200% 100%;
    animation: shimmer 1.5s infinite;
    border-radius: 8px;
}

/* ============================================
   HERO SECTION
   ============================================ */
.hero-carousel { position: relative; overflow: hidden; width: 100%; height: 100%; }
.hero-slide {
    position: absolute;
    top: 0; left: 0; right: 0; bottom: 0;
    width: 100%; height: 100%;
    opacity: 0;
    visibility: hidden;
    pointer-events: none;
    z-index: 0;
    transition: opacity 0.8s ease-in-out, visibility 0.8s ease-in-out;
}
.hero-slide.active {
    opacity: 1;
    visibility: visible;
    pointer-events: auto;
    z-index: 10;
}
.hero-dot {
    transition: all 0.3s ease;
}
.hero-dots button {
    width: 10px; height: 10px; border-radius: 50%;
    background: rgba(255,255,255,0.4); border: 2px solid transparent;
    transition: all 0.3s;
}
.hero-dots button.active {
    background: white; border-color: var(--gold);
    transform: scale(1.2);
}

/* ============================================
   PRODUCT CARDS
   ============================================ */
.product-card {
    transition: all 0.3s ease;
    border-radius: 12px;
    overflow: hidden;
}
.product-card:hover {
    transform: translateY(-4px);
    box-shadow: 0 12px 40px rgba(139,34,82,0.12);
}
.product-card .product-image {
    overflow: hidden;
    position: relative;
}
.product-card .product-image img {
    transition: transform 0.6s ease;
}
.product-card:hover .product-image img {
    transform: scale(1.08);
}
.product-card .product-actions {
    position: absolute;
    bottom: -50px;
    left: 0; right: 0;
    transition: bottom 0.3s ease;
    display: flex;
    gap: 8px;
    padding: 12px;
    justify-content: center;
}
.product-card:hover .product-actions {
    bottom: 0;
}
.product-card .product-actions button {
    width: 40px; height: 40px;
    border-radius: 50%;
    display: flex; align-items: center; justify-content: center;
    transition: all 0.2s;
}

/* ============================================
   BADGES
   ============================================ */
.badge-sale {
    position: absolute; top: 12px; left: 12px;
    background: #ef4444; color: white;
    padding: 4px 10px; border-radius: 6px;
    font-size: 11px; font-weight: 700;
    letter-spacing: 0.05em;
    z-index: 2;
}
.badge-new {
    position: absolute; top: 12px; left: 12px;
    background: var(--gold); color: white;
    padding: 4px 10px; border-radius: 6px;
    font-size: 11px; font-weight: 700;
    letter-spacing: 0.05em;
    z-index: 2;
}
.badge-trending {
    position: absolute; top: 12px; right: 12px;
    background: var(--brand); color: white;
    padding: 4px 10px; border-radius: 6px;
    font-size: 11px; font-weight: 600;
    z-index: 2;
}

/* ============================================
   WISHLIST HEART
   ============================================ */
.wishlist-heart {
    transition: all 0.2s;
}
.wishlist-heart.active {
    color: #ef4444 !important;
    animation: heartBeat 0.6s ease;
}
.wishlist-heart.active svg {
    fill: #ef4444;
}

/* ============================================
   CATEGORY CARDS
   ============================================ */
.category-card {
    position: relative;
    overflow: hidden;
    border-radius: 16px;
    cursor: pointer;
}
.category-card::after {
    content: '';
    position: absolute; inset: 0;
    background: linear-gradient(to top, rgba(0,0,0,0.6), transparent);
    transition: all 0.3s;
}
.category-card:hover::after {
    background: linear-gradient(to top, rgba(139,34,82,0.7), transparent);
}
.category-card img {
    transition: transform 0.6s ease;
}
.category-card:hover img {
    transform: scale(1.1);
}

/* ============================================
   ORNAMENT DIVIDER
   ============================================ */
.ornament-divider {
    display: flex; align-items: center; gap: 16px;
    color: var(--gold);
}
.ornament-divider::before,
.ornament-divider::after {
    content: '';
    flex: 1; height: 1px;
    background: linear-gradient(to right, transparent, var(--gold), transparent);
}

/* ============================================
   GOLD LINK UNDERLINE
   ============================================ */
.gold-link {
    position: relative;
    display: inline-block;
}
.gold-link::after {
    content: '';
    position: absolute;
    bottom: -2px; left: 0;
    width: 0; height: 2px;
    background: var(--gold);
    transition: width 0.3s;
}
.gold-link:hover::after { width: 100%; }

/* ============================================
   BUTTONS
   ============================================ */
.btn-primary {
    background: var(--brand);
    color: white;
    padding: 10px 24px;
    border-radius: 10px;
    font-weight: 600;
    transition: all 0.3s;
    display: inline-flex;
    align-items: center;
    gap: 8px;
    font-size: 14px;
}
.btn-primary:hover {
    background: var(--brand-dark);
    transform: translateY(-1px);
    box-shadow: 0 4px 15px rgba(139,34,82,0.3);
}
.btn-gold {
    background: linear-gradient(135deg, var(--gold), var(--gold-dark));
    color: white;
    padding: 10px 24px;
    border-radius: 10px;
    font-weight: 600;
    transition: all 0.3s;
    display: inline-flex;
    align-items: center;
    gap: 8px;
    font-size: 14px;
}
.btn-gold:hover {
    transform: translateY(-1px);
    box-shadow: 0 4px 15px rgba(197,165,90,0.3);
}
.btn-outline {
    border: 2px solid var(--brand);
    color: var(--brand);
    padding: 8px 22px;
    border-radius: 10px;
    font-weight: 600;
    transition: all 0.3s;
    display: inline-flex;
    align-items: center;
    gap: 8px;
    font-size: 14px;
    background: transparent;
}
.btn-outline:hover {
    background: var(--brand);
    color: white;
}

/* ============================================
   TOAST
   ============================================ */
.toast-item {
    animation: toastIn 0.4s ease-out;
    border-radius: 10px;
    padding: 14px 20px;
    box-shadow: 0 8px 30px rgba(0,0,0,0.15);
    display: flex;
    align-items: center;
    gap: 10px;
    min-width: 300px;
    max-width: 420px;
    font-size: 14px;
}
.toast-item.removing {
    animation: toastOut 0.3s ease-in forwards;
}
.toast-success { background: #ecfdf5; border: 1px solid #a7f3d0; color: #065f46; }
.toast-error { background: #fef2f2; border: 1px solid #fecaca; color: #991b1b; }
.toast-info { background: #eff6ff; border: 1px solid #bfdbfe; color: #1e40af; }
.toast-warning { background: #fffbeb; border: 1px solid #fde68a; color: #92400e; }

/* ============================================
   QUANTITY SELECTOR
   ============================================ */
.qty-selector {
    display: flex;
    align-items: center;
    border: 2px solid #e5e7eb;
    border-radius: 10px;
    overflow: hidden;
}
.qty-selector button {
    width: 36px; height: 36px;
    display: flex; align-items: center; justify-content: center;
    background: #f9fafb;
    border: none;
    font-size: 16px;
    font-weight: 600;
    transition: all 0.2s;
    cursor: pointer;
}
.qty-selector button:hover { background: #f3f4f6; }
.qty-selector input {
    width: 48px; height: 36px;
    text-align: center;
    border: none;
    border-left: 2px solid #e5e7eb;
    border-right: 2px solid #e5e7eb;
    font-weight: 600;
    font-size: 14px;
    outline: none;
}

/* ============================================
   FORM INPUTS
   ============================================ */
.form-input {
    width: 100%;
    padding: 12px 16px;
    border: 2px solid #e5e7eb;
    border-radius: 10px;
    font-size: 14px;
    transition: all 0.3s;
    background: white;
    font-family: 'Poppins', sans-serif;
}
.form-input:focus {
    outline: none;
    border-color: var(--brand);
    box-shadow: 0 0 0 3px rgba(139,34,82,0.1);
}
.form-input::placeholder { color: #9ca3af; }

/* ============================================
   SIZE CHIPS & COLOR SWATCHES
   ============================================ */
.size-chip {
    padding: 6px 16px;
    border: 2px solid #e5e7eb;
    border-radius: 8px;
    font-size: 13px;
    font-weight: 500;
    cursor: pointer;
    transition: all 0.2s;
}
.size-chip:hover { border-color: var(--brand); color: var(--brand); }
.size-chip.active { background: var(--brand); color: white; border-color: var(--brand); }

.color-swatch {
    width: 32px; height: 32px;
    border-radius: 50%;
    cursor: pointer;
    border: 3px solid transparent;
    transition: all 0.2s;
}
.color-swatch:hover, .color-swatch.active {
    border-color: var(--brand);
    transform: scale(1.1);
    box-shadow: 0 2px 8px rgba(0,0,0,0.15);
}

/* ============================================
   ACCORDION
   ============================================ */
.accordion-item { border: 1px solid #e5e7eb; border-radius: 10px; overflow: hidden; }
.accordion-header { cursor: pointer; transition: background 0.2s; }
.accordion-header:hover { background: var(--cream); }
.accordion-content {
    max-height: 0; overflow: hidden;
    transition: max-height 0.3s ease, padding 0.3s ease;
}
.accordion-content.open {
    max-height: 500px;
    padding: 16px 20px;
}
.accordion-icon { transition: transform 0.3s; }
.accordion-icon.rotated { transform: rotate(180deg); }

/* ============================================
   MARQUEE
   ============================================ */
.animate-marquee {
    display: inline-flex;
    animation: marquee 25s linear infinite;
}

/* ============================================
   MOBILE MENU
   ============================================ */
#mobile-menu {
    max-height: 0;
    overflow: hidden;
    transition: max-height 0.3s ease-out;
}
#mobile-menu.open {
    max-height: 500px;
}

/* ============================================
   BACK TO TOP
   ============================================ */
#back-to-top {
    opacity: 0;
    visibility: hidden;
}
#back-to-top.visible {
    opacity: 1;
    visibility: visible;
}

/* ============================================
   COOKIE CONSENT
   ============================================ */
#cookie-consent {
    transform: translateY(100%);
}
#cookie-consent.show {
    transform: translateY(0);
}

/* ============================================
   DATA TABLE
   ============================================ */
.data-table { width: 100%; border-collapse: collapse; }
.data-table th {
    background: var(--cream-dark);
    padding: 12px 16px;
    text-align: left;
    font-size: 12px;
    font-weight: 600;
    text-transform: uppercase;
    letter-spacing: 0.05em;
    color: #6b7280;
}
.data-table td {
    padding: 12px 16px;
    border-bottom: 1px solid #f3f4f6;
    font-size: 14px;
}
.data-table tr:hover td { background: var(--cream); }

/* ============================================
   ADMIN SIDEBAR
   ============================================ */
.admin-nav-link {
    display: flex; align-items: center; gap: 12px;
    padding: 10px 16px; border-radius: 10px;
    font-size: 14px; font-weight: 500;
    color: #6b7280;
    transition: all 0.2s;
}
.admin-nav-link:hover { background: var(--cream); color: var(--brand); }
.admin-nav-link.active { background: rgba(139,34,82,0.08); color: var(--brand); font-weight: 600; }

/* ============================================
   IMAGE GALLERY
   ============================================ */
.gallery-thumb {
    border: 2px solid transparent;
    border-radius: 8px;
    overflow: hidden;
    cursor: pointer;
    transition: all 0.2s;
}
.gallery-thumb:hover, .gallery-thumb.active { border-color: var(--brand); }

/* ============================================
   RESPONSIVE
   ============================================ */
@media (max-width: 640px) {
    .hero-slide h1 { font-size: 1.75rem !important; }
    .hero-slide p { font-size: 0.875rem !important; }
    .btn-primary, .btn-gold, .btn-outline { padding: 8px 18px; font-size: 13px; }
}

/* ============================================
   REDUCED MOTION
   ============================================ */
@media (prefers-reduced-motion: reduce) {
    *, *::before, *::after {
        animation-duration: 0.01ms !important;
        transition-duration: 0.01ms !important;
    }
}

/* ============================================
   PRINT
   ============================================ */
@media print {
    header, footer, .no-print { display: none !important; }
    main { min-height: auto; }
}
