/*
 * SELLORA ONLINE SHOP - Premium CSS Stylesheet
 * Custom Styling: Studio White, Slate & Elegant Gold Theme
 */

@import url('https://fonts.googleapis.com/css2?family=Inter:wght@300;400;500;600;700&family=Outfit:wght@400;500;600;700;800&family=Playfair+Display:ital,wght@0,400..900;1,400..900&display=swap');

:root {
    --bg-dark: #f8f9fa; /* Soft off-white background */
    --bg-card: #ffffff; /* Pure white card background */
    --text-primary: #1a1a1e; /* Clean charcoal slate */
    --text-muted: #6c757d; /* Soft slate gray */
    --primary-gold: #c59b27; /* Rich brushed gold for premium accent */
    --hover-gold: #a37d1a; /* Deeper gold/bronze for hover */
    --light-gray: #f8f9fa;
    --border-color: #e9ecef; /* Very subtle light gray border */
    --font-outfit: 'Outfit', sans-serif;
    --font-inter: 'Inter', sans-serif;
    --font-playfair: 'Playfair Display', serif;
    --deep-slate: #1e2328; /* Refined dark slate for header/footer */
}

body {
    background-color: var(--bg-dark);
    color: var(--text-primary);
    font-family: var(--font-inter);
    overflow-x: hidden;
    position: relative;
}

/* Custom Scrollbar */
::-webkit-scrollbar {
    width: 8px;
}
::-webkit-scrollbar-track {
    background: var(--bg-dark);
}
::-webkit-scrollbar-thumb {
    background: #ced4da;
    border-radius: 4px;
}
::-webkit-scrollbar-thumb:hover {
    background: var(--primary-gold);
}

/* Typography Classes */
.font-outfit {
    font-family: var(--font-outfit);
}
.font-playfair {
    font-family: var(--font-playfair);
}

/* Premium Typography Elements */
h1, h2, h3, .section-title {
    font-family: var(--font-playfair);
    font-weight: 700;
    color: var(--text-primary);
}

h4, h5, h6 {
    font-family: var(--font-outfit);
    font-weight: 600;
    color: var(--text-primary);
}

/* Animated Photography Background */
.animated-bg {
    position: fixed;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    z-index: -2;
    pointer-events: none;
    overflow: hidden;
}

.bg-bubble {
    position: absolute;
    border-radius: 50%;
    background: radial-gradient(circle, rgba(197, 155, 39, 0.04) 0%, rgba(255, 255, 255, 0) 70%);
    animation: float-bubble 25s infinite ease-in-out;
}

.bg-lens-ring {
    position: absolute;
    border: 1.5px dashed rgba(197, 155, 39, 0.05);
    border-radius: 50%;
    animation: rotate-lens 50s infinite linear;
}

@keyframes float-bubble {
    0%, 100% {
        transform: translateY(0) scale(1) rotate(0deg);
        opacity: 0.8;
    }
    50% {
        transform: translateY(-60px) scale(1.2) rotate(180deg);
        opacity: 0.3;
    }
}

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

/* Header & Navigation */
.topbar-container {
    position: relative;
    z-index: 1050 !important;
}

.topbar-container .dropdown-menu {
    z-index: 1060 !important;
}

.navbar-custom {
    background-color: rgba(255, 255, 255, 0.95);
    backdrop-filter: blur(12px);
    border-bottom: 1px solid var(--border-color);
    box-shadow: 0 4px 20px rgba(0, 0, 0, 0.03);
    transition: all 0.3s ease;
    z-index: 1030;
}

.navbar-custom .navbar-brand {
    font-family: var(--font-outfit);
    font-weight: 800;
    color: var(--text-primary) !important;
    letter-spacing: 0.5px;
}

.navbar-custom .navbar-brand span {
    color: var(--primary-gold);
}

.navbar-custom .nav-link {
    color: #495057 !important;
    font-weight: 500;
    transition: color 0.2s ease;
    padding: 8px 16px;
}

.navbar-custom .nav-link:hover,
.navbar-custom .nav-link.active {
    color: var(--primary-gold) !important;
}

/* Hero Section / Carousel */
.hero-slider {
    background: linear-gradient(135deg, #ffffff 0%, #f1f3f5 100%);
    position: relative;
    padding: 80px 0;
    border-bottom: 1px solid var(--border-color);
    overflow: hidden;
}

/* Product Cards with Hover Micro-animations */
.product-card {
    background-color: var(--bg-card);
    border: 1px solid var(--border-color);
    border-radius: 16px;
    overflow: hidden;
    transition: all 0.4s cubic-bezier(0.165, 0.84, 0.44, 1);
    height: 100%;
    display: flex;
    flex-direction: column;
    box-shadow: 0 4px 15px rgba(0, 0, 0, 0.02);
}

.product-card:hover {
    transform: translateY(-8px);
    border-color: var(--primary-gold);
    box-shadow: 0 20px 40px rgba(0, 0, 0, 0.08);
}

.product-card-img-wrapper {
    position: relative;
    padding-top: 100%;
    background-color: #f8f9fa;
    overflow: hidden;
}

.product-card-img-wrapper img {
    position: absolute;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    object-fit: cover;
    transition: transform 0.6s cubic-bezier(0.165, 0.84, 0.44, 1);
}

.product-card:hover .product-card-img-wrapper img {
    transform: scale(1.06);
}

.product-card-badge {
    position: absolute;
    top: 15px;
    left: 15px;
    background-color: var(--primary-gold);
    color: #ffffff;
    font-family: var(--font-outfit);
    font-weight: 700;
    padding: 4px 12px;
    border-radius: 6px;
    font-size: 0.75rem;
    z-index: 10;
    letter-spacing: 0.5px;
    box-shadow: 0 4px 10px rgba(197, 155, 39, 0.2);
}

.product-card-body {
    padding: 24px;
    display: flex;
    flex-direction: column;
    flex-grow: 1;
}

.product-card-category {
    font-size: 0.75rem;
    text-transform: uppercase;
    color: var(--text-muted);
    margin-bottom: 8px;
    font-weight: 600;
    letter-spacing: 0.8px;
}

.product-card-title {
    font-family: var(--font-outfit);
    font-weight: 600;
    font-size: 1.05rem;
    line-height: 1.45;
    margin-bottom: 12px;
    display: -webkit-box;
    -webkit-line-clamp: 2;
    -webkit-box-orient: vertical;
    overflow: hidden;
    height: 2.9rem;
}

.product-card-title a {
    color: var(--text-primary);
    text-decoration: none;
    transition: color 0.2s ease;
}

.product-card-title a:hover {
    color: var(--primary-gold);
}

.product-card-price {
    font-family: var(--font-outfit);
    font-weight: 700;
    font-size: 1.25rem;
    color: var(--primary-gold);
    margin-top: auto;
}

/* Brand logo slider */
.brand-carousel-item img {
    max-height: 50px;
    width: auto;
    filter: grayscale(100%);
    opacity: 0.6;
    transition: all 0.3s ease;
}

.brand-carousel-item img:hover {
    filter: grayscale(0%);
    opacity: 1;
    transform: scale(1.05);
}

/* Category Box */
.category-box {
    background-color: var(--bg-card);
    border: 1px solid var(--border-color);
    padding: 30px 20px;
    border-radius: 16px;
    text-align: center;
    transition: all 0.3s cubic-bezier(0.165, 0.84, 0.44, 1);
    cursor: pointer;
    text-decoration: none;
    display: block;
    box-shadow: 0 4px 10px rgba(0,0,0,0.01);
}

.category-box:hover {
    border-color: var(--primary-gold);
    transform: translateY(-5px);
    box-shadow: 0 15px 30px rgba(0, 0, 0, 0.04);
}

.category-box i {
    font-size: 2.8rem;
    color: var(--primary-gold);
    margin-bottom: 16px;
    display: block;
    transition: transform 0.3s ease;
}

.category-box:hover i {
    transform: scale(1.1);
}

.category-box h5 {
    color: var(--text-primary);
    font-family: var(--font-outfit);
    font-weight: 600;
    margin-bottom: 0;
}

/* Footer Section */
.footer-custom {
    background-color: #121214;
    border-top: 1px solid var(--border-color);
    color: #a0aec0;
    font-size: 0.9rem;
}

.footer-custom h5 {
    color: #ffffff;
    font-family: var(--font-outfit);
    font-weight: 600;
    margin-bottom: 24px;
}

.footer-custom a {
    color: #a0aec0;
    text-decoration: none;
    transition: color 0.2s ease;
}

.footer-custom a:hover {
    color: var(--primary-gold);
}

.footer-compliance-box {
    background-color: rgba(255, 255, 255, 0.03);
    border: 1px solid rgba(255, 255, 255, 0.08);
    border-radius: 12px;
    padding: 20px;
}

/* Buttons and Dynamic Hover Effects */
.btn-gold {
    background-color: var(--primary-gold);
    color: #ffffff;
    font-family: var(--font-outfit);
    font-weight: 700;
    border: 1px solid var(--primary-gold);
    border-radius: 8px;
    padding: 10px 24px;
    transition: all 0.3s cubic-bezier(0.165, 0.84, 0.44, 1);
    box-shadow: 0 4px 10px rgba(197, 155, 39, 0.15);
}

.btn-gold:hover {
    background-color: var(--hover-gold);
    border-color: var(--hover-gold);
    color: #ffffff;
    transform: translateY(-2px);
    box-shadow: 0 8px 18px rgba(197, 155, 39, 0.25);
}

.btn-gold:active {
    transform: translateY(0);
}

.btn-outline-gold {
    background-color: transparent;
    color: var(--primary-gold);
    font-family: var(--font-outfit);
    font-weight: 600;
    border: 1px solid var(--primary-gold);
    border-radius: 8px;
    padding: 10px 24px;
    transition: all 0.3s cubic-bezier(0.165, 0.84, 0.44, 1);
}

.btn-outline-gold:hover {
    background-color: var(--primary-gold);
    color: #ffffff;
    transform: translateY(-2px);
    box-shadow: 0 8px 18px rgba(197, 155, 39, 0.15);
}

/* Wishlist, Cart & Badge Counters */
.badge-counter {
    position: absolute;
    top: -5px;
    right: -5px;
    font-size: 0.65rem;
    padding: 3px 6px;
    border-radius: 50%;
    background-color: var(--primary-gold);
    color: #ffffff;
    font-weight: 700;
}

/* Glassmorphism Accents */
.glass-panel {
    background: rgba(255, 255, 255, 0.7);
    backdrop-filter: blur(12px);
    border: 1px solid var(--border-color);
}

/* Admin Sidebar Dashboard Layout */
.admin-sidebar {
    background-color: #ffffff;
    border-right: 1px solid var(--border-color);
    min-height: 100vh;
}

.admin-sidebar .nav-link {
    color: var(--text-muted);
    font-weight: 500;
    border-radius: 8px;
    margin-bottom: 6px;
    padding: 12px 20px;
    transition: all 0.2s ease;
}

.admin-sidebar .nav-link:hover,
.admin-sidebar .nav-link.active {
    color: var(--primary-gold);
    background-color: var(--bg-dark);
}

/* Live AJAX Search Suggestions Dropdown */
.ajax-search-results {
    position: absolute;
    top: 100%;
    left: 0;
    right: 0;
    z-index: 1000;
    background-color: var(--bg-card);
    border: 1px solid var(--border-color);
    border-radius: 10px;
    max-height: 400px;
    overflow-y: auto;
    box-shadow: 0 10px 35px rgba(0,0,0,0.06);
    display: none;
}

.ajax-search-item {
    display: flex;
    align-items: center;
    padding: 12px 16px;
    border-bottom: 1px solid var(--border-color);
    text-decoration: none;
    color: var(--text-primary);
    transition: background-color 0.2s ease;
}

.ajax-search-item:hover {
    background-color: var(--bg-dark);
    color: var(--primary-gold);
}

.ajax-search-item img {
    width: 45px;
    height: 45px;
    object-fit: cover;
    border-radius: 6px;
    margin-right: 12px;
    background-color: #f8f9fa;
    border: 1px solid var(--border-color);
}

.ajax-search-details {
    flex-grow: 1;
}

.ajax-search-name {
    font-family: var(--font-outfit);
    font-weight: 600;
    font-size: 0.95rem;
    line-height: 1.2;
}

.ajax-search-price {
    font-size: 0.85rem;
    color: var(--primary-gold);
    font-weight: 700;
    margin-top: 4px;
}

/* Custom Carousels & Slick Indicators styling */
.carousel-control-prev-icon,
.carousel-control-next-icon {
    background-color: rgba(0,0,0,0.4);
    padding: 15px;
    border-radius: 50%;
    background-size: 50%;
}

.carousel-indicators [data-bs-target] {
    background-color: var(--primary-gold);
}

/* Gold Accent Text Utility */
.text-gold-accent {
    color: var(--primary-gold) !important;
}

/* Light theme form overrides */
.form-control:focus,
.form-select:focus {
    border-color: var(--primary-gold);
    box-shadow: 0 0 0 0.15rem rgba(197, 155, 39, 0.2);
}

/* Breadcrumb styling */
.breadcrumb-item + .breadcrumb-item::before {
    color: #adb5bd;
}

/* Nav tabs light theme */
.nav-tabs .nav-link.active {
    color: var(--primary-gold) !important;
    border-bottom: 2px solid var(--primary-gold) !important;
}

.nav-tabs .nav-link:hover {
    color: var(--primary-gold) !important;
}

/* Header Menu & Utility Icons Customization */
.nav-link-custom {
    color: var(--text-primary) !important;
    font-family: var(--font-outfit);
    font-weight: 600;
    padding: 8px 16px !important;
    border-radius: 8px;
    border: 1px solid transparent;
    transition: all 0.25s cubic-bezier(0.165, 0.84, 0.44, 1);
    margin: 0 4px;
}

.nav-link-custom:hover,
.nav-link-custom.active {
    color: var(--primary-gold) !important;
    background-color: rgba(197, 155, 39, 0.08);
    border-color: rgba(197, 155, 39, 0.3);
    transform: translateY(-1px);
}

.header-util-btn {
    display: inline-flex;
    align-items: center;
    justify-content: center;
    padding: 6px 14px;
    border-radius: 8px;
    background: #ffffff;
    border: 1.5px solid #ced4da;
    color: #1a1a1e !important;
    font-weight: 600;
    font-size: 0.85rem;
    transition: all 0.25s ease;
    box-shadow: 0 2px 6px rgba(0,0,0,0.05);
}

.header-util-btn i {
    font-size: 1.1rem;
    color: #1a1a1e;
    transition: transform 0.25s ease, color 0.25s ease;
}

.header-util-btn:hover {
    background-color: #ffffff;
    border-color: var(--primary-gold);
    color: var(--primary-gold) !important;
    transform: translateY(-2px);
    box-shadow: 0 4px 12px rgba(197, 155, 39, 0.2);
}

.header-util-btn:hover i {
    color: var(--primary-gold);
    transform: scale(1.15);
}

/* Pagination Custom */
.pagination-custom .page-link {
    color: var(--text-primary);
    background-color: #ffffff;
    border: 1px solid var(--border-color);
    font-family: var(--font-outfit);
    font-weight: 600;
    padding: 8px 16px;
    border-radius: 8px;
    margin: 0 3px;
    transition: all 0.2s ease;
}

.pagination-custom .page-link:hover {
    color: var(--primary-gold);
    border-color: var(--primary-gold);
    background-color: rgba(197, 155, 39, 0.08);
}

.pagination-custom .page-item.active .page-link {
    background-color: var(--primary-gold);
    border-color: var(--primary-gold);
    color: #ffffff;
}

.pagination-custom .page-item.disabled .page-link {
    color: #adb5bd;
    background-color: #f8f9fa;
    border-color: var(--border-color);
}

/* Visible Form Control Borders Across Entire Site */
.form-control,
.form-select,
textarea.form-control,
input.form-control,
select.form-select,
.form-check-input {
    border: 1.5px solid #cbd5e1 !important; /* Highly visible slate border */
    border-radius: 8px;
    transition: all 0.2s ease;
}

.form-control:hover,
.form-select:hover {
    border-color: #94a3b8 !important; /* Darker slate-400 on hover */
}

.form-control:focus,
.form-select:focus,
textarea.form-control:focus {
    border-color: var(--primary-gold) !important;
    box-shadow: 0 0 0 0.2rem rgba(197, 155, 39, 0.25) !important;
}

/* Override faint Bootstrap utility classes on form controls */
.form-control.border-light,
.form-select.border-light,
.border-light.form-control,
.border-light.form-select {
    border-color: #cbd5e1 !important;
}

/* Dark theme & Admin Panel form control visible borders */
.bg-dark .form-control,
.bg-black .form-control,
.bg-dark .form-select,
.bg-black .form-select,
.card.bg-dark .form-control,
.card.bg-black .form-control,
.card.bg-dark .form-select,
.card.bg-black .form-select {
    border: 1.5px solid #64748b !important; /* Visible slate border for dark background inputs */
}

.bg-dark .form-control:hover,
.bg-black .form-control:hover,
.card.bg-dark .form-control:hover,
.card.bg-black .form-control:hover {
    border-color: #94a3b8 !important;
}

.bg-dark .form-control:focus,
.bg-black .form-control:focus,
.card.bg-dark .form-control:focus,
.card.bg-black .form-control:focus {
    border-color: var(--primary-gold) !important;
    box-shadow: 0 0 0 0.2rem rgba(197, 155, 39, 0.3) !important;
}

/* Product Card Action Buttons & Layout */
.product-card-footer {
    margin-top: auto;
}

.product-card-action-btn {
    width: 38px !important;
    height: 38px !important;
    display: inline-flex !important;
    align-items: center !important;
    justify-content: center !important;
    padding: 0 !important;
    border-radius: 8px !important;
    flex-shrink: 0 !important;
    transition: all 0.2s ease !important;
}

.product-card-action-btn:hover {
    transform: translateY(-2px) !important;
}

/* Animated Floating Back-to-Top Button */
.back-to-top-btn {
    position: fixed;
    bottom: 30px;
    right: 30px;
    width: 46px;
    height: 46px;
    border-radius: 50%;
    background: linear-gradient(135deg, #c59b27, #e2b740);
    color: #121214;
    border: 2px solid #ffffff;
    box-shadow: 0 4px 16px rgba(0, 0, 0, 0.3);
    display: flex;
    align-items: center;
    justify-content: center;
    font-size: 1.5rem;
    font-weight: bold;
    cursor: pointer;
    z-index: 1080;
    opacity: 0;
    visibility: hidden;
    transform: translateY(20px) scale(0.85);
    transition: opacity 0.3s cubic-bezier(0.165, 0.84, 0.44, 1),
                visibility 0.3s cubic-bezier(0.165, 0.84, 0.44, 1),
                transform 0.3s cubic-bezier(0.165, 0.84, 0.44, 1),
                box-shadow 0.25s ease,
                background 0.25s ease;
}

.back-to-top-btn.show {
    opacity: 1;
    visibility: visible;
    transform: translateY(0) scale(1);
}

.back-to-top-btn:hover {
    background: linear-gradient(135deg, #e2b740, #ffd700);
    color: #000000;
    transform: translateY(-4px) scale(1.08);
    box-shadow: 0 8px 24px rgba(197, 155, 39, 0.5);
}

.back-to-top-btn:active {
    transform: translateY(-1px) scale(0.95);
}




