/* 
  Palace Gate International Limited 
  Solid CSS Architecture
*/

:root {
    /* Brand Colors */
    --brand-black: #000000;
    --brand-black-soft: #121212;
    --brand-gold: #D4AF37;
    --brand-gold-dark: #C5A021;
    --brand-light: #F8F9FA;
    --brand-white: #FFFFFF;
    
    /* Semantic Colors */
    --text-main: #1A1A1A;
    --text-muted: #666666;
    --text-light: rgba(255, 255, 255, 0.7);
    --border-color: rgba(0, 0, 0, 0.05);
    --border-white: rgba(255, 255, 255, 0.1);
    
    /* Effects */
    --shadow-sm: 0 1px 2px rgba(0,0,0,0.05);
    --shadow-md: 0 4px 6px rgba(0, 0, 0, 0.05);
    --shadow-lg: 0 10px 15px rgba(0, 0, 0, 0.05);
    --shadow-gold: 0 4px 10px rgba(212, 175, 55, 0.1);
    --glass: rgba(255, 255, 255, 0.05);
    --blur: 12px;
}

/* Dark Mode Support */
html.dark {
    --brand-light: #0A0A0A;
    --brand-white: #121212;
    --text-main: #FFFFFF;
    --text-muted: #A0A0A0;
    --border-color: rgba(255, 255, 255, 0.1);
    --shadow-sm: 0 2px 4px rgba(0,0,0,0.2);
    --shadow-md: 0 10px 30px rgba(0,0,0,0.3);
    --shadow-lg: 0 20px 50px rgba(0,0,0,0.4);
}

html.dark body {
    background-color: var(--brand-light);
    color: var(--text-main);
}

html.dark .premium-card {
    background: var(--brand-white);
    border-color: var(--border-color);
}

html.dark .form-input {
    background: rgba(255, 255, 255, 0.05);
    border-color: rgba(255, 255, 255, 0.1);
    color: rgb(255, 255, 255);
}

html.dark .form-input:focus {
    background: rgba(255, 255, 255, 0.1);
}

html.dark .bg-white {
    background-color: var(--brand-white) !important;
}

html.dark .text-gray-500,
html.dark .text-gray-400 {
    color: var(--text-muted) !important;
}

html.dark .border-gray-100 {
    border-color: var(--border-color) !important;
}

html.dark .bg-gray-50 {
    background-color: rgba(255, 255, 255, 0.03) !important;
}

/* Base Styles */
* {
    margin: 0;
    padding: 0;
    box-sizing: border-box;
    transition: background-color 0.3s ease, color 0.3s ease, border-color 0.3s ease, transform 0.3s cubic-bezier(0.4, 0, 0.2, 1);
}

html {
    scroll-behavior: smooth;
}

body {
    font-family: 'Inter', sans-serif;
    color: var(--text-main);
    line-height: 1.6;
    background-color: var(--brand-white);
    -webkit-font-smoothing: antialiased;
    overflow-x: hidden;
}

/* Nav Link Animation */
nav a {
    position: relative;
    padding-bottom: 4px;
}

nav a::after {
    content: '';
    position: absolute;
    bottom: 0;
    left: 0;
    width: 0;
    height: 2px;
    background: var(--brand-gold);
    transition: width 0.3s ease;
}

nav a:hover::after {
    width: 100%;
}

/* Image Hover Effect */
.img-zoom-container {
    overflow: hidden;
    border-radius: inherit;
}

.img-zoom-container img {
    transition: transform 0.6s cubic-bezier(0.165, 0.84, 0.44, 1);
}

.img-zoom-container:hover img {
    transform: scale(1.1);
}

/* Standard Animations */
@keyframes fadeIn {
    from { opacity: 0; }
    to { opacity: 1; }
}

@keyframes slideInUp {
    from { 
        opacity: 0;
        transform: translateY(30px);
    }
    to { 
        opacity: 1;
        transform: translateY(0);
    }
}

@keyframes slideInRight {
    from { 
        opacity: 0;
        transform: translateX(30px);
    }
    to { 
        opacity: 1;
        transform: translateX(0);
    }
}

@keyframes slideInLeft {
    from { 
        opacity: 0;
        transform: translateX(-30px);
    }
    to { 
        opacity: 1;
        transform: translateX(0);
    }
}

@keyframes scaleIn {
    from { 
        opacity: 0;
        transform: scale(0.9);
    }
    to { 
        opacity: 1;
        transform: scale(1);
    }
}

@keyframes float {
    0% { transform: translateY(0px); }
    50% { transform: translateY(-10px); }
    100% { transform: translateY(0px); }
}

.animate-fade-in { animation: fadeIn 0.8s ease forwards; }
.animate-slide-up { animation: slideInUp 0.8s cubic-bezier(0.165, 0.84, 0.44, 1) forwards; }
.animate-slide-right { animation: slideInRight 0.8s cubic-bezier(0.165, 0.84, 0.44, 1) forwards; }
.animate-slide-left { animation: slideInLeft 0.8s cubic-bezier(0.165, 0.84, 0.44, 1) forwards; }
.animate-scale-in { animation: scaleIn 0.6s cubic-bezier(0.165, 0.84, 0.44, 1) forwards; }
.animate-float { animation: float 3s ease-in-out infinite; }

/* Staggered delays */
.delay-100 { animation-delay: 100ms; }
.delay-200 { animation-delay: 200ms; }
.delay-300 { animation-delay: 300ms; }
.delay-400 { animation-delay: 400ms; }
.delay-500 { animation-delay: 500ms; }

/* Mobile Specific Optimizations */
@media (max-width: 640px) {
    .btn-gold, .btn-outline {
        width: 100%;
        padding: 16px;
    }
    
    h1 {
        font-size: 2.5rem !important;
        line-height: 1.2 !important;
    }
    
    .premium-card {
        border-radius: 20px;
    }

    /* Improve tap targets */
    nav a, button, .payment-option {
        min-height: 44px;
    }

    /* Mobile menu item animations */
    #mobile-menu a {
        opacity: 0;
        transform: translateX(-20px);
        transition: all 0.4s cubic-bezier(0.165, 0.84, 0.44, 1);
    }

    #mobile-menu.active a {
        opacity: 1;
        transform: translateX(0);
    }

    #mobile-menu.active a:nth-child(1) { transition-delay: 100ms; }
    #mobile-menu.active a:nth-child(2) { transition-delay: 150ms; }
    #mobile-menu.active a:nth-child(3) { transition-delay: 200ms; }
    #mobile-menu.active a:nth-child(4) { transition-delay: 250ms; }
    #mobile-menu.active a:nth-child(5) { transition-delay: 300ms; }
    #mobile-menu.active a:nth-child(6) { transition-delay: 350ms; }
}

h1, h2, h3, h4, .font-serif {
    font-family: 'Playfair Display', serif;
}

/* Custom Scrollbar */
::-webkit-scrollbar {
    width: 8px;
}

::-webkit-scrollbar-track {
    background: var(--brand-light);
}

::-webkit-scrollbar-thumb {
    background: var(--brand-black);
    border-radius: 10px;
}

::-webkit-scrollbar-thumb:hover {
    background: var(--brand-gold);
}

/* Layout Utilities */
.container-custom {
    max-width: 1280px;
    margin: 0 auto;
    padding: 0 2rem;
}

/* Premium Components */

/* Gradients */
.gold-gradient {
    background: linear-gradient(135deg, var(--brand-gold) 0%, var(--brand-gold-dark) 100%);
}

.black-gradient {
    background: linear-gradient(135deg, var(--brand-black) 0%, var(--brand-black-soft) 100%);
}

.hero-gradient {
    background: linear-gradient(135deg, var(--brand-black) 0%, #121212 100%);
    position: relative;
    overflow: hidden;
}

/* Glassmorphism */
.glass {
    background: rgba(255, 255, 255, 0.1);
    backdrop-filter: blur(var(--blur));
    -webkit-backdrop-filter: blur(var(--blur));
    border: 1px solid var(--border-white);
}

.glass-dark {
    background: rgba(0, 0, 0, 0.2);
    backdrop-filter: blur(var(--blur));
    -webkit-backdrop-filter: blur(var(--blur));
    border: 1px solid rgba(255, 255, 255, 0.05);
}

/* Cards */
.premium-card {
    background: var(--brand-white);
    border-radius: 24px;
    border: 1px solid var(--border-color);
    box-shadow: var(--shadow-sm);
    transition: all 0.4s cubic-bezier(0.165, 0.84, 0.44, 1);
}

.premium-card:hover {
    transform: translateY(-8px);
    box-shadow: var(--shadow-lg);
}

.surface-panel {
    background: rgba(255, 255, 255, 0.9);
    border: 1px solid rgba(255, 255, 255, 0.65);
    box-shadow: 0 24px 60px -32px rgba(15, 23, 42, 0.35);
    backdrop-filter: blur(18px);
    -webkit-backdrop-filter: blur(18px);
}

.metric-card {
    background: rgba(255, 255, 255, 0.08);
    border: 1px solid rgba(255, 255, 255, 0.12);
    border-radius: 24px;
    padding: 1rem 1.1rem;
    box-shadow: 0 18px 40px -30px rgba(0, 0, 0, 0.55);
}

.metric-card--light {
    background: #ffffff;
    border: 1px solid rgba(15, 23, 42, 0.08);
    box-shadow: 0 20px 40px -28px rgba(15, 23, 42, 0.18);
}

.ecom-chip-row {
    display: flex;
    gap: 0.75rem;
    overflow-x: auto;
    padding-bottom: 0.25rem;
    scrollbar-width: none;
}

.ecom-chip-row::-webkit-scrollbar,
.hide-scrollbar::-webkit-scrollbar {
    display: none;
}

.hide-scrollbar {
    scrollbar-width: none;
}

.catalog-card__title {
    display: -webkit-box;
    line-clamp: 2;
    -webkit-line-clamp: 2;
    -webkit-box-orient: vertical;
    overflow: hidden;
    min-height: 3.25rem;
}

.catalog-card__meta {
    display: flex;
    align-items: center;
    gap: 0.5rem;
    flex-wrap: wrap;
}

.section-shell {
    position: relative;
    overflow: hidden;
}

.section-shell::before {
    content: "";
    position: absolute;
    inset: 0;
    background:
        radial-gradient(circle at top left, rgba(212, 175, 55, 0.08), transparent 28%),
        radial-gradient(circle at bottom right, rgba(15, 23, 42, 0.06), transparent 30%);
    pointer-events: none;
}

/* Buttons */
.btn-gold {
    background: linear-gradient(135deg, var(--brand-gold) 0%, var(--brand-gold-dark) 100%);
    color: white;
    padding: 12px 28px;
    border-radius: 14px;
    font-weight: 700;
    transition: all 0.3s ease;
    display: inline-flex;
    align-items: center;
    justify-content: center;
    border: none;
    cursor: pointer;
    text-decoration: none;
}

.btn-gold:hover {
    box-shadow: var(--shadow-gold);
    transform: scale(1.02);
}

.btn-outline {
    border: 2px solid var(--border-white);
    background: transparent;
    color: white;
    padding: 12px 28px;
    border-radius: 14px;
    font-weight: 700;
    transition: all 0.3s ease;
    display: inline-flex;
    align-items: center;
    justify-content: center;
    text-decoration: none;
}

.btn-outline:hover {
    background: rgba(255, 255, 255, 0.1);
    border-color: white;
}

/* Animations */
@keyframes fadeIn {
    from { opacity: 0; transform: translateY(20px); }
    to { opacity: 1; transform: translateY(0); }
}

@keyframes float {
    0% { transform: translateY(0px); }
    50% { transform: translateY(-15px); }
    100% { transform: translateY(0px); }
}

.animate-fade-in {
    animation: fadeIn 0.8s ease forwards;
}

.animate-float {
    animation: float 4s ease-in-out infinite;
}

/* Navigation */
header.scrolled {
    background: rgba(0, 0, 0, 0.95) !important;
    padding: 0.5rem 0 !important;
    box-shadow: 0 4px 20px rgba(0,0,0,0.1);
}

/* Form Styling */
.form-input {
    width: 100%;
    padding: 14px 18px;
    background: var(--brand-light);
    border: 1px solid rgba(0,0,0,0.05);
    border-radius: 16px;
    outline: none;
    transition: all 0.3s ease;
}

.form-input:focus {
    border-color: var(--brand-gold);
    background: white;
    box-shadow: 0 0 0 4px rgba(212, 175, 55, 0.1);
}

/* Category Badges */
.badge {
    padding: 6px 14px;
    border-radius: 100px;
    font-size: 12px;
    font-weight: 700;
    text-transform: uppercase;
    letter-spacing: 0.5px;
}

.badge-gold {
    background: rgba(212, 175, 55, 0.1);
    color: var(--brand-gold);
}

/* Responsive Grid Adjustments */
@media (max-width: 768px) {
    .container-custom {
        padding: 0 1.5rem;
    }

    .surface-panel {
        border-radius: 24px;
    }

    .metric-card {
        border-radius: 20px;
    }

    .catalog-card__title {
        min-height: auto;
    }
}




