/* --- PREMIUM LUXURY THEME --- */
:root {
    /* Rich/Premium Palette */
    --color-primary: #8B6508;
    /* Darkest Yellow / Antique Gold */
    --color-secondary: #fefcf5;
    /* Warm Off-White to match Gold */
    --color-accent: #1a1a1a;
    /* Black accent for contrast against Gold */
    --color-text: #1a1a1a;
    --color-muted: #64748b;

    /* Functional Colors */
    --bg-body: #ffffff;
    --bg-card: #ffffff;
    --border-color: #e2e8f0;
    --border-strong: #1a1a1a;
    /* Stark contrast border */

    /* Typography */
    --font-heading: 'Playfair Display', serif;
    /* Luxury Editorial Font */
    --font-body: 'Inter', sans-serif;
    /* Clean Modern Sans */

    /* Spacing & Layout */
    --radius: 0px;
    /* Sharp corners = High End */
    --radius-sm: 2px;

    /* Shadows - Subtle & Deep */
    --shadow-sm: 0 1px 2px 0 rgba(0, 0, 0, 0.05);
    --shadow-card: 0 10px 40px -10px rgba(0, 0, 0, 0.08);
    /* Soft, expensive feeling shadow */

    --bg-gradient: linear-gradient(135deg, #8B6508, #b8860b);
    --color-blue: var(--color-primary);
    --border: var(--border-color);
}

body {
    transition: background-color 0.3s ease, color 0.3s ease;
}

body.dark-mode {
    --color-primary: #ffffff;
    --color-secondary: #0f172a;
    --color-accent: #d4af37;
    --color-text: #f1f5f9;
    --color-text-muted: #94a3b8;
    --color-muted: #94a3b8;

    --bg-body: #0f172a;
    --bg-card: #1e293b;
    --border-color: #334155;
    --border-strong: #ffffff;

    --brand-bg: #d4af37;
    /* Gold background for dark mode */
    --brand-text: #1a1a1a;
    /* Dark text for gold background */

    --bg-gradient: linear-gradient(135deg, #d4af37, #8B6508);
    --border: var(--border-color);
    --color-blue: #60a5fa;
}

:root {
    --color-text-muted: #64748b;
    --brand-bg: #8B6508;
    /* Dark gold for light mode */
    --brand-text: #ffffff;
    /* White text for dark gold */

    --bg-gradient: linear-gradient(135deg, #8B6508, #b8860b);
    --color-blue: var(--color-primary);
    --border: var(--border-color);
}

/* --- RESET & BASE --- */
* {
    box-sizing: border-box;
    margin: 0;
    padding: 0;
}

body {
    font-family: var(--font-body);
    background-color: var(--bg-body);
    color: var(--color-text);
    line-height: 1.7;
    /* Relaxed reading experience */
    -webkit-font-smoothing: antialiased;
}

h1,
h2,
h3,
h4,
h5,
h6 {
    font-family: var(--font-heading);
    color: var(--color-primary);
    font-weight: 700;
    letter-spacing: -0.01em;
    line-height: 1.2;
}

a {
    text-decoration: none;
    color: inherit;
}

button {
    font-family: inherit;
    background: none;
    border: none;
    color: inherit;
    cursor: pointer;
    transition: all 0.3s ease;
    padding: 0;
}

/* --- UTILITIES --- */
.container {
    max-width: 1440px;
    /* Expansive luxury width */
    margin: 0 auto;
    padding: 0 2rem;
}

.flex {
    display: flex;
}

.flex-col {
    flex-direction: column;
}

.items-center {
    align-items: center;
}

.justify-between {
    justify-content: space-between;
}

.justify-center {
    justify-content: center;
}

.gap-2 {
    gap: 0.5rem;
}

.gap-4 {
    gap: 1rem;
}

.gap-6 {
    gap: 1.5rem;
}

.gap-8 {
    gap: 2rem;
}

.gap-x-8 {
    column-gap: 2rem;
}

.gap-y-12 {
    row-gap: 3rem;
}

.grid {
    display: grid;
}

.grid-cols-1 {
    grid-template-columns: repeat(1, 1fr);
}

.grid-cols-2 {
    grid-template-columns: repeat(2, 1fr);
}

.grid-cols-3 {
    grid-template-columns: repeat(3, 1fr);
}

.grid-cols-4 {
    grid-template-columns: repeat(4, 1fr);
}

.w-full {
    width: 100%;
}

.h-full {
    height: 100%;
}

.h-fit {
    height: fit-content;
}

.text-center {
    text-align: center;
}

.relative {
    position: relative;
}

.absolute {
    position: absolute;
}

.inset-0 {
    top: 0;
    right: 0;
    bottom: 0;
    left: 0;
}

.top-0 {
    top: 0;
}

.left-0 {
    left: 0;
}

.overflow-hidden {
    overflow: hidden;
}

/* Spacing */
.p-4 {
    padding: 1rem;
}

.p-6 {
    padding: 1.5rem;
}

.p-8 {
    padding: 2rem;
}

.py-4 {
    padding-top: 1rem;
    padding-bottom: 1rem;
}

.py-8 {
    padding-top: 2rem;
    padding-bottom: 2rem;
}

.py-12 {
    padding-top: 3rem;
    padding-bottom: 3rem;
}

.px-4 {
    padding-left: 1rem;
    padding-right: 1rem;
}

.mb-1 {
    margin-bottom: 0.25rem;
}

.mb-2 {
    margin-bottom: 0.5rem;
}

.mb-4 {
    margin-bottom: 1rem;
}

.mb-6 {
    margin-bottom: 1.5rem;
}

.mb-8 {
    margin-bottom: 2rem;
}

.mb-16 {
    margin-bottom: 4rem;
}

.mt-2 {
    margin-top: 0.5rem;
}

.mt-4 {
    margin-top: 1rem;
}

.mt-6 {
    margin-top: 1.5rem;
}

.mt-8 {
    margin-top: 2rem;
}

.my-8 {
    margin-top: 2rem;
    margin-bottom: 2rem;
}

.border-gray-200 {
    border-color: #e5e7eb !important;
}

.space-y-4>*+* {
    margin-top: 1rem;
}

.space-y-2>*+* {
    margin-top: 0.5rem;
}


/* Text Styling */
.text-xs {
    font-size: 0.75rem;
}

.text-sm {
    font-size: 0.875rem;
}

.text-base {
    font-size: 1rem;
}

.text-lg {
    font-size: 1.125rem;
}

.text-xl {
    font-size: 1.25rem;
}

.text-2xl {
    font-size: 1.5rem;
}

.text-3xl {
    font-size: 2rem;
}

.text-4xl {
    font-size: 2.5rem;
}

.text-6xl {
    font-size: 3.75rem;
}

.font-bold {
    font-weight: 700;
}

.font-semibold {
    font-weight: 600;
}

.font-light {
    font-weight: 300;
}

.font-serif {
    font-family: var(--font-heading);
}

.uppercase {
    text-transform: uppercase;
}

.tracking-wide {
    letter-spacing: 0.05em;
}

.tracking-widest {
    letter-spacing: 0.15em;
}

/* Increased for premium feel */
.tracking-tight {
    letter-spacing: -0.025em;
}

.leading-relaxed {
    line-height: 1.625;
}

.underline {
    text-decoration: underline;
}

.text-gold {
    color: var(--color-accent);
}

.text-muted {
    color: var(--color-muted);
}

.text-white {
    color: #ffffff;
}

.text-gray {
    color: var(--color-muted);
}

/* Backward compat */
.text-red-500 {
    color: #ef4444;
}

.text-blue-600 {
    color: var(--color-primary);
}

/* Remap blue to primary for consistency */

/* --- COMPONENTS --- */

/* Buttons - Sharp, Solid, High Contrast */
.btn {
    display: inline-flex;
    align-items: center;
    justify-content: center;
    padding: 1rem 2.5rem;
    font-size: 0.8rem;
    letter-spacing: 0.1em;
    text-transform: uppercase;
    font-weight: 600;
    transition: all 0.3s ease;
    cursor: pointer;
    border: 1px solid transparent;
    border-radius: var(--radius);
}

.btn-primary {
    background-color: var(--color-primary);
    color: var(--brand-text);
    border-color: var(--color-primary);
}

.btn-primary:hover {
    background-color: transparent;
    color: var(--color-primary);
}

.btn-secondary {
    background-color: transparent;
    color: var(--color-text);
    border-color: var(--border-strong);
}

.btn-secondary:hover {
    background-color: var(--color-text);
    color: var(--bg-body);
}

.btn-ghost {
    background-color: transparent;
    color: var(--color-text);
    border: none;
    padding: 0.5rem 1rem;
    font-size: 0.75rem;
    text-decoration: underline;
}

.btn-ghost:hover {
    color: var(--color-accent);
}

.btn-danger {
    background-color: #ef4444;
    color: white;
}

.btn-block {
    width: 100%;
}

/* Inputs - Clean, Bottom Border Only or Thin Full Border */
.input {
    width: 100%;
    padding: 1rem;
    background: transparent;
    border: 1px solid var(--border-color);
    color: var(--color-text);
    font-family: var(--font-body);
    font-size: 0.95rem;
    transition: border-color 0.3s;
    border-radius: var(--radius-sm);
}

.input:focus {
    outline: none;
    border-color: var(--color-primary);
}

.label {
    display: block;
    font-size: 0.75rem;
    text-transform: uppercase;
    letter-spacing: 0.1em;
    font-weight: 600;
    color: var(--color-muted);
    margin-bottom: 0.5rem;
}

/* Cards - The "Clean & Tidy" Border Look */
.card {
    background-color: var(--bg-card);
    border: 1px solid var(--border-color);
    /* The requested border */
    padding: 1rem;
    /* Padding inside the border frame */
    transition: transform 0.4s ease, box-shadow 0.4s ease;
    position: relative;
    display: flex;
    flex-direction: column;
}

.card:hover {
    transform: translateY(-5px);
    box-shadow: var(--shadow-card);
    border-color: var(--color-primary);
    /* Highlight border on hover */
}

.card-image {
    width: 100%;
    aspect-ratio: 1/1.1;
    /* Slightly taller for fashion feel */
    object-fit: cover;
    background-color: var(--color-secondary);
    margin-bottom: 1.5rem;
    /* Separation within the frame */
}

.card-body {
    padding: 0;
    /* Clean layout inside frame */
}

/* Navbar - High End Header */
.navbar {
    background-color: var(--bg-body);
    border-bottom: 1px solid var(--border-color);
    border-top: 4px solid var(--color-primary);
    /* "Professional" accent top bar */
    padding: 1.5rem 0;
    position: sticky;
    top: 0;
    z-index: 1000;
}

.nav-link {
    font-size: 0.85rem;
    text-transform: uppercase;
    letter-spacing: 0.1em;
    font-weight: 500;
    color: var(--color-text);
    transition: color 0.2s, background-color 0.2s;
    cursor: pointer;
    padding: 0.5rem 1rem;
    border-radius: var(--radius-sm);
    background: transparent;
    border: none;
}

.nav-link:hover {
    color: var(--color-accent);
    background-color: rgba(212, 175, 55, 0.1);
}

.badge {
    background-color: var(--color-primary);
    color: var(--brand-text);
    font-size: 0.7rem;
    padding: 0.1rem 0.4rem;
    border-radius: 99px;
    font-weight: bold;
}

/* Decorative Helpers */
.border {
    border: 1px solid var(--border-color);
}

.border-b {
    border-bottom: 1px solid var(--border-color);
}

.border-t {
    border-top: 1px solid var(--border-color);
}

.border-dashed {
    border-style: dashed;
}

.rounded {
    border-radius: var(--radius-sm);
}

.rounded-lg {
    border-radius: var(--radius-sm);
}

.cursor-pointer {
    cursor: pointer;
}

/* Group Hover Logic */
.group:hover .group-hover\:opacity-100 {
    opacity: 1;
}

.group:hover .group-hover\:scale-105 {
    transform: scale(1.05);
}

.transition-transform {
    transition: transform 0.3s ease;
}

.duration-300 {
    transition-duration: 300ms;
}

.duration-500 {
    transition-duration: 500ms;
}

/* Animations */
.fade-in {
    animation: fadeIn 0.6s ease-out forwards;
    opacity: 0;
}

@keyframes fadeIn {
    to {
        opacity: 1;
        transform: translateY(0);
    }

    from {
        opacity: 0;
        transform: translateY(10px);
    }
}

/* Responsive */
@media (max-width: 768px) {

    .grid-cols-2,
    .grid-cols-3,
    .grid-cols-4 {
        grid-template-columns: 1fr;
    }

    .hide-on-mobile {
        display: none;
    }

    .text-6xl {
        font-size: 2.5rem;
    }

    .p-12 {
        padding: 2rem;
    }
}

/* Ensure background utilities respect theme variables */
.bg-gray-50 {
    background-color: var(--bg-body) !important;
}

.bg-gray-100 {
    background-color: var(--color-secondary) !important;
}

/* Ensure gray text utilities respect theme variables */
.text-gray-500,
.text-gray-600,
.text-gray-400 {
    color: var(--color-text-muted) !important;
}

.text-gray-300 {
    color: #d1d5db !important;
}

body.dark-mode .text-gray-300 {
    color: #475569 !important;
    /* Proper contrast for muted text in dark mode */
}

/* Tab/Category Specific */
.tab-inactive {
    color: var(--color-text-muted) !important;
    background: transparent;
    border: none;
    opacity: 0.7;
}

.tab-inactive:hover {
    color: var(--color-text) !important;
    opacity: 1;
}

.tab-active {
    color: var(--color-text) !important;
    border-bottom: 2px solid var(--color-accent) !important;
    background: transparent;
}

/* Additional dark mode adjustments */
.bg-white {
    background-color: var(--bg-card) !important;
}

.text-white {
    color: #ffffff !important;
}

body.dark-mode .text-white-theme {
    color: var(--brand-text) !important;
}

.text-black {
    color: var(--color-text) !important;
}

.bg-black {
    background-color: #1a1a1a !important;
}

body.dark-mode .bg-black {
    background-color: #020617 !important;
}

.border-black {
    border-color: var(--border-strong) !important;
}

.brand-bg {
    background-color: var(--brand-bg) !important;
}

.brand-text {
    color: var(--brand-text) !important;
}

.border-primary {
    border-color: var(--color-primary) !important;
}

.bg-blue-50 {
    background-color: var(--color-secondary) !important;
}

.hover\:bg-gray-50:hover {
    background-color: var(--color-secondary) !important;
}

.hover\:text-black:hover {
    color: var(--color-text) !important;
}

/* Hover bg-gray-100 */
.hover\:bg-gray-100:hover {
    background-color: var(--color-secondary);
}

.hover\:text-red-500:hover {
    color: #ef4444;
}

/* Specific "Rich" Touches */
.gold-accent,
.text-gold {
    color: var(--color-primary);
}

/* --- SOCIAL SHARE BUTTONS --- */
.social-float {
    position: fixed;
    right: 20px;
    top: 50%;
    transform: translateY(-50%);
    display: flex;
    flex-direction: column;
    gap: 15px;
    z-index: 2000;
}

.social-btn {
    width: 45px;
    height: 45px;
    border-radius: 50%;
    display: flex;
    align-items: center;
    justify-content: center;
    background: var(--bg-card);
    border: 1px solid var(--border-color);
    color: var(--color-text);
    box-shadow: var(--shadow-sm);
    transition: all 0.3s cubic-bezier(0.175, 0.885, 0.32, 1.275);
    cursor: pointer;
    text-decoration: none;
}

.social-btn:hover {
    transform: scale(1.15) translateX(-5px);
    background: var(--color-primary);
    color: var(--brand-text);
    border-color: var(--color-primary);
    box-shadow: 0 10px 20px rgba(139, 101, 8, 0.2);
}

.social-footer {
    display: flex;
    justify-content: center;
    gap: 20px;
    margin-bottom: 20px;
}

.social-footer-btn {
    color: var(--color-text-muted);
    transition: color 0.3s ease;
}

.social-footer-btn:hover {
    color: var(--color-accent);
}

@media (max-width: 768px) {
    .social-float {
        right: 10px;
        gap: 10px;
    }

    .social-btn {
        width: 38px;
        height: 38px;
    }
}

.section-title::after {
    content: '';
    position: absolute;
    bottom: 0;
    left: 50%;
    transform: translateX(-50%);
    width: 60px;
    height: 3px;
    background-color: var(--color-primary);
}

/* Badge colors for categories */
.bg-badge-1 {
    background-color: var(--color-primary);
    color: white;
}

/* --- CONTACT WIDGET CHATBOT --- */
.contact-widget {
    position: fixed;
    bottom: 30px;
    left: 30px;
    z-index: 3000;
    font-family: var(--font-body);
}

.contact-toggle {
    width: 60px;
    height: 60px;
    border-radius: 50%;
    background: var(--bg-gradient);
    color: white;
    display: flex;
    align-items: center;
    justify-content: center;
    box-shadow: 0 10px 25px rgba(139, 101, 8, 0.3);
    border: none;
    cursor: pointer;
    transition: all 0.4s cubic-bezier(0.175, 0.885, 0.32, 1.275);
}

.contact-toggle:hover {
    transform: scale(1.1) rotate(5deg);
    box-shadow: 0 15px 30px rgba(139, 101, 8, 0.4);
}

.contact-toggle.active {
    transform: rotate(90deg);
    background: var(--color-accent);
}

.contact-panel {
    position: absolute;
    bottom: 80px;
    left: 0;
    width: 320px;
    background: var(--bg-card);
    border: 1px solid var(--border-color);
    box-shadow: var(--shadow-card);
    overflow: hidden;
    transform-origin: bottom left;
}

.contact-header {
    background: var(--bg-gradient);
    padding: 20px;
    color: white;
}

.bot-avatar {
    width: 35px;
    height: 35px;
    background: rgba(255, 255, 255, 0.2);
    border-radius: 50%;
    display: flex;
    align-items: center;
    justify-content: center;
    border: 1px solid rgba(255, 255, 255, 0.3);
}

.contact-body {
    padding: 24px;
    background: var(--bg-card);
}

.contact-option {
    display: flex;
    align-items: center;
    justify-content: space-between;
    padding: 15px;
    border: 1px solid var(--border-color);
    margin-bottom: 10px;
    transition: all 0.3s ease;
    text-decoration: none;
    color: var(--color-text);
}

.contact-option:hover {
    border-color: var(--color-primary);
    background: var(--color-secondary);
    transform: translateX(5px);
}

.contact-option i {
    color: var(--color-primary);
}

.contact-option:last-child {
    margin-bottom: 0;
}

@keyframes bounce {

    0%,
    100% {
        transform: translateY(0);
    }

    50% {
        transform: translateY(-3px);
    }
}

.animate-bounce {
    animation: bounce 0.6s infinite;
}

@media (max-width: 768px) {
    .contact-widget {
        bottom: 20px;
        left: 20px;
    }

    .contact-panel {
        width: calc(100vw - 40px);
        max-width: 320px;
    }
}