/* ==========================================================================
   Axshora - Premium Scandinavian Furniture & Living Design System
   ========================================================================== */

@import url('https://fonts.googleapis.com/css2?family=Inter:wght@300;400;500;600;700&family=Outfit:wght@400;500;600;700;800&display=swap');

:root {
    --ax-primary: #111827;
    --ax-primary-hover: #1f2937;
    --ax-accent: #c28135;
    --ax-accent-hover: #a16220;
    --ax-bg-sand: #f8f6f0;
    --ax-bg-light: #fafafa;
    --ax-surface: #ffffff;
    --ax-text-main: #111827;
    --ax-text-muted: #6b7280;
    --ax-border: #e5e7eb;
    --ax-border-light: #f3f4f6;
    --ax-success: #059669;
    --ax-danger: #dc2626;
    --ax-font-heading: 'Outfit', -apple-system, BlinkMacSystemFont, 'Segoe UI', Roboto, sans-serif;
    --ax-font-body: 'Inter', -apple-system, BlinkMacSystemFont, 'Segoe UI', Roboto, sans-serif;
    --ax-radius-sm: 6px;
    --ax-radius-md: 10px;
    --ax-radius-lg: 16px;
    --ax-shadow-subtle: 0 2px 10px rgba(0, 0, 0, 0.03);
    --ax-shadow-card: 0 10px 30px -5px rgba(0, 0, 0, 0.06);
    --ax-shadow-hover: 0 20px 40px -10px rgba(0, 0, 0, 0.12);
    --ax-transition: all 0.25s cubic-bezier(0.16, 1, 0.3, 1);
}

/* Base Elements */
body {
    font-family: var(--ax-font-body);
    color: var(--ax-text-main);
    background-color: #ffffff;
    line-height: 1.6;
    -webkit-font-smoothing: antialiased;
    overflow-x: hidden;
}

h1, h2, h3, h4, h5, h6, .ax-heading {
    font-family: var(--ax-font-heading);
    color: var(--ax-primary);
    font-weight: 600;
    letter-spacing: -0.02em;
}

a {
    color: var(--ax-primary);
    text-decoration: none;
    transition: var(--ax-transition);
}

a:hover {
    color: var(--ax-accent);
}

/* Top Utility Bar */
.ax-top-bar {
    background-color: var(--ax-primary);
    color: #9ca3af;
    font-size: 0.8125rem;
    padding: 6px 0;
    letter-spacing: 0.01em;
}

.ax-top-bar a {
    color: #d1d5db;
    text-decoration: none;
    transition: var(--ax-transition);
}

.ax-top-bar a:hover {
    color: #ffffff;
}

/* Header Announcement Bar */
.ax-announcement-bar {
    background: #fdf8f0;
    border-bottom: 1px solid #fef3c7;
    color: #92400e;
    font-size: 0.825rem;
    font-weight: 500;
    padding: 8px 0;
    text-align: center;
}

/* Main Navigation Header */
.ax-main-header {
    background-color: var(--ax-surface);
    border-bottom: 1px solid var(--ax-border-light);
    position: sticky;
    top: 0;
    z-index: 1030;
    box-shadow: var(--ax-shadow-subtle);
    transition: var(--ax-transition);
}

.ax-branding-container {
    display: inline-flex;
    align-items: center;
    gap: 12px;
    text-decoration: none;
}

.ax-brand-logo-img {
    height: 38px;
    width: auto;
    object-fit: contain;
}

.ax-brand-title-text {
    font-family: var(--ax-font-heading);
    font-size: 1.5rem;
    font-weight: 700;
    letter-spacing: 2.5px;
    color: var(--ax-primary);
    line-height: 1;
}

/* Search Bar in Header */
.ax-search-input-group {
    background-color: var(--ax-bg-sand);
    border-radius: 30px;
    border: 1px solid transparent;
    transition: var(--ax-transition);
    overflow: hidden;
    padding: 2px 14px;
}

.ax-search-input-group:focus-within {
    background-color: #ffffff;
    border-color: var(--ax-primary);
    box-shadow: 0 0 0 4px rgba(17, 24, 39, 0.06);
}

.ax-search-input {
    border: none;
    background: transparent;
    font-size: 0.875rem;
    box-shadow: none !important;
}

/* Navigation Links & Mega Menu */
.ax-nav-link {
    font-family: var(--ax-font-heading);
    font-weight: 500;
    font-size: 0.9375rem;
    color: var(--ax-primary);
    padding: 18px 14px;
    display: inline-block;
    position: relative;
    letter-spacing: -0.01em;
}

.ax-nav-link::after {
    content: '';
    position: absolute;
    bottom: 0;
    left: 50%;
    transform: translateX(-50%);
    width: 0;
    height: 2px;
    background-color: var(--ax-accent);
    transition: var(--ax-transition);
}

.ax-nav-link:hover::after,
.ax-nav-item:hover .ax-nav-link::after {
    width: 80%;
}

.ax-nav-item:hover .ax-nav-link {
    color: var(--ax-accent);
}

/* Mega Menu Dropdown */
.ax-mega-menu {
    position: absolute;
    top: 100%;
    left: 0;
    width: 100%;
    background: #ffffff;
    border-top: 1px solid var(--ax-border-light);
    box-shadow: 0 20px 40px rgba(0, 0, 0, 0.08);
    padding: 35px 0;
    opacity: 0;
    visibility: hidden;
    transform: translateY(10px);
    transition: all 0.2s ease-in-out;
    z-index: 1020;
}

.ax-nav-item:hover .ax-mega-menu {
    opacity: 1;
    visibility: visible;
    transform: translateY(0);
}

/* Product Cards */
.ax-product-card {
    background: #ffffff;
    border-radius: var(--ax-radius-md);
    transition: var(--ax-transition);
    height: 100%;
    display: flex;
    flex-direction: column;
    position: relative;
    border: 1px solid transparent;
}

.ax-product-card:hover {
    box-shadow: var(--ax-shadow-card);
    border-color: var(--ax-border-light);
    transform: translateY(-4px);
}

.ax-product-card-img-wrap {
    position: relative;
    border-radius: var(--ax-radius-md);
    overflow: hidden;
    background-color: var(--ax-bg-sand);
    aspect-ratio: 4 / 3.3;
}

.ax-product-card-img {
    width: 100%;
    height: 100%;
    object-fit: cover;
    transition: transform 0.6s cubic-bezier(0.16, 1, 0.3, 1);
}

.ax-product-card:hover .ax-product-card-img {
    transform: scale(1.05);
}

.ax-badge-stack {
    position: absolute;
    top: 12px;
    left: 12px;
    display: flex;
    flex-direction: column;
    gap: 6px;
    z-index: 2;
}

.ax-badge {
    font-size: 0.6875rem;
    font-weight: 700;
    text-transform: uppercase;
    letter-spacing: 0.08em;
    padding: 4px 8px;
    border-radius: 4px;
}

.ax-badge-new {
    background-color: var(--ax-primary);
    color: #ffffff;
}

.ax-badge-sale {
    background-color: #b91c1c;
    color: #ffffff;
}

.ax-badge-bestseller {
    background-color: var(--ax-accent);
    color: #ffffff;
}

.ax-wishlist-btn {
    position: absolute;
    top: 12px;
    right: 12px;
    width: 36px;
    height: 36px;
    border-radius: 50%;
    background: rgba(255, 255, 255, 0.9);
    border: none;
    display: flex;
    align-items: center;
    justify-content: center;
    color: #4b5563;
    transition: var(--ax-transition);
    z-index: 3;
    backdrop-filter: blur(4px);
}

.ax-wishlist-btn:hover {
    background: #ffffff;
    color: #dc2626;
    transform: scale(1.1);
}

.ax-card-quick-actions {
    position: absolute;
    bottom: 12px;
    left: 12px;
    right: 12px;
    opacity: 0;
    transform: translateY(8px);
    transition: var(--ax-transition);
    z-index: 3;
}

.ax-product-card:hover .ax-card-quick-actions {
    opacity: 1;
    transform: translateY(0);
}

.ax-price-current {
    font-family: var(--ax-font-heading);
    font-weight: 700;
    font-size: 1.125rem;
    color: var(--ax-primary);
}

.ax-price-old {
    font-size: 0.875rem;
    color: #9ca3af;
    text-decoration: line-through;
    margin-left: 8px;
}

/* Hero Carousel */
.ax-hero-banner {
    position: relative;
    background-color: #111827;
    min-height: 580px;
    display: flex;
    align-items: center;
    color: #ffffff;
}

.ax-hero-bg {
    position: absolute;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    object-fit: cover;
    opacity: 0.72;
}

.ax-hero-overlay {
    position: absolute;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    background: linear-gradient(90deg, rgba(17,24,39,0.85) 0%, rgba(17,24,39,0.3) 60%, rgba(17,24,39,0) 100%);
}

.ax-hero-content {
    position: relative;
    z-index: 2;
    max-width: 650px;
}

/* Buttons */
.btn-ax-primary {
    background-color: var(--ax-primary);
    color: #ffffff;
    border: none;
    border-radius: var(--ax-radius-sm);
    padding: 12px 28px;
    font-weight: 600;
    font-size: 0.9375rem;
    transition: var(--ax-transition);
}

.btn-ax-primary:hover {
    background-color: var(--ax-primary-hover);
    color: #ffffff;
    box-shadow: 0 4px 12px rgba(17, 24, 39, 0.2);
}

.btn-ax-accent {
    background-color: var(--ax-accent);
    color: #ffffff;
    border: none;
    border-radius: var(--ax-radius-sm);
    padding: 12px 28px;
    font-weight: 600;
    font-size: 0.9375rem;
    transition: var(--ax-transition);
}

.btn-ax-accent:hover {
    background-color: var(--ax-accent-hover);
    color: #ffffff;
    box-shadow: 0 4px 12px rgba(194, 129, 53, 0.3);
}

.btn-ax-outline {
    background-color: transparent;
    color: var(--ax-primary);
    border: 1.5px solid var(--ax-border);
    border-radius: var(--ax-radius-sm);
    padding: 11px 24px;
    font-weight: 600;
    font-size: 0.9375rem;
    transition: var(--ax-transition);
}

.btn-ax-outline:hover {
    border-color: var(--ax-primary);
    background-color: var(--ax-primary);
    color: #ffffff;
}

/* Interactive Room Hotspots */
.ax-room-canvas {
    position: relative;
    border-radius: var(--ax-radius-lg);
    overflow: hidden;
    box-shadow: var(--ax-shadow-card);
}

.ax-room-img {
    width: 100%;
    display: block;
    height: auto;
}

.ax-hotspot-pin {
    position: absolute;
    width: 32px;
    height: 32px;
    border-radius: 50%;
    background: #ffffff;
    border: 2px solid var(--ax-primary);
    box-shadow: 0 4px 15px rgba(0, 0, 0, 0.25);
    display: flex;
    align-items: center;
    justify-content: center;
    cursor: pointer;
    transform: translate(-50%, -50%);
    transition: var(--ax-transition);
    z-index: 10;
}

.ax-hotspot-pin::before {
    content: '';
    position: absolute;
    width: 100%;
    height: 100%;
    border-radius: 50%;
    background: rgba(255, 255, 255, 0.5);
    animation: ax-pulse 2s infinite;
}

@keyframes ax-pulse {
    0% { transform: scale(1); opacity: 0.8; }
    100% { transform: scale(2.2); opacity: 0; }
}

.ax-hotspot-pin:hover {
    transform: translate(-50%, -50%) scale(1.15);
    background: var(--ax-primary);
    color: #ffffff;
}

.ax-hotspot-popover {
    position: absolute;
    background: #ffffff;
    border-radius: var(--ax-radius-md);
    box-shadow: var(--ax-shadow-hover);
    padding: 12px;
    width: 220px;
    z-index: 20;
    opacity: 0;
    visibility: hidden;
    transform: translateY(10px);
    transition: var(--ax-transition);
    pointer-events: none;
}

.ax-hotspot-pin:hover + .ax-hotspot-popover,
.ax-hotspot-popover:hover {
    opacity: 1;
    visibility: visible;
    transform: translateY(0);
    pointer-events: auto;
}

/* Free Delivery Progress Indicator */
.ax-free-shipping-card {
    background: #f8fafc;
    border: 1px solid #e2e8f0;
    border-radius: var(--ax-radius-md);
    padding: 16px;
}

.ax-progress-bar-bg {
    height: 6px;
    background: #e2e8f0;
    border-radius: 3px;
    overflow: hidden;
    margin-top: 8px;
}

.ax-progress-bar-fill {
    height: 100%;
    background: linear-gradient(90deg, #10b981, #059669);
    border-radius: 3px;
    transition: width 0.4s ease;
}

/* Slide-over Cart Drawer */
.ax-cart-drawer-overlay {
    position: fixed;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    background: rgba(0, 0, 0, 0.5);
    backdrop-filter: blur(4px);
    z-index: 1050;
    opacity: 0;
    visibility: hidden;
    transition: var(--ax-transition);
}

.ax-cart-drawer {
    position: fixed;
    top: 0;
    right: 0;
    width: 440px;
    max-width: 90vw;
    height: 100%;
    background: #ffffff;
    box-shadow: -10px 0 30px rgba(0, 0, 0, 0.15);
    z-index: 1060;
    transform: translateX(100%);
    transition: transform 0.35s cubic-bezier(0.16, 1, 0.3, 1);
    display: flex;
    flex-direction: column;
}

.ax-cart-drawer.open {
    transform: translateX(0);
}

.ax-cart-drawer-overlay.open {
    opacity: 1;
    visibility: visible;
}

/* Trust Badges Bar */
.ax-trust-section {
    background-color: var(--ax-bg-sand);
    padding: 45px 0;
    border-top: 1px solid var(--ax-border-light);
    border-bottom: 1px solid var(--ax-border-light);
}

.ax-trust-item {
    display: flex;
    align-items: center;
    gap: 16px;
}

.ax-trust-icon {
    font-size: 2rem;
    color: var(--ax-primary);
}

/* Footer */
.ax-footer {
    background-color: var(--ax-primary);
    color: #9ca3af;
    padding-top: 60px;
    padding-bottom: 30px;
    font-size: 0.9rem;
}

.ax-footer h5 {
    color: #ffffff;
    font-size: 1rem;
    font-weight: 600;
    margin-bottom: 20px;
    letter-spacing: -0.01em;
}

.ax-footer a {
    color: #9ca3af;
}

.ax-footer a:hover {
    color: #ffffff;
}

.ax-footer-bottom {
    border-top: 1px solid #1f2937;
    margin-top: 45px;
    padding-top: 25px;
    font-size: 0.825rem;
}

/* Mobile Sticky Bottom Navigation */
.ax-mobile-bottom-nav {
    display: none;
    position: fixed;
    bottom: 0;
    left: 0;
    width: 100%;
    background: #ffffff;
    border-top: 1px solid var(--ax-border);
    z-index: 1040;
    box-shadow: 0 -4px 15px rgba(0, 0, 0, 0.05);
}

.ax-mobile-nav-link {
    display: flex;
    flex-direction: column;
    align-items: center;
    justify-content: center;
    padding: 8px 0;
    color: #4b5563;
    font-size: 0.75rem;
    position: relative;
}

.ax-mobile-nav-link i {
    font-size: 1.25rem;
    margin-bottom: 2px;
}

.ax-mobile-nav-link.active,
.ax-mobile-nav-link:hover {
    color: var(--ax-primary);
}

@media (max-width: 991.98px) {
    .ax-mobile-bottom-nav {
        display: block;
    }
    body {
        padding-bottom: 60px;
    }
}
