/*
Theme Name: Nubia Custom Storefront Theme
Theme URI: http://nubia-store.com
Author: Antigravity AI
Description: Premium dark-mode streetwear storefront theme for WooCommerce products.
Version: 1.0.0
Text Domain: nubia-theme
*/

/* CSS Custom Properties & Design Tokens */
:root {
    /* Logo Colors */
    --color-gold: #E5A823;
    --color-red: #C82A2A;
    --color-green: #0A7E3E;
    --color-brown: #A3704C;
    --color-charcoal: #0B0E0D;
    --color-charcoal-light: #161B19;
    --color-ivory: #F7F5F0;
    --color-ivory-dark: #EBE9E4;
    
    /* System Colors */
    --color-white: #FFFFFF;
    --color-black: #000000;
    --color-success: #10B981;
    --color-error: #EF4444;
    --color-text-muted: #8E9391;
    
    /* Typography */
    --font-en: 'Outfit', sans-serif;
    --font-ar: 'Cairo', sans-serif;
    --font-active: 'Cairo', 'Outfit', sans-serif;
    
    /* Layout */
    --header-height: 80px;
    --border-radius-sm: 4px;
    --border-radius-md: 8px;
    --border-radius-lg: 16px;
    --border-radius-full: 9999px;
    
    /* Transitions */
    --transition-fast: 0.2s cubic-bezier(0.4, 0, 0.2, 1);
    --transition-normal: 0.3s cubic-bezier(0.4, 0, 0.2, 1);
    --transition-slow: 0.5s cubic-bezier(0.4, 0, 0.2, 1);
    
    /* Shadows */
    --shadow-sm: 0 2px 4px rgba(0, 0, 0, 0.1);
    --shadow-md: 0 4px 10px rgba(0, 0, 0, 0.3);
    --shadow-lg: 0 10px 25px rgba(0, 0, 0, 0.5);
    --shadow-glow: 0 0 15px rgba(229, 168, 35, 0.35);
    
    /* Background Pattern - Nubian Geometric Diamonds & Zigzags */
    --pattern-nubian: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' width='120' height='120' viewBox='0 0 120 120'%3E%3Cg opacity='0.08'%3E%3Cpath d='M10 25 C10 17, 18 17, 18 25 C18 29, 14 29, 14 27' stroke='%23E5A823' stroke-width='1.5' fill='none'/%3E%3Cpath d='M42 15 L52 27 M52 15 L42 27' stroke='%230A7E3E' stroke-width='1.5'/%3E%3Ccircle cx='47' cy='11' r='1.5' fill='%230A7E3E'/%3E%3Ccircle cx='47' cy='31' r='1.5' fill='%230A7E3E'/%3E%3Cpath d='M80 20 L86 12 L92 20 L86 28 Z' stroke='%23C82A2A' stroke-width='1.5' fill='none'/%3E%3Crect x='15' y='75' width='16' height='14' stroke='%23E5A823' stroke-width='1.5' fill='none'/%3E%3Cpath d='M15 79 L31 79 M15 83 L31 83' stroke='%23E5A823' stroke-width='1'/%3E%3Cpath d='M48 80 L52 75 L56 80 L52 85 Z M56 80 L60 75 L64 80 L60 85 Z' stroke='%23C82A2A' stroke-width='1.5' fill='none'/%3E%3Cpath d='M88 72 L93 80 L88 88 M92 72 L97 80 L92 88' stroke='%230A7E3E' stroke-width='1.5' fill='none'/%3E%3C/g%3E%3C/svg%3E");
}

/* Base Resets & Global Styles */
* {
    margin: 0;
    padding: 0;
    box-sizing: border-box;
    outline: none;
}

html {
    scroll-behavior: smooth;
    font-size: 16px;
}

body {
    background-color: var(--color-charcoal);
    color: var(--color-ivory);
    font-family: var(--font-active);
    line-height: 1.6;
    overflow-x: hidden;
    background-image: var(--pattern-nubian);
    background-attachment: fixed;
}

/* Custom Text Selection */
::selection {
    background-color: var(--color-gold);
    color: var(--color-black);
}

a {
    color: inherit;
    text-decoration: none;
    transition: var(--transition-fast);
}

button, input, select, textarea {
    font-family: inherit;
}

button {
    cursor: pointer;
    background: none;
    border: none;
}

img {
    max-width: 100%;
    height: auto;
    display: block;
}

/* Scrollbar Customization */
::-webkit-scrollbar {
    width: 8px;
}
::-webkit-scrollbar-track {
    background: var(--color-charcoal);
}
::-webkit-scrollbar-thumb {
    background: var(--color-charcoal-light);
    border: 2px solid var(--color-charcoal);
    border-radius: var(--border-radius-full);
}
::-webkit-scrollbar-thumb:hover {
    background: var(--color-gold);
}

/* Typography Utility */
.text-center { text-align: center; }
.text-muted { color: var(--color-text-muted); }
.hidden { display: none !important; }

/* Announcement Bar */
.announcement-bar {
    background-color: var(--color-black);
    color: var(--color-gold);
    text-align: center;
    padding: 8px 16px;
    font-size: 0.85rem;
    font-weight: 600;
    border-bottom: 2px solid var(--color-gold);
    letter-spacing: 0.5px;
    position: relative;
    z-index: 100;
}

/* Header & Navigation */
.main-header {
    background-color: rgba(11, 14, 13, 0.85);
    backdrop-filter: blur(12px);
    -webkit-backdrop-filter: blur(12px);
    border-bottom: 1px solid rgba(229, 168, 35, 0.15);
    position: sticky;
    top: 0;
    z-index: 90;
    height: var(--header-height);
    transition: var(--transition-normal);
}

.header-container {
    max-width: 1300px;
    height: 100%;
    margin: 0 auto;
    padding: 0 24px;
    display: flex;
    align-items: center;
    justify-content: space-between;
}

/* Brand styling with Nubian colors */
.brand-logo-container {
    display: flex;
    align-items: center;
    gap: 12px;
}

.brand-logo {
    height: 50px;
    width: auto;
    object-fit: contain;
    filter: drop-shadow(0 2px 8px rgba(0, 0, 0, 0.5));
    transition: var(--transition-normal);
}

.brand-logo-container:hover .brand-logo {
    transform: rotate(5deg) scale(1.05);
}

.brand-name {
    font-family: var(--font-en);
    font-weight: 900;
    font-size: 1.8rem;
    letter-spacing: 4px;
    background: linear-gradient(135deg, var(--color-ivory) 40%, var(--color-gold) 100%);
    -webkit-background-clip: text;
    -webkit-text-fill-color: transparent;
    text-shadow: 0 2px 10px rgba(0, 0, 0, 0.3);
}

/* Navigation Menu */
.nav-links {
    display: flex;
    gap: 32px;
}

.nav-link {
    font-size: 0.95rem;
    font-weight: 600;
    color: var(--color-text-muted);
    position: relative;
    padding: 8px 0;
}

.nav-link::after {
    content: '';
    position: absolute;
    bottom: 0;
    left: 0;
    width: 0;
    height: 2px;
    background-color: var(--color-gold);
    transition: var(--transition-normal);
}

.nav-link:hover, .nav-link.active {
    color: var(--color-ivory);
}

.nav-link.active::after, .nav-link:hover::after {
    width: 100%;
}

/* Language Button & Cart Buttons */
.lang-switch-btn {
    display: flex;
    align-items: center;
    gap: 8px;
    color: var(--color-ivory);
    font-weight: 600;
    font-size: 0.85rem;
    padding: 8px 14px;
    border: 1px solid rgba(247, 245, 240, 0.2);
    border-radius: var(--border-radius-full);
    transition: var(--transition-fast);
}

.lang-switch-btn:hover {
    border-color: var(--color-gold);
    color: var(--color-gold);
    background-color: rgba(229, 168, 35, 0.05);
}

.cart-trigger-wrapper {
    position: relative;
}

.cart-trigger-btn {
    color: var(--color-ivory);
    font-size: 1.4rem;
    display: flex;
    align-items: center;
    justify-content: center;
    width: 45px;
    height: 45px;
    border-radius: var(--border-radius-full);
    background-color: var(--color-charcoal-light);
    border: 1px solid rgba(229, 168, 35, 0.1);
    transition: var(--transition-normal);
}

.cart-trigger-btn:hover {
    color: var(--color-gold);
    border-color: var(--color-gold);
    box-shadow: var(--shadow-glow);
    transform: translateY(-2px);
}

.cart-badge {
    position: absolute;
    top: -4px;
    right: -4px;
    background-color: var(--color-red);
    color: var(--color-white);
    font-size: 0.7rem;
    font-weight: 700;
    min-width: 18px;
    height: 18px;
    border-radius: var(--border-radius-full);
    display: flex;
    align-items: center;
    justify-content: center;
    padding: 0 4px;
    border: 2px solid var(--color-charcoal);
    animation: popBadge 0.3s ease-out;
}

@keyframes popBadge {
    0% { transform: scale(0); }
    80% { transform: scale(1.2); }
    100% { transform: scale(1); }
}

/* Button Styles */
.btn {
    display: inline-flex;
    align-items: center;
    justify-content: center;
    gap: 10px;
    padding: 12px 28px;
    font-size: 0.95rem;
    font-weight: 700;
    border-radius: var(--border-radius-sm);
    transition: var(--transition-normal);
    position: relative;
    overflow: hidden;
    letter-spacing: 0.5px;
}

.btn-primary {
    background-color: var(--color-gold);
    color: var(--color-black);
    box-shadow: 0 4px 15px rgba(229, 168, 35, 0.25);
    border: 1px solid var(--color-gold);
}

.btn-primary:hover {
    background-color: #f7bb38;
    transform: translateY(-2px);
    box-shadow: 0 6px 20px rgba(229, 168, 35, 0.4);
}

.btn-outline {
    border: 1px solid rgba(247, 245, 240, 0.3);
    color: var(--color-ivory);
}

.btn-outline:hover {
    border-color: var(--color-gold);
    color: var(--color-gold);
    background-color: rgba(229, 168, 35, 0.05);
    transform: translateY(-2px);
}

.btn-block {
    display: flex;
    width: 100%;
    margin-bottom: 12px;
}

/* Arrow Icon Animation */
.arrow-icon {
    transition: var(--transition-fast);
}

body[dir="rtl"] .arrow-icon {
    transform: rotate(0deg);
}

body[dir="ltr"] .arrow-icon {
    transform: rotate(180deg);
}

.btn:hover .arrow-icon {
    transform: translateX(-4px) rotate(0deg);
}

body[dir="ltr"] .btn:hover .arrow-icon {
    transform: translateX(4px) rotate(180deg);
}

/* Hero Section */
.hero-section {
    min-height: 80vh;
    display: flex;
    flex-direction: column;
    justify-content: center;
    align-items: center;
    position: relative;
    padding: 100px 24px;
    text-align: center;
    overflow: hidden;
    background: radial-gradient(circle at center, rgba(22, 27, 25, 0.6) 0%, var(--color-charcoal) 100%);
    border-bottom: 1px solid rgba(229, 168, 35, 0.15);
}

.hero-pattern-overlay {
    position: absolute;
    top: 0;
    left: 0;
    right: 0;
    bottom: 0;
    opacity: 0.18;
    background-image: 
        /* Left vertical pattern strip */
        linear-gradient(90deg, transparent 49.5%, var(--color-gold) 50%, var(--color-gold) 50.5%, transparent 51%),
        /* Right vertical pattern strip */
        linear-gradient(90deg, transparent 20%, rgba(200, 42, 42, 0.3) 21%, rgba(200, 42, 42, 0.3) 22%, transparent 23%);
    pointer-events: none;
}

.hero-content {
    max-width: 850px;
    z-index: 10;
    animation: fadeInUp 0.8s ease-out;
}

.hero-title {
    font-size: 3.5rem;
    font-weight: 900;
    line-height: 1.2;
    margin-bottom: 24px;
    color: var(--color-ivory);
    text-shadow: 0 4px 15px rgba(0, 0, 0, 0.6);
}

body[dir="rtl"] .hero-title {
    font-family: var(--font-ar);
    line-height: 1.35;
}

body[dir="ltr"] .hero-title {
    font-family: var(--font-en);
}

.hero-subtitle {
    font-size: 1.15rem;
    color: var(--color-text-muted);
    margin-bottom: 40px;
    max-width: 650px;
    margin-left: auto;
    margin-right: auto;
}

.hero-actions {
    display: flex;
    gap: 16px;
    justify-content: center;
    flex-wrap: wrap;
}

/* Patterns Bar / Marquee */
.marquee-patterns {
    position: absolute;
    bottom: 0;
    width: 100%;
    background-color: var(--color-gold);
    color: var(--color-black);
    padding: 10px 0;
    overflow: hidden;
    white-space: nowrap;
    border-top: 1px solid var(--color-black);
    border-bottom: 2px solid var(--color-black);
}

.marquee-content {
    display: inline-block;
    animation: marquee 25s linear infinite;
    font-family: var(--font-en);
    font-weight: 900;
    font-size: 0.8rem;
    letter-spacing: 2px;
}

.marquee-content span {
    display: inline-block;
    padding: 0 10px;
}

@keyframes marquee {
    0% { transform: translate3d(0, 0, 0); }
    100% { transform: translate3d(-50%, 0, 0); }
}

@keyframes fadeInUp {
    0% { opacity: 0; transform: translateY(30px); }
    100% { opacity: 1; transform: translateY(0); }
}

/* Brand Story Section */
.story-section {
    padding: 100px 0;
    position: relative;
    border-bottom: 1px solid rgba(247, 245, 240, 0.05);
}

.section-container {
    max-width: 1200px;
    margin: 0 auto;
    padding: 0 24px;
}

.story-grid {
    display: grid;
    grid-template-columns: 1.1fr 0.9fr;
    gap: 80px;
    align-items: center;
}

.section-title {
    font-size: 2.2rem;
    font-weight: 900;
    margin-bottom: 24px;
    position: relative;
    display: inline-block;
}

.section-title::after {
    content: '';
    display: block;
    width: 60px;
    height: 4px;
    background-color: var(--color-gold);
    margin-top: 8px;
}

.section-title.text-center::after {
    margin: 8px auto 0 auto;
}

.story-desc {
    color: var(--color-text-muted);
    font-size: 1.05rem;
    margin-bottom: 20px;
}

.story-badges {
    margin-top: 40px;
    display: flex;
    flex-direction: column;
    gap: 16px;
}

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

.badge-item i {
    width: 40px;
    height: 40px;
    background-color: rgba(229, 168, 35, 0.15);
    border: 1px solid var(--color-gold);
    border-radius: var(--border-radius-sm);
    color: var(--color-gold);
    display: flex;
    align-items: center;
    justify-content: center;
    font-size: 1.1rem;
}

.badge-item span {
    font-weight: 600;
    font-size: 0.95rem;
}

.story-visual {
    position: relative;
}

.story-image-wrapper {
    position: relative;
    border-radius: var(--border-radius-md);
    overflow: hidden;
    box-shadow: var(--shadow-lg);
    border: 2px solid rgba(229, 168, 35, 0.2);
}

.story-img {
    width: 100%;
    height: 450px;
    object-fit: cover;
    object-position: center;
    filter: brightness(0.95) contrast(1.05);
    transition: var(--transition-slow);
}

.story-image-wrapper:hover .story-img {
    transform: scale(1.03);
}

/* Decorative box in background */
.story-pattern-box {
    position: absolute;
    bottom: -20px;
    right: -20px;
    width: 120px;
    height: 120px;
    background-color: var(--color-red);
    opacity: 0.15;
    z-index: -1;
    border-radius: var(--border-radius-sm);
    /* Pattern background */
    background-image: repeating-linear-gradient(45deg, var(--color-ivory) 0px, var(--color-ivory) 2px, transparent 2px, transparent 8px);
}

body[dir="ltr"] .story-pattern-box {
    right: auto;
    left: -20px;
}

/* Catalog Section */
.catalog-section {
    padding: 100px 0;
    background-color: rgba(11, 14, 13, 0.5);
}

.catalog-header {
    margin-bottom: 60px;
}

.section-subtitle {
    color: var(--color-text-muted);
    font-size: 1.05rem;
    margin-top: -12px;
    margin-bottom: 40px;
}

/* Toolbar: Filters & Search */
.catalog-toolbar {
    display: flex;
    justify-content: space-between;
    align-items: center;
    flex-wrap: wrap;
    gap: 24px;
    padding: 20px 24px;
    background-color: var(--color-charcoal-light);
    border-radius: var(--border-radius-md);
    border: 1px solid rgba(229, 168, 35, 0.1);
}

.filter-categories {
    display: flex;
    gap: 12px;
    flex-wrap: wrap;
}

.filter-btn {
    padding: 10px 20px;
    font-size: 0.85rem;
    font-weight: 700;
    color: var(--color-text-muted);
    border-radius: var(--border-radius-sm);
    background-color: var(--color-charcoal);
    border: 1px solid rgba(247, 245, 240, 0.1);
    transition: var(--transition-normal);
}

.filter-btn:hover, .filter-btn.active {
    color: var(--color-black);
    background-color: var(--color-gold);
    border-color: var(--color-gold);
    box-shadow: 0 4px 12px rgba(229, 168, 35, 0.2);
}

/* Search bar */
.search-bar-wrapper {
    position: relative;
    min-width: 280px;
    flex-grow: 0.1;
}

.search-icon {
    position: absolute;
    top: 50%;
    right: 16px;
    transform: translateY(-50%);
    color: var(--color-text-muted);
    font-size: 0.9rem;
    pointer-events: none;
}

body[dir="ltr"] .search-icon {
    right: auto;
    left: 16px;
}

#search-input {
    width: 100%;
    background-color: var(--color-charcoal);
    border: 1px solid rgba(247, 245, 240, 0.1);
    padding: 12px 48px 12px 16px;
    border-radius: var(--border-radius-sm);
    color: var(--color-ivory);
    font-size: 0.9rem;
    transition: var(--transition-normal);
}

body[dir="ltr"] #search-input {
    padding: 12px 16px 12px 48px;
}

#search-input:focus {
    border-color: var(--color-gold);
    box-shadow: var(--shadow-glow);
}

/* Product Grid */
.product-grid {
    display: grid;
    grid-template-columns: repeat(auto-fill, minmax(280px, 1fr));
    gap: 30px;
    margin-top: 40px;
    min-height: 300px;
    position: relative;
}

/* Spinner Loader */
.loader-spinner {
    position: absolute;
    top: 50%;
    left: 50%;
    transform: translate(-50%, -50%);
}

.spinner {
    width: 50px;
    height: 50px;
    border: 3px solid rgba(229, 168, 35, 0.1);
    border-top-color: var(--color-gold);
    border-radius: var(--border-radius-full);
    animation: spin 1s infinite linear;
}

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

/* Product Card Style */
.product-card {
    background-color: var(--color-charcoal-light);
    border-radius: var(--border-radius-md);
    overflow: hidden;
    border: 1px solid rgba(247, 245, 240, 0.05);
    display: flex;
    flex-direction: column;
    position: relative;
    box-shadow: var(--shadow-sm);
    transition: var(--transition-normal);
}

.product-card:hover {
    transform: translateY(-8px);
    box-shadow: var(--shadow-lg);
    border-color: rgba(229, 168, 35, 0.25);
}

.product-card-image-wrapper {
    position: relative;
    padding-top: 130%; /* High fashion vertical format */
    background-color: #121614;
    overflow: hidden;
}

.product-card-img {
    position: absolute;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    object-fit: cover;
    object-position: center;
    transition: var(--transition-slow);
}

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

/* Badges floating on card */
.product-badges {
    position: absolute;
    top: 12px;
    right: 12px;
    display: flex;
    flex-direction: column;
    gap: 6px;
    z-index: 5;
}

body[dir="ltr"] .product-badges {
    right: auto;
    left: 12px;
}

.p-badge {
    padding: 6px 12px;
    font-size: 0.7rem;
    font-weight: 800;
    border-radius: var(--border-radius-sm);
    text-transform: uppercase;
    box-shadow: var(--shadow-sm);
}

.p-badge-new {
    background-color: var(--color-gold);
    color: var(--color-black);
}

.p-badge-cotton {
    background-color: var(--color-charcoal);
    color: var(--color-ivory);
    border: 1px solid rgba(247, 245, 240, 0.2);
}

/* Quick Add Overlay */
.product-card-overlay {
    position: absolute;
    bottom: 0;
    left: 0;
    right: 0;
    padding: 16px;
    background: linear-gradient(to top, rgba(11, 14, 13, 0.95) 40%, transparent 100%);
    opacity: 0;
    transform: translateY(20px);
    transition: var(--transition-normal);
    z-index: 6;
    display: flex;
    justify-content: center;
}

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

.btn-quick-view {
    padding: 10px 20px;
    font-size: 0.8rem;
    font-weight: 700;
    background-color: var(--color-ivory);
    color: var(--color-black);
    border-radius: var(--border-radius-sm);
    width: 100%;
}

.btn-quick-view:hover {
    background-color: var(--color-gold);
    box-shadow: var(--shadow-sm);
}

/* Product Info */
.product-card-info {
    padding: 20px;
    display: flex;
    flex-direction: column;
    flex-grow: 1;
}

.product-card-title {
    font-size: 1.15rem;
    font-weight: 700;
    color: var(--color-ivory);
    margin-bottom: 8px;
    line-height: 1.3;
}

.product-card-desc {
    font-size: 0.85rem;
    color: var(--color-text-muted);
    margin-bottom: 16px;
    flex-grow: 1;
}

.product-card-footer {
    display: flex;
    align-items: center;
    justify-content: space-between;
    margin-top: auto;
    border-top: 1px solid rgba(247, 245, 240, 0.05);
    padding-top: 16px;
}

.product-card-price {
    font-size: 1.25rem;
    font-weight: 800;
    color: var(--color-gold);
}

.btn-card-add {
    width: 40px;
    height: 40px;
    border-radius: var(--border-radius-sm);
    background-color: rgba(229, 168, 35, 0.1);
    color: var(--color-gold);
    border: 1px solid rgba(229, 168, 35, 0.2);
    display: flex;
    align-items: center;
    justify-content: center;
    font-size: 1rem;
    transition: var(--transition-normal);
}

.btn-card-add:hover {
    background-color: var(--color-gold);
    color: var(--color-black);
    box-shadow: 0 4px 10px rgba(229, 168, 35, 0.15);
}

/* Shopping Cart Drawer */
.cart-drawer-overlay {
    position: fixed;
    top: 0;
    left: 0;
    right: 0;
    bottom: 0;
    background-color: rgba(0, 0, 0, 0.7);
    backdrop-filter: blur(4px);
    z-index: 150;
    opacity: 0;
    visibility: hidden;
    transition: var(--transition-normal);
}

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

.cart-drawer {
    position: fixed;
    top: 0;
    bottom: 0;
    width: 450px;
    max-width: 100%;
    background-color: var(--color-charcoal);
    border-left: 1px solid rgba(229, 168, 35, 0.15);
    z-index: 200;
    display: flex;
    flex-direction: column;
    box-shadow: var(--shadow-lg);
    transition: var(--transition-normal);
    
    /* Sliding logic based on direction (RTL slide from right, LTR from left) */
    transform: translateX(100%);
    right: 0;
}

body[dir="ltr"] .cart-drawer {
    transform: translateX(-100%);
    left: 0;
    right: auto;
    border-left: none;
    border-right: 1px solid rgba(229, 168, 35, 0.15);
}

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

body[dir="ltr"] .cart-drawer.active {
    transform: translateX(0);
}

/* Cart Header */
.cart-header {
    padding: 24px;
    border-bottom: 1px solid rgba(247, 245, 240, 0.05);
    display: flex;
    align-items: center;
    justify-content: space-between;
}

.cart-header h3 {
    font-size: 1.3rem;
    font-weight: 700;
}

.close-drawer-btn {
    font-size: 1.5rem;
    color: var(--color-text-muted);
}

.close-drawer-btn:hover {
    color: var(--color-red);
}

/* Cart Body */
.cart-items-body {
    flex-grow: 1;
    overflow-y: auto;
    padding: 24px;
    display: flex;
    flex-direction: column;
    gap: 20px;
}

.cart-empty-msg {
    display: flex;
    flex-direction: column;
    align-items: center;
    justify-content: center;
    height: 100%;
    text-align: center;
    color: var(--color-text-muted);
    gap: 16px;
}

.cart-empty-msg i {
    font-size: 3.5rem;
    color: var(--color-charcoal-light);
    border: 3px dashed rgba(247, 245, 240, 0.05);
    padding: 24px;
    border-radius: var(--border-radius-full);
}

.cart-empty-msg p {
    font-size: 1.05rem;
    font-weight: 600;
}

/* Cart Item Row */
.cart-item {
    display: grid;
    grid-template-columns: 80px 1fr;
    gap: 16px;
    padding-bottom: 20px;
    border-bottom: 1px solid rgba(247, 245, 240, 0.05);
}

.cart-item-image {
    width: 80px;
    height: 100px;
    border-radius: var(--border-radius-sm);
    overflow: hidden;
    background-color: var(--color-charcoal-light);
    border: 1px solid rgba(247, 245, 240, 0.05);
}

.cart-item-image img {
    width: 100%;
    height: 100%;
    object-fit: cover;
}

.cart-item-details {
    display: flex;
    flex-direction: column;
    justify-content: space-between;
}

.cart-item-title-row {
    display: flex;
    justify-content: space-between;
    align-items: flex-start;
    gap: 12px;
}

.cart-item-name {
    font-weight: 700;
    font-size: 0.95rem;
}

.btn-remove-item {
    color: var(--color-text-muted);
    font-size: 1rem;
    transition: var(--transition-fast);
}

.btn-remove-item:hover {
    color: var(--color-red);
}

.cart-item-meta {
    font-size: 0.8rem;
    color: var(--color-text-muted);
    margin-top: 4px;
    display: flex;
    gap: 12px;
}

.cart-item-size-badge {
    background-color: var(--color-charcoal-light);
    border: 1px solid rgba(247, 245, 240, 0.1);
    padding: 2px 8px;
    border-radius: var(--border-radius-sm);
    font-weight: 700;
}

.cart-item-control-row {
    display: flex;
    justify-content: space-between;
    align-items: center;
    margin-top: 12px;
}

/* Quantity Counter controls */
.qty-selector {
    display: inline-flex;
    align-items: center;
    border: 1px solid rgba(247, 245, 240, 0.15);
    background-color: var(--color-charcoal-light);
    border-radius: var(--border-radius-sm);
    overflow: hidden;
}

.qty-btn {
    width: 32px;
    height: 32px;
    display: flex;
    align-items: center;
    justify-content: center;
    font-size: 0.85rem;
    color: var(--color-ivory);
    transition: var(--transition-fast);
}

.qty-btn:hover {
    background-color: var(--color-gold);
    color: var(--color-black);
}

.qty-val {
    width: 35px;
    text-align: center;
    font-weight: 700;
    font-size: 0.9rem;
}

.cart-item-price {
    font-weight: 800;
    font-size: 1.05rem;
    color: var(--color-gold);
}

/* Cart Footer */
.cart-footer {
    padding: 24px;
    border-top: 1px solid rgba(247, 245, 240, 0.05);
    background-color: var(--color-charcoal-light);
}

.cart-summary-row {
    display: flex;
    justify-content: space-between;
    font-size: 1.15rem;
    font-weight: 700;
    margin-bottom: 6px;
}

.cart-subtotal-price {
    color: var(--color-gold);
    font-weight: 900;
}

.cart-tax-note {
    font-size: 0.8rem;
    color: var(--color-text-muted);
    margin-bottom: 20px;
}

/* Modals System (Detail, Checkout, Size Chart) */
.modal-overlay {
    position: fixed;
    top: 0;
    left: 0;
    right: 0;
    bottom: 0;
    background-color: rgba(0, 0, 0, 0.8);
    backdrop-filter: blur(8px);
    z-index: 300;
    opacity: 0;
    visibility: hidden;
    transition: var(--transition-normal);
}

.modal-overlay.active {
    opacity: 1;
    visibility: visible;
}

.modal-container {
    position: fixed;
    top: 50%;
    left: 50%;
    transform: translate(-50%, -40%);
    width: 900px;
    max-width: 92%;
    max-height: 90vh;
    background-color: var(--color-charcoal);
    border: 1px solid rgba(229, 168, 35, 0.2);
    border-radius: var(--border-radius-md);
    z-index: 350;
    opacity: 0;
    visibility: hidden;
    overflow-y: auto;
    box-shadow: var(--shadow-lg);
    transition: transform var(--transition-normal), opacity var(--transition-normal), visibility var(--transition-normal);
}

.modal-container.active {
    transform: translate(-50%, -50%);
    opacity: 1;
    visibility: visible;
}

.close-modal-btn {
    position: absolute;
    top: 20px;
    right: 20px;
    width: 40px;
    height: 40px;
    border-radius: var(--border-radius-full);
    background-color: var(--color-charcoal-light);
    border: 1px solid rgba(247, 245, 240, 0.1);
    color: var(--color-text-muted);
    font-size: 1.2rem;
    display: flex;
    align-items: center;
    justify-content: center;
    z-index: 10;
    transition: var(--transition-fast);
}

body[dir="ltr"] .close-modal-btn {
    right: auto;
    left: 20px;
}

.close-modal-btn:hover {
    color: var(--color-red);
    border-color: var(--color-red);
}

/* Modal Content Grid (Detail) */
.modal-content-grid {
    display: grid;
    grid-template-columns: 1fr 1fr;
    gap: 40px;
    padding: 40px;
}

.product-gallery-side {
    position: relative;
    border-radius: var(--border-radius-sm);
    overflow: hidden;
    border: 1px solid rgba(247, 245, 240, 0.05);
    background-color: var(--color-charcoal-light);
}

.modal-gallery-img {
    width: 100%;
    height: 520px;
    object-fit: cover;
}

.product-info-side {
    display: flex;
    flex-direction: column;
    justify-content: center;
}

.modal-product-title {
    font-size: 2rem;
    font-weight: 900;
    margin-bottom: 12px;
}

.modal-product-price {
    font-size: 1.75rem;
    font-weight: 800;
    color: var(--color-gold);
    margin-bottom: 24px;
}

.modal-product-desc {
    color: var(--color-text-muted);
    margin-bottom: 28px;
}

/* Size Options in details */
.product-size-section {
    margin-bottom: 28px;
}

.size-section-header {
    display: flex;
    justify-content: space-between;
    align-items: center;
    margin-bottom: 12px;
}

.size-section-header span {
    font-weight: 700;
    font-size: 0.95rem;
}

.btn-size-chart-trigger {
    font-size: 0.85rem;
    color: var(--color-gold);
    font-weight: 600;
    display: flex;
    align-items: center;
    gap: 6px;
    border-bottom: 1px dashed var(--color-gold);
    padding-bottom: 2px;
}

.size-options {
    display: flex;
    gap: 10px;
}

.size-radio-label {
    flex-grow: 1;
}

.size-radio-label input {
    display: none;
}

.size-box {
    height: 45px;
    border: 1px solid rgba(247, 245, 240, 0.15);
    background-color: var(--color-charcoal-light);
    border-radius: var(--border-radius-sm);
    display: flex;
    align-items: center;
    justify-content: center;
    font-weight: 800;
    font-size: 0.95rem;
    transition: var(--transition-fast);
}

.size-radio-label input:checked + .size-box {
    border-color: var(--color-gold);
    background-color: var(--color-gold);
    color: var(--color-black);
    box-shadow: 0 4px 10px rgba(229, 168, 35, 0.2);
}

.size-radio-label:hover .size-box {
    border-color: var(--color-gold);
}

/* Quantity & CTA in Modal */
.modal-actions-row {
    display: flex;
    gap: 16px;
}

.modal-actions-row .qty-selector {
    height: 48px;
}

.modal-actions-row .qty-btn {
    width: 40px;
    height: 100%;
}

.modal-actions-row .qty-val {
    width: 45px;
}

.btn-add-modal {
    flex-grow: 1;
    height: 48px;
}

/* Size Guide Table Style */
.size-guide-modal {
    width: 600px;
}

.size-guide-content {
    padding: 40px;
}

.size-guide-content h3 {
    font-size: 1.6rem;
    font-weight: 800;
    margin-bottom: 8px;
}

.size-guide-content .size-guide-subtitle {
    margin-bottom: 30px;
}

.size-table {
    width: 100%;
    border-collapse: collapse;
    margin-bottom: 24px;
    text-align: center;
}

.size-table th, .size-table td {
    padding: 14px;
    border: 1px solid rgba(247, 245, 240, 0.08);
}

.size-table th {
    background-color: var(--color-charcoal-light);
    font-weight: 700;
    color: var(--color-gold);
}

.size-table td {
    font-weight: 600;
}

.size-tips {
    background-color: rgba(229, 168, 35, 0.05);
    border: 1px solid rgba(229, 168, 35, 0.15);
    padding: 20px;
    border-radius: var(--border-radius-sm);
}

.size-tips h4 {
    color: var(--color-gold);
    margin-bottom: 8px;
    font-weight: 700;
}

.size-tips ul {
    margin-right: 20px;
}

body[dir="ltr"] .size-tips ul {
    margin-right: 0;
    margin-left: 20px;
}

.size-tips li {
    font-size: 0.85rem;
    margin-bottom: 6px;
    color: var(--color-text-muted);
}

/* Checkout Modal Grid */
.checkout-modal {
    width: 1100px;
}

.checkout-grid {
    display: grid;
    grid-template-columns: 1.2fr 0.8fr;
    max-height: 90vh;
}

.checkout-form-side {
    padding: 40px;
    overflow-y: auto;
    border-left: 1px solid rgba(247, 245, 240, 0.05);
}

body[dir="ltr"] .checkout-form-side {
    border-left: none;
    border-right: 1px solid rgba(247, 245, 240, 0.05);
}

.checkout-summary-side {
    padding: 40px;
    background-color: var(--color-charcoal-light);
    overflow-y: auto;
}

.checkout-title, .summary-title {
    font-size: 1.4rem;
    font-weight: 800;
    margin-bottom: 30px;
    border-bottom: 2px solid rgba(229, 168, 35, 0.1);
    padding-bottom: 12px;
}

/* Checkout Form Styles */
.form-group {
    margin-bottom: 24px;
}

.form-row {
    display: grid;
    grid-template-columns: 1fr;
    gap: 20px;
}

.form-group label {
    display: block;
    font-size: 0.9rem;
    font-weight: 700;
    margin-bottom: 8px;
    color: var(--color-ivory);
}

.required {
    color: var(--color-red);
}

.form-group input, .form-group select, .form-group textarea {
    width: 100%;
    background-color: var(--color-charcoal);
    border: 1px solid rgba(247, 245, 240, 0.15);
    padding: 12px 16px;
    border-radius: var(--border-radius-sm);
    color: var(--color-ivory);
    font-size: 0.95rem;
    transition: var(--transition-fast);
}

.form-group input:focus, .form-group select:focus, .form-group textarea:focus {
    border-color: var(--color-gold);
    box-shadow: var(--shadow-glow);
}

/* Payment selection radios */
.payment-methods {
    display: grid;
    grid-template-columns: 1fr 1fr;
    gap: 16px;
    margin-top: 10px;
}

.payment-radio input {
    display: none;
}

.radio-card {
    border: 1px solid rgba(247, 245, 240, 0.15);
    background-color: var(--color-charcoal);
    padding: 16px;
    border-radius: var(--border-radius-sm);
    display: flex;
    flex-direction: column;
    align-items: center;
    justify-content: center;
    gap: 10px;
    height: 90px;
    cursor: pointer;
    transition: var(--transition-fast);
}

.radio-card i {
    font-size: 1.4rem;
    color: var(--color-text-muted);
}

.payment-radio input:checked + .radio-card {
    border-color: var(--color-gold);
    background-color: rgba(229, 168, 35, 0.05);
}

.payment-radio input:checked + .radio-card i {
    color: var(--color-gold);
}

.radio-label {
    font-size: 0.85rem;
    font-weight: 700;
}

.instapay-details {
    margin-top: 16px;
    padding: 14px;
    background-color: rgba(229, 168, 35, 0.05);
    border: 1px dashed var(--color-gold);
    border-radius: var(--border-radius-sm);
}

.instapay-text {
    font-size: 0.8rem;
    color: var(--color-gold);
}

.btn-submit-order {
    height: 52px;
    margin-top: 30px;
    font-size: 1.05rem;
}

/* Summary items in checkout */
.summary-items {
    max-height: 250px;
    overflow-y: auto;
    margin-bottom: 24px;
    display: flex;
    flex-direction: column;
    gap: 16px;
    padding-right: 4px;
}

.summary-item-row {
    display: flex;
    align-items: center;
    justify-content: space-between;
    gap: 12px;
}

.summary-item-info {
    display: flex;
    align-items: center;
    gap: 10px;
}

.summary-item-thumb {
    width: 45px;
    height: 55px;
    object-fit: cover;
    border-radius: var(--border-radius-sm);
    border: 1px solid rgba(247, 245, 240, 0.1);
}

.summary-item-name {
    font-size: 0.85rem;
    font-weight: 700;
    max-width: 150px;
    white-space: nowrap;
    overflow: hidden;
    text-overflow: ellipsis;
}

.summary-item-qty {
    font-size: 0.75rem;
    color: var(--color-text-muted);
}

.summary-item-price {
    font-size: 0.9rem;
    font-weight: 800;
}

.summary-totals {
    border-top: 1px solid rgba(247, 245, 240, 0.05);
    padding-top: 20px;
    display: flex;
    flex-direction: column;
    gap: 12px;
}

.summary-row {
    display: flex;
    justify-content: space-between;
    font-size: 0.95rem;
    color: var(--color-text-muted);
}

.total-row {
    border-top: 1px dashed rgba(247, 245, 240, 0.1);
    padding-top: 14px;
    font-size: 1.2rem;
    color: var(--color-ivory);
}

.total-row strong {
    font-weight: 900;
}

.total-row #summary-total {
    color: var(--color-gold);
}

/* Success Modal Style */
.success-modal {
    width: 500px;
    text-align: center;
    padding: 40px;
}

.success-icon-check {
    font-size: 4rem;
    color: var(--color-success);
    margin-bottom: 20px;
    animation: scaleUpPulse 0.5s cubic-bezier(0.175, 0.885, 0.32, 1.275);
}

@keyframes scaleUpPulse {
    0% { transform: scale(0); }
    70% { transform: scale(1.1); }
    100% { transform: scale(1); }
}

.success-modal h2 {
    font-size: 1.8rem;
    font-weight: 900;
    margin-bottom: 12px;
}

.success-subtitle {
    color: var(--color-text-muted);
    font-size: 0.95rem;
    margin-bottom: 24px;
}

.order-details-card {
    background-color: var(--color-charcoal-light);
    border: 1px solid rgba(247, 245, 240, 0.05);
    border-radius: var(--border-radius-sm);
    padding: 20px;
    margin-bottom: 30px;
    text-align: right;
    display: flex;
    flex-direction: column;
    gap: 10px;
}

body[dir="ltr"] .order-details-card {
    text-align: left;
}

.order-details-card p {
    font-size: 0.9rem;
    display: flex;
    justify-content: space-between;
}

.order-details-card #success-order-id {
    color: var(--color-gold);
    font-weight: 800;
}

.order-details-card #success-order-total {
    color: var(--color-gold);
    font-weight: 900;
}

.whatsapp-note {
    border-top: 1px dashed rgba(247, 245, 240, 0.1);
    padding-top: 12px;
    font-size: 0.8rem !important;
    color: var(--color-text-muted);
    line-height: 1.5;
    text-align: center;
}

.whatsapp-note i {
    color: var(--color-success);
    font-size: 1rem;
}

.success-actions {
    display: flex;
    flex-direction: column;
    gap: 12px;
}

#whatsapp-share-btn {
    background-color: var(--color-success);
    color: var(--color-white);
    border-color: var(--color-success);
    font-size: 1rem;
}

#whatsapp-share-btn:hover {
    background-color: #059669;
    box-shadow: 0 4px 15px rgba(16, 185, 129, 0.3);
}

/* Orders Tracking Modal */
.orders-tracking-modal {
    width: 600px;
}

.orders-tracking-content {
    padding: 40px;
}

.orders-tracking-content h3 {
    font-size: 1.5rem;
    font-weight: 800;
    margin-bottom: 8px;
}

.orders-tracking-content .text-muted {
    margin-bottom: 30px;
}

#orders-list-container {
    display: flex;
    flex-direction: column;
    gap: 16px;
    max-height: 400px;
    overflow-y: auto;
}

.track-order-card {
    background-color: var(--color-charcoal-light);
    border: 1px solid rgba(247, 245, 240, 0.05);
    border-radius: var(--border-radius-sm);
    padding: 20px;
}

.track-order-header {
    display: flex;
    justify-content: space-between;
    align-items: center;
    border-bottom: 1px solid rgba(247, 245, 240, 0.05);
    padding-bottom: 12px;
    margin-bottom: 12px;
}

.track-order-id {
    font-weight: 800;
    color: var(--color-gold);
}

.track-order-date {
    font-size: 0.8rem;
    color: var(--color-text-muted);
}

.track-order-items {
    font-size: 0.85rem;
    margin-bottom: 12px;
    color: var(--color-ivory);
}

.track-order-footer {
    display: flex;
    justify-content: space-between;
    align-items: center;
}

.track-order-status {
    font-size: 0.8rem;
    font-weight: 700;
    padding: 4px 10px;
    border-radius: var(--border-radius-full);
    display: flex;
    align-items: center;
    gap: 6px;
}

.status-received {
    background-color: rgba(229, 168, 35, 0.15);
    color: var(--color-gold);
}

.track-order-total {
    font-weight: 900;
    font-size: 1rem;
    color: var(--color-gold);
}

.no-orders-msg {
    text-align: center;
    padding: 40px;
    color: var(--color-text-muted);
}

.no-orders-msg i {
    font-size: 3rem;
    margin-bottom: 12px;
}

/* Toast Notifications */
.toast-notification {
    position: fixed;
    bottom: 30px;
    left: 50%;
    transform: translateX(-50%) translateY(100px);
    background-color: var(--color-gold);
    color: var(--color-black);
    padding: 14px 28px;
    border-radius: var(--border-radius-sm);
    font-weight: 700;
    font-size: 0.95rem;
    z-index: 1000;
    box-shadow: var(--shadow-lg);
    opacity: 0;
    visibility: hidden;
    transition: transform 0.3s cubic-bezier(0.175, 0.885, 0.32, 1.275), opacity 0.3s, visibility 0.3s;
}

.toast-notification.active {
    transform: translateX(-50%) translateY(0);
    opacity: 1;
    visibility: visible;
}

/* Footer Section */
.main-footer {
    background-color: var(--color-black);
    border-top: 2px solid rgba(229, 168, 35, 0.15);
    padding: 80px 0 20px 0;
}

.footer-grid {
    display: grid;
    grid-template-columns: 1fr 1.5fr;
    gap: 80px;
    margin-bottom: 60px;
}

.footer-brand-side {
    display: flex;
    flex-direction: column;
    gap: 20px;
}

.footer-logo {
    display: flex;
    align-items: center;
    gap: 12px;
}

.footer-logo img {
    height: 40px;
    width: auto;
}

.footer-logo span {
    font-family: var(--font-en);
    font-weight: 900;
    font-size: 1.5rem;
    letter-spacing: 3px;
    color: var(--color-gold);
}

.footer-about {
    color: var(--color-text-muted);
    font-size: 0.9rem;
    line-height: 1.6;
}

.footer-socials {
    display: flex;
    gap: 12px;
}

.footer-socials a {
    width: 38px;
    height: 38px;
    background-color: var(--color-charcoal-light);
    border: 1px solid rgba(247, 245, 240, 0.1);
    color: var(--color-ivory);
    border-radius: var(--border-radius-sm);
    display: flex;
    align-items: center;
    justify-content: center;
    font-size: 1rem;
}

.footer-socials a:hover {
    color: var(--color-black);
    background-color: var(--color-gold);
    border-color: var(--color-gold);
    transform: translateY(-3px);
}

.footer-links-side {
    display: grid;
    grid-template-columns: 1fr 1fr 1.2fr;
    gap: 40px;
}

.footer-link-col h4 {
    font-size: 1rem;
    font-weight: 700;
    margin-bottom: 24px;
    color: var(--color-gold);
}

.footer-link-col ul {
    list-style: none;
    display: flex;
    flex-direction: column;
    gap: 12px;
}

.footer-link-col a {
    font-size: 0.9rem;
    color: var(--color-text-muted);
}

.footer-link-col a:hover {
    color: var(--color-gold);
    padding-inline-start: 4px;
}

.contact-info {
    font-size: 0.85rem;
    color: var(--color-text-muted);
    margin-bottom: 12px;
    display: flex;
    align-items: center;
    gap: 10px;
}

.contact-info i {
    color: var(--color-gold);
    font-size: 0.9rem;
}

.footer-bottom {
    border-top: 1px solid rgba(247, 245, 240, 0.05);
    padding-top: 24px;
    text-align: center;
    font-size: 0.8rem;
    color: var(--color-text-muted);
}

/* ========================================================================
   MEDIA QUERIES FOR RESPONSIVENESS
======================================================================== */

@media (max-width: 1024px) {
    .story-grid {
        grid-template-columns: 1fr;
        gap: 50px;
    }
    
    .story-img {
        height: 380px;
    }
    
    .footer-grid {
        grid-template-columns: 1fr;
        gap: 50px;
    }
    
    .checkout-grid {
        grid-template-columns: 1fr;
        max-height: unset;
    }
    
    .checkout-form-side {
        border-left: none;
        border-right: none;
        border-bottom: 1px solid rgba(247, 245, 240, 0.05);
    }
}

@media (max-width: 768px) {
    .header-container {
        padding: 0 16px;
    }
    
    .brand-name {
        font-size: 1.4rem;
        letter-spacing: 2px;
    }
    
    .nav-links {
        display: none; /* Hide on mobile - slide menu is preferred or just anchor actions */
    }
    
    .hero-title {
        font-size: 2.3rem;
    }
    
    .hero-subtitle {
        font-size: 1rem;
    }
    
    .modal-content-grid {
        grid-template-columns: 1fr;
        padding: 24px;
        gap: 24px;
    }
    
    .modal-gallery-img {
        height: 320px;
    }
    
    .modal-product-title {
        font-size: 1.5rem;
    }
    
    .footer-links-side {
        grid-template-columns: 1fr 1fr;
    }
}

@media (max-width: 480px) {
    .lang-switch-btn span {
        display: none; /* Icon only on extra small screens */
    }
    
    .payment-methods {
        grid-template-columns: 1fr;
    }
    
    .footer-links-side {
        grid-template-columns: 1fr;
        gap: 30px;
    }
    
    .modal-actions-row {
        flex-direction: column;
    }
    
    .modal-actions-row .qty-selector {
        width: 100%;
        justify-content: space-between;
    }
}

/* ========================================================================
   WORDPRESS-STYLE ADMIN DASHBOARD LAYOUT STYLES
======================================================================== */

.admin-body {
    background-color: var(--color-charcoal);
    background-image: none !important; /* Remove texture for clean dashboard layout */
    overflow-y: auto;
}

.admin-wrapper {
    display: grid;
    grid-template-columns: 260px 1fr;
    min-height: 100vh;
}

/* Sidebar Styling */
.admin-sidebar {
    background-color: var(--color-black);
    border-left: 1px solid rgba(229, 168, 35, 0.15);
    display: flex;
    flex-direction: column;
    justify-content: space-between;
    height: 100vh;
    position: sticky;
    top: 0;
    z-index: 100;
}

body[dir="ltr"] .admin-sidebar {
    border-left: none;
    border-right: 1px solid rgba(229, 168, 35, 0.15);
}

.sidebar-brand {
    padding: 24px;
    display: flex;
    align-items: center;
    gap: 12px;
    border-bottom: 1px solid rgba(247, 245, 240, 0.05);
}

.sidebar-brand img {
    height: 38px;
    width: auto;
}

.sidebar-brand h2 {
    font-family: var(--font-en);
    font-size: 1.1rem;
    font-weight: 900;
    color: var(--color-ivory);
    letter-spacing: 1px;
}

.sidebar-brand span {
    font-size: 0.7rem;
    color: var(--color-gold);
    font-weight: 600;
}

/* Sidebar links list */
.sidebar-nav {
    flex-grow: 1;
    padding: 20px 14px;
    display: flex;
    flex-direction: column;
    gap: 6px;
}

.sidebar-link {
    display: flex;
    align-items: center;
    gap: 14px;
    padding: 12px 16px;
    color: var(--color-text-muted);
    font-size: 0.9rem;
    font-weight: 600;
    border-radius: var(--border-radius-sm);
    transition: var(--transition-fast);
}

.sidebar-link i {
    font-size: 1.1rem;
    width: 20px;
    text-align: center;
}

.sidebar-link:hover, .sidebar-link.active {
    color: var(--color-black) !important;
    background-color: var(--color-gold);
}

.sidebar-link.active i, .sidebar-link:hover i {
    color: var(--color-black) !important;
}

.sidebar-badge {
    margin-right: auto;
    background-color: var(--color-red);
    color: var(--color-white);
    font-size: 0.7rem;
    font-weight: 700;
    padding: 2px 8px;
    border-radius: var(--border-radius-full);
}

body[dir="ltr"] .sidebar-badge {
    margin-right: 0;
    margin-left: auto;
}

.sidebar-divider {
    height: 1px;
    background-color: rgba(247, 245, 240, 0.05);
    margin: 16px 0;
}

.view-site-link {
    border: 1px dashed rgba(229, 168, 35, 0.3);
    color: var(--color-gold);
}

.view-site-link:hover {
    background-color: rgba(229, 168, 35, 0.1);
    color: var(--color-gold);
}

.sidebar-footer {
    padding: 16px 24px;
    border-top: 1px solid rgba(247, 245, 240, 0.05);
    font-size: 0.7rem;
    color: var(--color-text-muted);
}

/* Main Area and Header */
.admin-main {
    padding: 40px;
    overflow-y: auto;
}

.admin-header {
    display: flex;
    justify-content: space-between;
    align-items: center;
    border-bottom: 2px solid rgba(229, 168, 35, 0.1);
    padding-bottom: 24px;
    margin-bottom: 32px;
}

.admin-header-title h1 {
    font-size: 1.8rem;
    font-weight: 900;
    margin-bottom: 0;
}

.today-date {
    font-size: 0.85rem;
    color: var(--color-text-muted);
    margin-top: 4px;
    display: block;
}

.admin-header-actions {
    display: flex;
    align-items: center;
    gap: 20px;
}

.admin-lang-btn {
    display: flex;
    align-items: center;
    gap: 8px;
    color: var(--color-ivory);
    font-size: 0.85rem;
    font-weight: 600;
    border: 1px solid rgba(247, 245, 240, 0.1);
    padding: 8px 14px;
    border-radius: var(--border-radius-full);
}

.admin-lang-btn:hover {
    border-color: var(--color-gold);
    color: var(--color-gold);
}

.admin-user-profile {
    display: flex;
    align-items: center;
    gap: 10px;
    font-size: 0.9rem;
    font-weight: 700;
    background-color: var(--color-charcoal-light);
    padding: 8px 16px;
    border-radius: var(--border-radius-sm);
    border: 1px solid rgba(247, 245, 240, 0.05);
}

.admin-user-profile i {
    color: var(--color-gold);
}

/* Admin panels visibility */
.admin-panel {
    display: none;
    animation: fadeIn 0.4s ease-out;
}

.admin-panel.active {
    display: block;
}

/* Metric Widgets Grid */
.metrics-grid {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(220px, 1fr));
    gap: 24px;
    margin-bottom: 32px;
}

.metric-card {
    background-color: var(--color-charcoal-light);
    border: 1px solid rgba(247, 245, 240, 0.05);
    border-radius: var(--border-radius-md);
    padding: 24px;
    display: flex;
    justify-content: space-between;
    align-items: center;
    transition: var(--transition-normal);
}

.metric-card:hover {
    transform: translateY(-4px);
    border-color: rgba(229, 168, 35, 0.2);
}

.metric-info {
    display: flex;
    flex-direction: column;
}

.metric-label {
    font-size: 0.85rem;
    color: var(--color-text-muted);
    font-weight: 700;
    margin-bottom: 8px;
}

.metric-value {
    font-size: 1.5rem;
    font-weight: 900;
    color: var(--color-gold);
    margin-bottom: 8px;
}

.metric-trend {
    font-size: 0.75rem;
    font-weight: 600;
}

.trend-up {
    color: var(--color-success);
}

.metric-icon {
    width: 50px;
    height: 50px;
    border-radius: var(--border-radius-full);
    display: flex;
    align-items: center;
    justify-content: center;
    font-size: 1.4rem;
}

.val-sales-icon { background-color: rgba(16, 185, 129, 0.1); color: var(--color-success); }
.val-orders-icon { background-color: rgba(229, 168, 35, 0.1); color: var(--color-gold); }
.val-avg-icon { background-color: rgba(200, 42, 42, 0.1); color: var(--color-red); }
.val-top-icon { background-color: rgba(163, 112, 76, 0.1); color: var(--color-brown); }

/* Dashboard Row: Boxes */
.admin-dashboard-row {
    display: grid;
    grid-template-columns: 1.3fr 0.7fr;
    gap: 24px;
}

.dashboard-box {
    background-color: var(--color-charcoal-light);
    border-radius: var(--border-radius-md);
    border: 1px solid rgba(247, 245, 240, 0.05);
    overflow: hidden;
}

.box-header {
    padding: 20px 24px;
    border-bottom: 1px solid rgba(247, 245, 240, 0.05);
    display: flex;
    justify-content: space-between;
    align-items: center;
    background-color: var(--color-black);
}

.box-header h3 {
    font-size: 1.05rem;
    font-weight: 700;
    margin-bottom: 0;
}

.box-header h3 i {
    color: var(--color-gold);
    margin-left: 6px;
}

body[dir="ltr"] .box-header h3 i {
    margin-left: 0;
    margin-right: 6px;
}

.box-content {
    padding: 24px;
}

.btn-small {
    padding: 6px 14px;
    font-size: 0.75rem;
}

/* Store quick status list */
.store-status-list {
    list-style: none;
    display: flex;
    flex-direction: column;
    gap: 16px;
}

.store-status-list li {
    display: flex;
    justify-content: space-between;
    font-size: 0.85rem;
    border-bottom: 1px solid rgba(247, 245, 240, 0.03);
    padding-bottom: 12px;
}

.store-status-list li:last-child {
    border-bottom: none;
    padding-bottom: 0;
}

.status-lbl {
    color: var(--color-text-muted);
}

/* Panel Card Wrapper */
.panel-card {
    background-color: var(--color-charcoal-light);
    border: 1px solid rgba(247, 245, 240, 0.05);
    border-radius: var(--border-radius-md);
    overflow: hidden;
    margin-bottom: 24px;
}

.panel-card-header {
    padding: 20px 24px;
    background-color: var(--color-black);
    border-bottom: 1px solid rgba(247, 245, 240, 0.05);
    display: flex;
    justify-content: space-between;
    align-items: center;
    flex-wrap: wrap;
    gap: 16px;
}

.panel-card-header h3 {
    font-size: 1.1rem;
    font-weight: 800;
    margin-bottom: 0;
}

.panel-card-body {
    padding: 24px;
}

/* Orders table filters */
.orders-table-filters {
    display: flex;
    gap: 12px;
    flex-wrap: wrap;
}

.orders-table-filters input, .orders-table-filters select {
    background-color: var(--color-charcoal);
    border: 1px solid rgba(247, 245, 240, 0.1);
    color: var(--color-ivory);
    padding: 8px 16px;
    font-size: 0.85rem;
    border-radius: var(--border-radius-sm);
}

.orders-table-filters input {
    min-width: 250px;
}

/* Tables in Admin */
.table-responsive {
    width: 100%;
    overflow-x: auto;
}

.admin-table {
    width: 100%;
    border-collapse: collapse;
    text-align: right;
}

body[dir="ltr"] .admin-table {
    text-align: left;
}

.admin-table th, .admin-table td {
    padding: 16px;
    border-bottom: 1px solid rgba(247, 245, 240, 0.05);
    font-size: 0.85rem;
}

.admin-table th {
    background-color: var(--color-black);
    font-weight: 700;
    color: var(--color-gold);
    font-size: 0.8rem;
    text-transform: uppercase;
}

.admin-table tr:hover td {
    background-color: rgba(247, 245, 240, 0.02);
}

/* Products Panel Columns */
.products-panel-grid {
    display: grid;
    grid-template-columns: 0.85fr 1.15fr;
    gap: 24px;
    align-items: start;
}

/* Settings subsection */
.settings-subsection-title {
    font-size: 0.95rem;
    font-weight: 800;
    color: var(--color-gold);
    margin: 24px 0 16px 0;
    border-bottom: 1px dashed rgba(229, 168, 35, 0.2);
    padding-bottom: 8px;
}

.settings-subsection-title:first-of-type {
    margin-top: 0;
}

/* Media Queries for Admin Panel Dashboard */
@media (max-width: 1024px) {
    .admin-wrapper {
        grid-template-columns: 1fr;
    }
    
    .admin-sidebar {
        display: none; /* Collapses sidebar in responsive dashboard mode */
    }
    
    .admin-main {
        padding: 24px 16px;
    }
    
    .admin-dashboard-row {
        grid-template-columns: 1fr;
    }
    
    .products-panel-grid {
        grid-template-columns: 1fr;
    }
}

/* Repeating horizontal brand symbol pattern border */
.brand-divider {
    height: 40px;
    background-image: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' width='180' height='40' viewBox='0 0 180 40'%3E%3Cpath d='M10 25 C10 17, 18 17, 18 25 C18 29, 14 29, 14 27 C14 26, 16 26, 16 27' stroke='%23E5A823' stroke-width='2' fill='none' stroke-linecap='round'/%3E%3Cpath d='M32 12 L44 28 M44 12 L32 28' stroke='%230A7E3E' stroke-width='2' stroke-linecap='round'/%3E%3Ccircle cx='38' cy='8' r='2' fill='%230A7E3E'/%3E%3Ccircle cx='38' cy='32' r='2' fill='%230A7E3E'/%3E%3Cpath d='M58 20 L66 12 L74 20 L66 28 Z' stroke='%23C82A2A' stroke-width='2' fill='none' stroke-linejoin='round'/%3E%3Cpath d='M66 16 L70 20 L66 24 M64 19 L68 19' stroke='%23C82A2A' stroke-width='1.5' fill='none'/%3E%3Crect x='88' y='12' width='18' height='16' stroke='%23E5A823' stroke-width='2' fill='none' stroke-linejoin='round'/%3E%3Cpath d='M88 16 L106 16 M88 20 L106 20 M88 24 L106 24' stroke='%23E5A823' stroke-width='1.5'/%3E%3Cpath d='M118 20 L122 15 L126 20 L122 25 Z M126 20 L130 15 L134 20 L130 25 Z' stroke='%23C82A2A' stroke-width='2' fill='none'/%3E%3Cpath d='M146 12 L151 20 L146 28 M151 12 L156 20 L151 28' stroke='%230A7E3E' stroke-width='2' fill='none' stroke-linecap='round' stroke-linejoin='round'/%3E%3Cpath d='M170 12 L165 20 L170 28 M165 12 L160 20 L165 28' stroke='%230A7E3E' stroke-width='2' fill='none' stroke-linecap='round' stroke-linejoin='round'/%3E%3C/svg%3E");
    background-repeat: repeat-x;
    background-size: auto 32px;
    background-position: center;
    width: 100%;
    margin: 40px 0;
    opacity: 0.85;
}

/* Vertical brand motif bar running down the right side */
.vertical-motif-bar {
    position: fixed;
    top: 0;
    right: 0;
    bottom: 0;
    width: 32px;
    z-index: 85;
    background-image: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' width='40' height='180' viewBox='0 0 40 180'%3E%3Cg transform='translate(40, 0) rotate(90)'%3E%3Cpath d='M10 25 C10 17, 18 17, 18 25 C18 29, 14 29, 14 27 C14 26, 16 26, 16 27' stroke='%23E5A823' stroke-width='2' fill='none' stroke-linecap='round'/%3E%3Cpath d='M32 12 L44 28 M44 12 L32 28' stroke='%230A7E3E' stroke-width='2' stroke-linecap='round'/%3E%3Ccircle cx='38' cy='8' r='2' fill='%230A7E3E'/%3E%3Ccircle cx='38' cy='32' r='2' fill='%230A7E3E'/%3E%3Cpath d='M58 20 L66 12 L74 20 L66 28 Z' stroke='%23C82A2A' stroke-width='2' fill='none' stroke-linejoin='round'/%3E%3Cpath d='M66 16 L70 20 L66 24 M64 19 L68 19' stroke='%23C82A2A' stroke-width='1.5' fill='none'/%3E%3Crect x='88' y='12' width='18' height='16' stroke='%23E5A823' stroke-width='2' fill='none' stroke-linejoin='round'/%3E%3Cpath d='M88 16 L106 16 M88 20 L106 20 M88 24 L106 24' stroke='%23E5A823' stroke-width='1.5'/%3E%3Cpath d='M118 20 L122 15 L126 20 L122 25 Z M126 20 L130 15 L134 20 L130 25 Z' stroke='%23C82A2A' stroke-width='2' fill='none'/%3E%3Cpath d='M146 12 L151 20 L146 28 M151 12 L156 20 L151 28' stroke='%230A7E3E' stroke-width='2' fill='none' stroke-linecap='round' stroke-linejoin='round'/%3E%3Cpath d='M170 12 L165 20 L170 28 M165 12 L160 20 L165 28' stroke='%230A7E3E' stroke-width='2' fill='none' stroke-linecap='round' stroke-linejoin='round'/%3E%3C/g%3E%3C/svg%3E");
    background-repeat: repeat-y;
    background-size: 24px auto;
    background-position: center;
    opacity: 0.8;
    pointer-events: none;
    border-left: 1px solid rgba(229, 168, 35, 0.15);
    background-color: var(--color-charcoal);
}

body {
    padding-right: 32px;
}

@media (max-width: 768px) {
    .vertical-motif-bar {
        display: none;
    }
    body {
        padding-right: 0;
    }
}
