/* ==========================================================================
   ARVENYA MASTER STYLESHEET v4.0 (LUXURY EDITION)
   ========================================================================== */

/* Import Fonts: Playfair Display (Serif) & Inter (Sans) */
@import url('https://fonts.googleapis.com/css2?family=Playfair+Display:ital,wght@0,400;0,500;0,600;0,700;1,400;1,600&family=Inter:wght@300;400;500;600&display=swap');
/* Material Icons */
@import url('https://fonts.googleapis.com/icon?family=Material+Icons');

/* --------------------------------------------------------------------------
   1. RESET & VARIABLES
   -------------------------------------------------------------------------- */
:root {
    /* LUXURY PALETTE */
    /* Cream/Beige Backgrounds */
    --lux-cream: #fdfbf7;
    --lux-paper: #fcfaf5;
    --slate-50: #fcfaf5;
    /* Overriding slate-50 to be warm */
    --slate-100: #f3f0e8;

    /* Gold/Bronze Accents */
    --gold-600: #92400e;
    --gold-500: #b45309;
    /* Primary Brand */
    --gold-400: #d97706;
    --gold-100: #fef3c7;

    /* Dark Text/UI */
    --navy-950: #1c1917;
    /* Warm Black (Stone-950) */
    --navy-900: #292524;
    /* Stone-900 */
    --navy-800: #44403c;
    --navy-700: #57534e;

    /* Neutrals */
    --slate-600: #57534e;
    --slate-500: #78716c;
    --slate-400: #a8a29e;
    --slate-300: #d6d3d1;
    --slate-200: #e7e5e4;

    /* Functional */
    --white: #ffffff;
    --black: #000000;
    --error: #ef4444;
    --success: #15803d;
    /* Dark green fits ease better */

    /* TYPOGRAPHY */
    --font-heading: 'Playfair Display', serif;
    --font-body: 'Inter', sans-serif;

    /* Spacing & Layout */
    --container-width: 1280px;
    --radius-sm: 4px;
    --radius-md: 12px;
    --radius-lg: 24px;

    /* Animation */
    --ease: cubic-bezier(0.25, 1, 0.5, 1);
    --duration: 0.4s;
}

body {
    background-color: var(--lux-cream);
    color: var(--navy-900);
    font-family: var(--font-body);
}

h1,
h2,
h3,
h4,
h5,
h6 {
    font-family: var(--font-heading);
    font-weight: 600;
    letter-spacing: -0.02em;
}

/* Button Overrides for Luxury Feel */
.btn-primary {
    background-color: var(--navy-900);
    color: white;
    border-radius: 99px;
    /* Pill shape */
    padding: 0.75rem 2rem;
    font-family: var(--font-body);
    font-weight: 500;
    letter-spacing: 0.5px;
    text-transform: uppercase;
    font-size: 0.85rem;
}

.btn-primary:hover {
    background-color: var(--gold-500);
    transform: translateY(-2px);
    box-shadow: 0 10px 20px rgba(180, 83, 9, 0.2);
}

.btn-outline-dark {
    border-radius: 99px;
    border-color: var(--navy-900);
}

.btn-outline-dark:hover {
    background: var(--navy-900);
    color: white;
}

*,
*::before,
*::after {
    box-sizing: border-box;
    margin: 0;
    padding: 0;
}

html {
    overflow-x: hidden;
    width: 100%;
}

body {
    font-family: var(--font-body);
    color: var(--navy-900);
    line-height: 1.6;
    background-color: var(--white);
    -webkit-font-smoothing: antialiased;
    overflow-x: hidden;
    width: 100%;
    position: relative;
}

h1,
h2,
h3,
h4,
h5,
h6 {
    font-family: var(--font-heading);
    font-weight: 700;
    line-height: 1.2;
    color: var(--navy-900);
    margin-bottom: 1rem;
}

h1 {
    font-size: 2.5rem;
    letter-spacing: -0.02em;
}

h2 {
    font-size: 2rem;
    letter-spacing: -0.01em;
}

h3 {
    font-size: 1.5rem;
}

h4 {
    font-size: 1.25rem;
}

p {
    margin-bottom: 1rem;
    color: var(--slate-600);
}

a {
    color: inherit;
    text-decoration: none;
    transition: color 0.2s;
}

img {
    max-width: 100%;
    display: block;
    height: auto;
}

/* --------------------------------------------------------------------------
   2. UTILITIES & LAYOUT
   -------------------------------------------------------------------------- */
.container {
    width: 100%;
    max-width: var(--container-width);
    margin: 0 auto;
    padding: 0 1.5rem;
}

.section-padding {
    padding: 5rem 0;
}

@media(max-width: 768px) {
    .section-padding {
        padding: 4rem 0;
    }

    .container {
        padding: 0 2rem;
        /* Ensure consistent premium gutter on mobile */
    }
}

.text-center {
    text-align: center;
}

.text-right {
    text-align: right;
}

.text-navy {
    color: var(--navy-900);
}

.text-gold {
    color: var(--gold-500);
}

.text-white {
    color: var(--white);
}

.flex {
    display: flex;
}

.flex-col {
    flex-direction: column;
}

.flex-between {
    display: flex;
    justify-content: space-between;
    align-items: center;
}

.flex-center {
    display: flex;
    justify-content: center;
    align-items: center;
}

.gap-2 {
    gap: 0.5rem;
}

.gap-4 {
    gap: 1rem;
}

.gap-6 {
    gap: 1.5rem;
}

.grid-2,
.grid-3,
.grid-4 {
    display: grid;
    gap: 2rem;
}

.grid-2 {
    grid-template-columns: repeat(2, 1fr);
}

.grid-3 {
    grid-template-columns: repeat(3, 1fr);
}

.grid-4 {
    grid-template-columns: repeat(4, 1fr);
}

/* Base Grid Responsive */
@media (max-width: 1024px) {
    .grid-4 {
        grid-template-columns: repeat(3, 1fr);
    }
}

@media (max-width: 900px) {
    .grid-4 {
        grid-template-columns: repeat(2, 1fr);
    }

    .grid-3 {
        grid-template-columns: repeat(2, 1fr);
    }

    .grid-2 {
        grid-template-columns: 1fr;
    }
}

@media (max-width: 600px) {

    .grid-4,
    .grid-3,
    .grid-2 {
        grid-template-columns: 1fr;
        gap: 1.5rem;
    }
}

/* Animations */
.fade-in {
    animation: fadeIn 0.8s var(--ease) forwards;
    opacity: 0;
    transform: translateY(10px);
}

.delay-100 {
    animation-delay: 0.1s;
}

.delay-200 {
    animation-delay: 0.2s;
}

@keyframes fadeIn {
    to {
        opacity: 1;
        transform: translateY(0);
    }
}

/* --------------------------------------------------------------------------
   3. COMPONENTS
   -------------------------------------------------------------------------- */
/* Buttons */
.btn {
    display: inline-flex;
    align-items: center;
    justify-content: center;
    padding: 0.875rem 1.75rem;
    font-weight: 600;
    border-radius: var(--radius-sm);
    text-transform: uppercase;
    font-size: 0.875rem;
    letter-spacing: 1px;
    cursor: pointer;
    transition: all var(--duration);
    border: 1px solid transparent;
}

.btn-primary {
    background: var(--navy-900);
    color: var(--white);
    border-color: var(--navy-900);
}

.btn-primary:hover {
    background: var(--navy-800);
    transform: translateY(-2px);
    box-shadow: 0 4px 12px rgba(15, 23, 42, 0.2);
}

.btn-accent {
    background: var(--gold-500);
    color: var(--white);
}

.btn-accent:hover {
    background: var(--gold-600);
}

.btn-outline-dark {
    border-color: var(--navy-900);
    color: var(--navy-900);
    background: transparent;
}

.btn-outline-dark:hover {
    background: var(--navy-900);
    color: var(--white);
}

.btn-outline-light {
    border-color: var(--white);
    color: var(--white);
    background: transparent;
}

.btn-outline-light:hover {
    background: var(--white);
    color: var(--navy-900);
}

/* Cards */
.card-base {
    background: var(--white);
    border-radius: var(--radius-md);
    border: 1px solid var(--slate-100);
    transition: transform var(--duration), box-shadow var(--duration);
    overflow: hidden;
}

.card-base:hover {
    transform: translateY(-4px);
    box-shadow: 0 10px 30px rgba(0, 0, 0, 0.08);
}

/* --------------------------------------------------------------------------
   4. SHOP SPECIFIC STYLES
   -------------------------------------------------------------------------- */
.product-card {
    background: var(--white);
    border-radius: var(--radius-md);
    display: flex;
    flex-direction: column;
    transition: transform var(--duration);
    height: 100%;
    position: relative;
    border: 1px solid transparent;
}

.product-card:hover {
    border-color: var(--slate-100);
    transform: translateY(-4px);
}

.product-img-wrap {
    position: relative;
    padding-bottom: 125%;
    /* Aspect Ratio */
    background: var(--slate-50);
    border-radius: var(--radius-md);
    overflow: hidden;
    margin-bottom: 0.75rem;
}

@media (max-width: 600px) {
    .product-img-wrap {
        margin-bottom: 0.5rem;
    }
}

.product-img-wrap img {
    position: absolute;
    inset: 0;
    width: 100%;
    height: 100%;
    object-fit: cover;
    transition: transform 0.5s ease;
}

.product-card:hover .product-img-wrap img {
    transform: scale(1.05);
}

.btn-quick-add {
    position: absolute;
    bottom: 1rem;
    right: 1rem;
    width: 40px;
    height: 40px;
    border-radius: 50%;
    background: var(--white);
    color: var(--navy-900);
    display: flex;
    align-items: center;
    justify-content: center;
    border: none;
    box-shadow: 0 4px 12px rgba(0, 0, 0, 0.1);
    cursor: pointer;
    font-size: 1.5rem;
    transition: all var(--duration);
    z-index: 2;
}

.btn-quick-add:hover {
    background: var(--navy-900);
    color: var(--white);
}

.product-tag {
    font-size: 0.75rem;
    text-transform: uppercase;
    color: var(--gold-600);
    font-weight: 700;
    display: block;
    margin-bottom: 0.25rem;
}

.product-title {
    font-size: 1.125rem;
    font-weight: 600;
    color: var(--navy-900);
    margin-bottom: 0.25rem;
    line-height: 1.3;
}

@media (max-width: 600px) {
    .product-title {
        font-size: 0.95rem;
    }

    .product-tag {
        font-size: 0.65rem;
    }

    .product-price {
        font-size: 0.9rem;
    }
}

.product-price {
    font-size: 1rem;
    color: var(--slate-500);
}

/* Cart & Checkout Specifics */
.cart-grid {
    display: grid;
    grid-template-columns: 2fr 1fr;
    gap: 4rem;
}

@media(max-width: 900px) {
    .cart-grid {
        grid-template-columns: 1fr;
    }
}

.form-input {
    width: 100%;
    padding: 1rem;
    border: 1px solid var(--slate-200);
    border-radius: var(--radius-sm);
    font-family: inherit;
    font-size: 1rem;
    transition: all 0.2s;
}

.form-input:focus {
    border-color: var(--navy-900);
    outline: none;
}

/* --------------------------------------------------------------------------
   5. B2B / EXPORT STYLES
   -------------------------------------------------------------------------- */
.hero-wrapper {
    position: relative;
    padding: 6rem 0;
    background-size: cover;
    background-position: center;
    color: var(--white);
    display: flex;
    align-items: center;
}

@media (max-width: 768px) {
    .hero-wrapper {
        padding: 4rem 0;
        min-height: 300px !important;
    }
}

.hero-wrapper::before {
    content: '';
    position: absolute;
    inset: 0;
    background: linear-gradient(to bottom, rgba(2, 6, 23, 0.5), rgba(2, 6, 23, 0.8));
    z-index: 1;
}

.hero-wrapper>.container {
    position: relative;
    z-index: 2;
}

/* --------------------------------------------------------------------------
   6. NAVIGATION & MOBILE MENU
   -------------------------------------------------------------------------- */
.nav-link {
    font-weight: 500;
    font-size: 0.95rem;
    text-transform: uppercase;
    letter-spacing: 0.5px;
}

.nav-link:hover {
    color: var(--gold-500);
}

.mobile-menu-toggle {
    display: none;
    background: none;
    border: none;
    font-size: 1.5rem;
    cursor: pointer;
}

@media(max-width: 900px) {
    .desktop-nav {
        display: none !important;
    }

    .mobile-menu-toggle {
        display: block;
    }
}

/* Mobile Menu Container */
.mobile-menu {
    position: fixed;
    top: 0;
    right: -100%;
    width: 300px;
    height: 100vh;
    background: var(--white);
    z-index: 2000;
    transition: right 0.3s var(--ease);
    box-shadow: -5px 0 25px rgba(0, 0, 0, 0.1);
    overflow-y: auto;
    padding: 2rem;
}

.mobile-menu.active {
    right: 0;
}

.mobile-overlay {
    position: fixed;
    inset: 0;
    background: rgba(0, 0, 0, 0.5);
    z-index: 1999;
    opacity: 0;
    visibility: hidden;
    transition: all 0.3s;
    backdrop-filter: blur(2px);
}

.mobile-overlay.active {
    opacity: 1;
    visibility: visible;
}

/* --------------------------------------------------------------------------
   7. PRODUCT DETAIL PAGE RESPOSIVE STYLES
   -------------------------------------------------------------------------- */

.product-layout-pro {
    display: grid;
    grid-template-columns: 1.2fr 1fr;
    gap: 4rem;
    align-items: start;
}

.product-info-wrapper {
    position: sticky;
    top: 120px;
}

.main-image-container {
    background: var(--white);
    border: 1px solid var(--slate-100);
    border-radius: 16px;
    padding: 2rem;
    margin-bottom: 1rem;
    position: relative;
    overflow: hidden;
    min-height: 450px;
    display: flex;
    align-items: center;
    justify-content: center;
}

.main-image-container img {
    max-width: 100%;
    max-height: 450px;
    width: auto;
    height: auto;
    object-fit: contain;
}

.thumbnails {
    display: grid;
    grid-template-columns: repeat(4, 1fr);
    gap: 1rem;
}

.tabs-header {
    border-bottom: 1px solid var(--slate-200);
    display: flex;
    gap: 3rem;
    margin-bottom: 3rem;
    overflow-x: auto;
}

.tab-btn {
    background: none;
    border: none;
    padding-bottom: 1rem;
    font-weight: 600;
    color: var(--slate-400);
    font-size: 1.1rem;
    cursor: pointer;
    white-space: nowrap;
}

.tab-btn.active {
    border-bottom: 3px solid var(--navy-900);
    color: var(--navy-900);
}

/* Responsive Product Page */
@media (max-width: 1024px) {
    .product-layout-pro {
        gap: 2rem;
    }
}

@media (max-width: 900px) {
    .product-layout-pro {
        grid-template-columns: 1fr;
        gap: 2rem;
    }

    .product-info-wrapper {
        position: relative;
        top: 0;
    }

    .main-image-container {
        min-height: 300px;
        padding: 1rem;
    }

    .main-image-container img {
        max-height: 300px;
    }

    h1 {
        font-size: 2.25rem;
    }
}

/* --------------------------------------------------------------------------
   ENHANCED ANIMATIONS & VISUAL EFFECTS
   -------------------------------------------------------------------------- */

/* Loading Spinner */
.spinner {
    width: 40px;
    height: 40px;
    border: 4px solid var(--slate-200);
    border-top-color: var(--navy-900);
    border-radius: 50%;
    animation: spin 0.8s linear infinite;
}

@keyframes spin {
    to {
        transform: rotate(360deg);
    }
}

/* Pulse Animation */
.pulse {
    animation: pulse 2s cubic-bezier(0.4, 0, 0.6, 1) infinite;
}

@keyframes pulse {

    0%,
    100% {
        opacity: 1;
    }

    50% {
        opacity: 0.5;
    }
}

/* Bounce Animation */
.bounce {
    animation: bounce 1s infinite;
}

@keyframes bounce {

    0%,
    100% {
        transform: translateY(0);
    }

    50% {
        transform: translateY(-10px);
    }
}

/* Slide In Animations */
.slide-in-left {
    animation: slideInLeft 0.5s var(--ease);
}

.slide-in-right {
    animation: slideInRight 0.5s var(--ease);
}

@keyframes slideInLeft {
    from {
        transform: translateX(-100%);
        opacity: 0;
    }

    to {
        transform: translateX(0);
        opacity: 1;
    }
}

@keyframes slideInRight {
    from {
        transform: translateX(100%);
        opacity: 0;
    }

    to {
        transform: translateX(0);
        opacity: 1;
    }
}

/* Scale Animation */
.scale-in {
    animation: scaleIn 0.3s var(--ease);
}

@keyframes scaleIn {
    from {
        transform: scale(0.9);
        opacity: 0;
    }

    to {
        transform: scale(1);
        opacity: 1;
    }
}

/* --------------------------------------------------------------------------
   ICON UTILITIES
   -------------------------------------------------------------------------- */

.icon {
    font-family: 'Material Icons';
    font-weight: normal;
    font-style: normal;
    font-size: 24px;
    display: inline-block;
    line-height: 1;
    text-transform: none;
    letter-spacing: normal;
    word-wrap: normal;
    white-space: nowrap;
    direction: ltr;
    vertical-align: middle;
}

.icon-sm {
    font-size: 18px;
}

.icon-md {
    font-size: 24px;
}

.icon-lg {
    font-size: 32px;
}

.icon-xl {
    font-size: 48px;
}

/* --------------------------------------------------------------------------
   BADGES & LABELS
   -------------------------------------------------------------------------- */

.badge {
    display: inline-flex;
    align-items: center;
    justify-content: center;
    padding: 0.25rem 0.75rem;
    border-radius: 99px;
    font-size: 0.75rem;
    font-weight: 700;
    text-transform: uppercase;
    letter-spacing: 0.5px;
}

.badge-new {
    background: var(--gold-500);
    color: white;
}

.badge-sale {
    background: var(--error);
    color: white;
}

.badge-featured {
    background: var(--navy-900);
    color: white;
}

/* Cart Badge */
.cart-badge {
    position: absolute;
    top: -8px;
    right: -8px;
    background: var(--gold-500);
    color: white;
    width: 20px;
    height: 20px;
    border-radius: 50%;
    display: flex;
    align-items: center;
    justify-content: center;
    font-size: 0.7rem;
    font-weight: 700;
}

/* --------------------------------------------------------------------------
   EMPTY STATES
   -------------------------------------------------------------------------- */

.empty-state {
    text-align: center;
    padding: 4rem 2rem;
    background: var(--slate-50);
    border-radius: 12px;
    border: 2px dashed var(--slate-200);
}

.empty-state-icon {
    font-size: 4rem;
    margin-bottom: 1rem;
    opacity: 0.3;
}

/* --------------------------------------------------------------------------
   TOAST NOTIFICATIONS
   -------------------------------------------------------------------------- */

.toast {
    position: fixed;
    bottom: 2rem;
    right: 2rem;
    background: white;
    padding: 1rem 1.5rem;
    border-radius: 8px;
    box-shadow: 0 10px 40px rgba(0, 0, 0, 0.1);
    display: flex;
    align-items: center;
    gap: 1rem;
    z-index: 9999;
    animation: slideInRight 0.3s var(--ease);
}

.toast-success {
    border-left: 4px solid var(--success);
}

.toast-error {
    border-left: 4px solid var(--error);
}

/* --------------------------------------------------------------------------
   SKELETON LOADERS
   -------------------------------------------------------------------------- */

.skeleton {
    background: linear-gradient(90deg, var(--slate-100) 25%, var(--slate-50) 50%, var(--slate-100) 75%);
    background-size: 200% 100%;
    animation: shimmer 1.5s infinite;
    border-radius: 4px;
}

@keyframes shimmer {
    0% {
        background-position: 200% 0;
    }

    100% {
        background-position: -200% 0;
    }
}

.skeleton-text {
    height: 1rem;
    margin-bottom: 0.5rem;
}

.skeleton-image {
    width: 100%;
    padding-bottom: 100%;
}

/* --------------------------------------------------------------------------
   TOOLTIPS
   -------------------------------------------------------------------------- */

.tooltip {
    position: relative;
    cursor: help;
}

.tooltip::after {
    content: attr(data-tooltip);
    position: absolute;
    bottom: 100%;
    left: 50%;
    transform: translateX(-50%) translateY(-8px);
    background: var(--navy-900);
    color: white;
    padding: 0.5rem 0.75rem;
    border-radius: 4px;
    font-size: 0.85rem;
    white-space: nowrap;
    opacity: 0;
    pointer-events: none;
    transition: opacity 0.3s;
}

.tooltip:hover::after {
    opacity: 1;
}

/* --------------------------------------------------------------------------
   PROGRESS BARS
   -------------------------------------------------------------------------- */

.progress-bar {
    width: 100%;
    height: 8px;
    background: var(--slate-100);
    border-radius: 99px;
    overflow: hidden;
}

.progress-fill {
    height: 100%;
    background: var(--gold-500);
    border-radius: 99px;
    transition: width 0.3s var(--ease);
}

/* --------------------------------------------------------------------------
   RESPONSIVE UTILITIES (Global)
   -------------------------------------------------------------------------- */

@media (max-width: 768px) {
    .hide-mobile {
        display: none !important;
    }

    .show-mobile {
        display: block !important;
    }

    .toast {
        left: 1rem;
        right: 1rem;
        bottom: 1rem;
    }
}

@media (min-width: 769px) {
    .hide-desktop {
        display: none !important;
    }

    .show-desktop {
        display: block !important;
    }
}

/* --------------------------------------------------------------------------
   PRINT STYLES
   -------------------------------------------------------------------------- */

@media print {
    .no-print {
        display: none !important;
    }

    body {
        background: white;
    }
}

/* --------------------------------------------------------------------------
   8. CART & CHECKOUT RESPONSIVE
   -------------------------------------------------------------------------- */
.cart-item {
    display: flex;
    gap: 1.5rem;
    padding: 1.5rem;
    border-bottom: 1px solid var(--slate-100);
    align-items: center;
}

@media (max-width: 600px) {
    .cart-item {
        flex-direction: column;
        align-items: flex-start;
        gap: 1rem;
    }

    .cart-item-image {
        width: 80px;
        height: 80px;
    }

    .cart-item-info {
        width: 100%;
    }

    .cart-item-actions {
        width: 100%;
        display: flex;
        justify-content: space-between;
        align-items: center;
        margin-top: 0.5rem;
    }
}

/* --------------------------------------------------------------------------
   LUXURY THEME OVERRIDES (Appended)
   7. PRODUCT CARDS & SHOP
   -------------------------------------------------------------------------- */
.product-card {
    position: relative;
    background: transparent !important;
    border: none !important;
    box-shadow: none !important;
    transition: transform 0.4s ease;
}

.product-card:hover {
    transform: translateY(-5px);
}

.product-img-wrap {
    position: relative;
    border-radius: var(--radius-md);
    overflow: hidden;
    padding-bottom: 125% !important;
    /* Portrait Ratio */
    background: var(--lux-paper) !important;
    margin-bottom: 1.25rem;
    box-shadow: 0 4px 6px -1px rgba(0, 0, 0, 0.05);
}

.product-img-wrap img {
    position: absolute;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    object-fit: cover !important;
    transform: none !important;
    transition: transform 0.6s ease !important;
}

.product-card:hover .product-img-wrap img {
    transform: scale(1.05) !important;
}

.btn-quick-add {
    position: absolute;
    bottom: 1rem;
    right: 1rem;
    width: 3rem !important;
    height: 3rem !important;
    background: var(--navy-900) !important;
    color: var(--white) !important;
    border-radius: 50%;
    display: flex;
    align-items: center;
    justify-content: center;
    opacity: 0;
    transform: translateY(10px);
    transition: all 0.3s ease;
    z-index: 10;
}

.product-card:hover .btn-quick-add {
    opacity: 1;
    transform: translateY(0);
}

.product-details {
    padding: 0 !important;
    text-align: left;
}

.product-tag {
    font-size: 0.7rem !important;
    letter-spacing: 0.1em !important;
    color: var(--slate-500) !important;
    font-weight: 500 !important;
    text-transform: uppercase;
    display: block;
    margin-bottom: 0.25rem;
}

.product-title {
    font-family: var(--font-heading);
    font-size: 1.35rem !important;
    font-weight: 500 !important;
    margin-bottom: 0.25rem !important;
    color: var(--navy-900);
}

.product-price {
    font-family: var(--font-body);
    font-weight: 500 !important;
    color: var(--gold-600) !important;
    font-size: 1.1rem !important;
}