/* ======================
   THECOREOG - COMPLETE STYLESHEET
   Version: 3.1 - Optimized for Mobile & Desktop
   ====================== */

@import url('https://fonts.googleapis.com/css2?family=Outfit:wght@300;400;500;700;900&display=swap');

/* ======================
   GLOBAL RESET & BASE
   ====================== */
*,
*::before,
*::after {
   margin: 0;
   padding: 0;
   box-sizing: border-box;
}

:root {
   /* Premium Palette */
   --black: #050505;
   --dark-grey: #0a0a0a;
   --card-bg: #111111;
   --text-main: #ffffff;
   --text-muted: #888888;
   --accent: #ffffff;
   --accent-hover: #e0e0e0;
   --border: #222222;
   --error: #ff3b30;
   --success: #34c759;

   /* Spacing & Layout */
   --nav-height: 80px;
   --container-width: 1400px;

   /* Animation */
   --ease-out: cubic-bezier(0.215, 0.61, 0.355, 1);
   --duration-fast: 0.2s;
   --duration-base: 0.4s;
   --z-index-nav: 2000;
   --z-index-dropdown: 2001;
   --z-index-hamburger: 2002;
   --z-index-overlay: 1000;
}

html {
   scroll-behavior: smooth;
   font-size: 16px;
}

body {
   font-family: 'Outfit', sans-serif;
   background-color: var(--black);
   color: var(--text-main);
   line-height: 1.6;
   overflow-x: hidden;
   -webkit-font-smoothing: antialiased;
   -moz-osx-font-smoothing: grayscale;
}

body.menu-open {
   overflow: hidden !important;
}

img {
   display: block;
   max-width: 100%;
   height: auto;
}

a {
   text-decoration: none;
   color: inherit;
   transition: color var(--duration-fast) ease;
}

ul {
   list-style: none;
}

/* ======================
   BUTTONS & UTILITIES
   ====================== */
.btn,
button,
.hero-btn,
.cta-btn {
   display: inline-flex;
   align-items: center;
   justify-content: center;
   background: var(--accent);
   color: var(--black);
   padding: 1rem 2.5rem;
   font-weight: 700;
   font-size: 0.9rem;
   text-transform: uppercase;
   letter-spacing: 2px;
   border: none;
   cursor: pointer;
   transition: all var(--duration-fast) ease;
   border-radius: 0;
   font-family: inherit;
}

.btn:hover,
button:hover,
.hero-btn:hover,
.cta-btn:hover {
   background: var(--accent-hover);
   transform: translateY(-2px);
   box-shadow: 0 10px 20px rgba(255, 255, 255, 0.1);
}

.btn:active,
button:active {
   transform: translateY(0);
}

.btn:disabled,
button:disabled {
   opacity: 0.5;
   cursor: not-allowed;
   transform: none;
}

.section-title {
   font-size: clamp(2rem, 5vw, 3rem);
   font-weight: 900;
   text-transform: uppercase;
   letter-spacing: -1px;
   margin-bottom: 3rem;
   position: relative;
   display: inline-block;
}

/* Loading State */
.loading {
   text-align: center;
   padding: 4rem;
   color: var(--text-muted);
}

.loading::after {
   content: '...';
   animation: dots 1.5s steps(4, end) infinite;
}

@keyframes dots {

   0%,
   20% {
      content: '.';
   }

   40% {
      content: '..';
   }

   60%,
   100% {
      content: '...';
   }
}

/* ======================
   NAVIGATION
   ====================== */
.core-nav {
   height: var(--nav-height);
   display: flex;
   align-items: center;
   justify-content: space-between;
   padding: 0 5%;
   background: rgba(5, 5, 5, 0.95);
   backdrop-filter: blur(12px);
   -webkit-backdrop-filter: blur(12px);
   position: sticky;
   top: 0;
   z-index: var(--z-index-nav);
   border-bottom: 1px solid var(--border);
}

.brand {
   font-size: 1.5rem;
   font-weight: 900;
   letter-spacing: 2px;
   color: var(--text-main);
   z-index: 2005;
   /* Consistently high for brand and hamburger */
   transition: opacity var(--duration-fast) ease;
}

.brand:hover {
   opacity: 0.8;
}

.nav-right {
   display: flex;
   align-items: center;
   gap: 3rem;
}

.nav-right a {
   font-size: 0.85rem;
   font-weight: 600;
   text-transform: uppercase;
   letter-spacing: 1px;
   color: var(--text-muted);
   position: relative;
}

.nav-right a:hover,
.nav-right a.active {
   color: var(--text-main);
}

.nav-right a::after {
   content: '';
   position: absolute;
   bottom: -5px;
   left: 0;
   width: 0;
   height: 1px;
   background: var(--accent);
   transition: width var(--duration-base) var(--ease-out);
}

.nav-right a:hover::after {
   width: 100%;
}

.nav-right .user {
   color: var(--text-main);
   font-size: 0.85rem;
   font-weight: 600;
   text-transform: uppercase;
   letter-spacing: 1px;
}

/* Dropdown */
.nav-dropdown {
   position: relative;
   cursor: pointer;
}

.nav-dropdown .nav-link {
   display: flex;
   align-items: center;
   gap: 5px;
   font-size: 0.85rem;
   font-weight: 600;
   text-transform: uppercase;
   letter-spacing: 1px;
   color: var(--text-muted);
}

.nav-dropdown .nav-link:hover {
   color: var(--text-main);
}

.nav-dropdown .dropdown-arrow {
   transition: transform 0.3s ease;
   display: inline-block;
}

.nav-dropdown:hover .dropdown-arrow {
   transform: rotate(180deg);
}

.dropdown-menu {
   position: absolute;
   top: 100%;
   left: 50%;
   transform: translateX(-50%) translateY(20px);
   background: var(--card-bg);
   border: 1px solid var(--border);
   min-width: 200px;
   padding: 1rem 0;
   opacity: 0;
   pointer-events: none;
   transition: all var(--duration-base) var(--ease-out);
   box-shadow: 0 20px 40px rgba(0, 0, 0, 0.5);
}

.nav-dropdown:hover .dropdown-menu {
   opacity: 1;
   transform: translateX(-50%) translateY(0);
   pointer-events: all;
}

.dropdown-menu a {
   display: block;
   padding: 0.8rem 2rem;
   color: var(--text-muted);
   transition: all 0.2s;
   white-space: nowrap;
}

.dropdown-menu a:hover {
   background: var(--border);
   color: var(--text-main);
   padding-left: 2.5rem;
}

/* User Dropdown Specific */
.user-dropdown .user-menu {
   color: var(--text-main);
   cursor: pointer;
}

.user-dropdown .dropdown-menu {
   min-width: 180px;
}

/* Mobile Menu Toggle */
.hamburger {
   display: none;
   flex-direction: column;
   gap: 6px;
   cursor: pointer;
   z-index: var(--z-index-hamburger);
   position: relative;
}

.hamburger span {
   width: 30px;
   height: 2px;
   background: var(--text-main);
   transition: transform 0.3s ease, opacity 0.3s ease;
}

.hamburger.open span:nth-child(1) {
   transform: rotate(45deg) translate(8px, 8px);
}

.hamburger.open span:nth-child(2) {
   opacity: 0;
}

.hamburger.open span:nth-child(3) {
   transform: rotate(-45deg) translate(7px, -7px);
}

/* ======================
   HERO / HOME
   ====================== */
.slider {
   position: relative;
   height: calc(100vh - var(--nav-height));
   width: 100%;
   overflow: hidden;
}

.slide {
   position: absolute;
   inset: 0;
   opacity: 0;
   transition: opacity 1s ease-in-out;
   z-index: 1;
}

.slide.active {
   opacity: 1;
   z-index: 2;
}

.slide img {
   width: 100%;
   height: 100%;
   object-fit: cover;
   object-position: center;
   filter: brightness(0.6);
}

/* Hero Section Container */
.hero-section {
   position: relative;
   overflow: hidden;
}

.hero-overlay {
   position: absolute;
   inset: 0;
   z-index: 10;
   /* Lower z-index to stay below mobile nav */
   display: flex;
   align-items: center;
   padding: 0 5%;
   pointer-events: none;
   /* Let clicks pass through to products below if needed */
}

.hero-inner {
   max-width: 800px;
   pointer-events: auto;
   /* Re-enable clicks for buttons inside the hero */
}

.hero-inner h1 {
   font-size: clamp(3rem, 10vw, 8rem);
   line-height: 0.9;
   font-weight: 900;
   text-transform: uppercase;
   margin-bottom: 1.5rem;
   opacity: 0;
   animation: fadeUp 1s ease forwards 0.5s;
}

.hero-inner p {
   font-size: clamp(1rem, 3vw, 1.2rem);
   color: var(--text-muted);
   margin-bottom: 2.5rem;
   max-width: 500px;
   opacity: 0;
   animation: fadeUp 1s ease forwards 0.7s;
}

.hero-inner .hero-btn {
   opacity: 0;
   animation: fadeUp 1s ease forwards 0.9s;
}

@keyframes fadeUp {
   from {
      opacity: 0;
      transform: translateY(30px);
   }

   to {
      opacity: 1;
      transform: translateY(0);
   }
}

/* Brand Line Section */
.brand-line {
   padding: 6rem 5%;
   text-align: center;
   background: var(--dark-grey);
   border-top: 1px solid var(--border);
   border-bottom: 1px solid var(--border);
}

.brand-line p {
   font-size: clamp(1.5rem, 4vw, 2.5rem);
   font-weight: 700;
   line-height: 1.4;
   color: var(--text-main);
}

/* ======================
   FEATURED PRODUCTS (Homepage)
   ====================== */
.featured {
   padding: 6rem 5%;
}

.product-grid {
   display: grid;
   grid-template-columns: repeat(auto-fill, minmax(300px, 1fr));
   gap: 3rem 2rem;
}

.product-card {
   position: relative;
   display: block;
   transition: transform 0.3s ease;
}

.product-card:hover {
   transform: translateY(-5px);
}

.card-image-wrap {
   overflow: hidden;
   margin-bottom: 1.5rem;
   background: transparent;
   position: relative;
   width: 100%;
}

.product-card img {
   width: 100%;
   height: auto;
   object-fit: contain;
   transition: transform 0.6s var(--ease-out);
}

.product-card:hover img {
   transform: scale(1.05);
}

.product-info {
   display: flex;
   justify-content: space-between;
   align-items: flex-start;
   gap: 1rem;
}

.product-name {
   font-weight: 600;
   font-size: 1.1rem;
   color: var(--text-main);
   display: block;
   flex: 1;
}

.product-price {
   font-weight: 700;
   font-size: 1.1rem;
   color: var(--text-main);
   white-space: nowrap;
}

/* ======================
   SHOP PAGE - ENHANCED
   ====================== */
.shop {
   padding: 4rem 5%;
   max-width: var(--container-width);
   margin: 0 auto;
   min-height: 70vh;
}

.shop-header {
   margin-bottom: 3rem;
   text-align: center;
   padding-bottom: 2rem;
   border-bottom: 1px solid var(--border);
}

.shop-title {
   font-size: clamp(3rem, 8vw, 5rem);
   font-weight: 900;
   text-transform: uppercase;
   letter-spacing: -2px;
   margin-bottom: 1rem;
   background: linear-gradient(135deg, var(--text-main) 0%, var(--text-muted) 100%);
   -webkit-background-clip: text;
   -webkit-text-fill-color: transparent;
   background-clip: text;
}

.shop-subtitle {
   font-size: 1.1rem;
   color: var(--text-muted);
   max-width: 700px;
   margin: 0 auto;
   line-height: 1.7;
}

/* Shop Controls */
.shop-controls {
   display: flex;
   justify-content: space-between;
   align-items: center;
   margin-bottom: 3rem;
   padding: 1.5rem;
   background: var(--card-bg);
   border: 1px solid var(--border);
   flex-wrap: wrap;
   gap: 1.5rem;
}

.filter-group {
   display: flex;
   align-items: center;
   gap: 1rem;
   flex-wrap: wrap;
}

.filter-label {
   font-size: 0.85rem;
   font-weight: 600;
   text-transform: uppercase;
   letter-spacing: 1px;
   color: var(--text-muted);
}

.shop-select {
   padding: 0.8rem 1.5rem;
   background: var(--dark-grey);
   border: 1px solid var(--border);
   color: var(--text-main);
   font-family: inherit;
   font-size: 0.9rem;
   font-weight: 600;
   cursor: pointer;
   transition: all 0.3s;
   min-width: 200px;
   margin-bottom: 0;
}

.shop-select:hover {
   border-color: var(--text-main);
}

.shop-select:focus {
   outline: none;
   border-color: var(--accent);
}

.product-count {
   font-size: 0.9rem;
   color: var(--text-muted);
   font-weight: 600;
}

.product-count span {
   padding: 0.5rem 1rem;
   background: var(--dark-grey);
   border: 1px solid var(--border);
}

/* Shop Grid */
.shop-grid {
   display: grid;
   grid-template-columns: repeat(auto-fill, minmax(300px, 1fr));
   gap: 2.5rem;
   margin-bottom: 4rem;
   align-items: start;
}

.shop-card {
   position: relative;
   display: block;
   height: max-content;
   background: transparent;
   border: none;
   transition: all 0.4s var(--ease-out);
   overflow: hidden;
   animation: fadeInUp 0.6s ease backwards;
}

.shop-card:hover {
   transform: translateY(-8px);
}

.shop-card-image {
   position: relative;
   border-radius: 12px;
   overflow: hidden;
   width: 100%;
   flex-shrink: 0;
}

.out-of-stock-badge {
   position: absolute;
   top: 15px;
   right: 15px;
   background: #ff4d4d;
   color: white;
   padding: 0.5rem 1rem;
   font-size: 0.8rem;
   font-weight: 800;
   border-radius: 4px;
   z-index: 10;
   box-shadow: 0 4px 12px rgba(255, 77, 77, 0.4);
   letter-spacing: 1px;
}

.cta-btn:disabled,
.btn-cancel:disabled {
   opacity: 0.5;
   cursor: not-allowed;
   filter: grayscale(1);
}

.shop-card-image img {
   width: 100%;
   height: auto;
   object-fit: contain;
   transition: transform 0.6s var(--ease-out);
   display: block;
}

.shop-card:hover .shop-card-image img {
   transform: scale(1.08);
}

.shop-card-overlay {
   position: absolute;
   inset: 0;
   background: rgba(0, 0, 0, 0.8);
   display: flex;
   align-items: center;
   justify-content: center;
   opacity: 0;
   transition: opacity 0.4s ease;
}

.shop-card:hover .shop-card-overlay {
   opacity: 1;
}

.view-product {
   color: var(--text-main);
   font-size: 0.9rem;
   font-weight: 700;
   text-transform: uppercase;
   letter-spacing: 2px;
   padding: 1rem 2rem;
   border: 2px solid var(--text-main);
   transition: all 0.3s;
}

.shop-card:hover .view-product {
   background: var(--text-main);
   color: var(--black);
}

.shop-info {
   padding: 1rem 0;
   display: flex;
   justify-content: space-between;
   align-items: flex-start;
   gap: 1rem;
   background: transparent;
}

.shop-name {
   font-weight: 600;
   font-size: 1.05rem;
   color: var(--text-main);
   flex: 1;
   line-height: 1.4;
   text-transform: uppercase;
   letter-spacing: 0.5px;
}

.shop-price {
   font-weight: 800;
   font-size: 1.2rem;
   color: var(--text-main);
   white-space: nowrap;
   letter-spacing: 0.5px;
}

/* Staggered Animation */
.shop-card:nth-child(1) {
   animation-delay: 0.1s;
}

.shop-card:nth-child(2) {
   animation-delay: 0.15s;
}

.shop-card:nth-child(3) {
   animation-delay: 0.2s;
}

.shop-card:nth-child(4) {
   animation-delay: 0.25s;
}

.shop-card:nth-child(5) {
   animation-delay: 0.3s;
}

.shop-card:nth-child(6) {
   animation-delay: 0.35s;
}

@keyframes fadeInUp {
   from {
      opacity: 0;
      transform: translateY(30px);
   }

   to {
      opacity: 1;
      transform: translateY(0);
   }
}

/* Empty State */
.empty-state {
   grid-column: 1 / -1;
   text-align: center;
   padding: 6rem 2rem;
   background: var(--card-bg);
   border: 1px solid var(--border);
}

.empty-state h3 {
   font-size: 2rem;
   font-weight: 900;
   text-transform: uppercase;
   margin-bottom: 1rem;
   color: var(--text-main);
}

.empty-state p {
   font-size: 1.1rem;
   color: var(--text-muted);
   margin-bottom: 2rem;
   max-width: 500px;
   margin-left: auto;
   margin-right: auto;
}

/* ======================
   PRODUCT PAGE
   ====================== */
.product-wrap {
   display: grid;
   grid-template-columns: 1.5fr 1fr;
   gap: 4rem;
   padding: 4rem 5%;
   max-width: var(--container-width);
   margin: 0 auto;
}

.product-media {
   position: sticky;
   top: 100px;
   height: fit-content;
}

.product-main-img {
   width: 100%;
   cursor: crosshair;
   aspect-ratio: 1 / 1;
   object-fit: contain;
   background: var(--card-bg);
   padding: 20px;
}

.product-thumbs {
   display: grid;
   grid-template-columns: repeat(4, 1fr);
   gap: 1rem;
   margin-top: 1rem;
}

.product-thumbs img {
   aspect-ratio: 1/1;
   object-fit: cover;
   cursor: pointer;
   opacity: 0.5;
   transition: opacity 0.3s;
   border: 1px solid transparent;
}

.product-thumbs img:hover,
.product-thumbs img.active {
   opacity: 1;
   border-color: var(--accent);
}

.product-details {
   padding-top: 1rem;
}

.product-title {
   font-size: clamp(2rem, 5vw, 3rem);
   font-weight: 900;
   line-height: 1.1;
   margin-bottom: 1rem;
   text-transform: uppercase;
}

.product-price-large,
.product-details .product-price {
   font-size: 1.5rem;
   color: var(--text-muted);
   margin-bottom: 2rem;
   display: block;
   font-weight: 700;
}

.product-desc {
   color: var(--text-muted);
   margin-bottom: 3rem;
   max-width: 90%;
   line-height: 1.8;
   font-size: 1rem;
}

.product-block {
   margin-bottom: 2.5rem;
}

.option-label,
.label {
   display: block;
   font-size: 0.8rem;
   text-transform: uppercase;
   letter-spacing: 1.5px;
   margin-bottom: 1rem;
   color: var(--text-muted);
   font-weight: 600;
}

.size-row {
   display: flex;
   gap: 1rem;
   flex-wrap: wrap;
   margin-bottom: 1.5rem;
}

.size-row button {
   width: 50px;
   height: 50px;
   display: flex;
   align-items: center;
   justify-content: center;
   border: 1px solid var(--border);
   background: transparent;
   color: var(--text-main);
   cursor: pointer;
   font-weight: 600;
   transition: all 0.2s;
   font-size: 0.9rem;
}

.size-row button:hover {
   border-color: var(--text-main);
}

.size-row button.active {
   background: var(--text-main);
   color: var(--black);
   border-color: var(--text-main);
}

.qty-row {
   display: flex;
   align-items: center;
   border: 1px solid var(--border);
   width: fit-content;
   margin-bottom: 2rem;
}

.qty-row button {
   width: 50px;
   height: 50px;
   background: transparent;
   border: none;
   color: var(--text-main);
   cursor: pointer;
   font-size: 1.2rem;
   padding: 0;
   transition: background 0.2s;
}

.qty-row button:hover {
   background: var(--border);
}

.qty-row button:first-child {
   border-right: 1px solid var(--border);
}

.qty-row button:last-child {
   border-left: 1px solid var(--border);
}

.qty-row input {
   width: 60px;
   height: 50px;
   border: none;
   background: transparent;
   text-align: center;
   color: var(--text-main);
   margin: 0;
   padding: 0;
   font-size: 1.1rem;
   font-weight: 700;
}

.qty-row input::-webkit-outer-spin-button,
.qty-row input::-webkit-inner-spin-button {
   -webkit-appearance: none;
   appearance: none;
   margin: 0;
}

.qty-row input[type=number] {
   -moz-appearance: textfield;
   appearance: textfield;
}

/* ======================
   FORMS
   ====================== */
input,
select,
textarea {
   width: 100%;
   padding: 1rem;
   background: var(--dark-grey);
   border: 1px solid var(--border);
   color: var(--text-main);
   font-family: inherit;
   font-size: 1rem;
   margin-bottom: 1.5rem;
   transition: border-color 0.3s;
}

input:focus,
select:focus,
textarea:focus {
   outline: none;
   border-color: var(--text-main);
}

input::placeholder,
textarea::placeholder {
   color: var(--text-muted);
   opacity: 0.6;
}

label {
   display: block;
   margin-bottom: 0.5rem;
   text-transform: uppercase;
   font-size: 0.8rem;
   letter-spacing: 1px;
   color: var(--text-muted);
   font-weight: 600;
}

/* ======================
   CART & TABLES
   ====================== */
.cart {
   padding: 4rem 5%;
   max-width: 1200px;
   margin: 0 auto;
   min-height: 60vh;
}

.cart h1 {
   font-size: clamp(2.5rem, 6vw, 4rem);
   font-weight: 900;
   text-transform: uppercase;
   margin-bottom: 3rem;
}

.cart-table,
.admin-table {
   width: 100%;
   border-collapse: collapse;
   margin-bottom: 2rem;
   overflow-x: auto;
   display: block;
}

@media (min-width: 769px) {

   .cart-table,
   .admin-table {
      display: table;
   }
}

.cart-table th,
.admin-table th {
   text-align: left;
   padding: 1rem;
   border-bottom: 1px solid var(--border);
   text-transform: uppercase;
   font-size: 0.85rem;
   color: var(--text-muted);
   font-weight: 700;
   white-space: nowrap;
}

.cart-table td,
.admin-table td {
   padding: 1.5rem 1rem;
   border-bottom: 1px solid var(--border);
   vertical-align: middle;
}

.cart-total {
   font-size: 2rem;
   font-weight: 900;
   text-align: right;
   margin-bottom: 2rem;
   padding: 1.5rem 0;
   border-top: 2px solid var(--border);
}

/* ======================
    LOGIN / REGISTER / AUTH
    ====================== */
.login,
.login-container {
   display: flex;
   min-height: calc(100vh - var(--nav-height));
   background-color: var(--black);
}

/* Split Screen Layout */
.login-left,
.login-brand-side {
   flex: 1;
   background: linear-gradient(135deg, var(--card-bg) 0%, var(--black) 100%);
   display: flex;
   flex-direction: column;
   justify-content: center;
   padding: 5rem;
   border-right: 1px solid var(--border);
   position: relative;
   overflow: hidden;
}

.login-left::before,
.login-brand-side::before {
   content: '';
   position: absolute;
   top: -50%;
   left: -50%;
   width: 200%;
   height: 200%;
   background: radial-gradient(circle, rgba(255, 255, 255, 0.03) 0%, transparent 70%);
   pointer-events: none;
}

.login-left h1,
.login-brand-side h1 {
   font-size: clamp(3rem, 5vw, 6rem);
   font-weight: 900;
   line-height: 0.9;
   margin-bottom: 2rem;
   letter-spacing: -2px;
   text-transform: uppercase;
}

.login-left p,
.login-brand-side p {
   font-size: 1.2rem;
   color: var(--text-muted);
   max-width: 450px;
   line-height: 1.6;
}

.login-right,
.login-form-side {
   flex: 1;
   display: flex;
   align-items: center;
   justify-content: center;
   padding: 4rem 2rem;
   background: var(--black);
}

.login-box {
   width: 100%;
   max-width: 440px;
   animation: fadeInAuth 0.8s var(--ease-out);
}

@keyframes fadeInAuth {
   from {
      opacity: 0;
      transform: translateY(20px);
   }

   to {
      opacity: 1;
      transform: translateY(0);
   }
}

.login-box h2 {
   font-size: 2.5rem;
   font-weight: 900;
   margin-bottom: 0.75rem;
   text-transform: uppercase;
   letter-spacing: -1px;
}

.login-subtitle,
.login-box .sub {
   display: block;
   font-size: 1rem;
   color: var(--text-muted);
   margin-bottom: 3rem;
   font-weight: 500;
}

/* Form Elements Refinement */
.standard-form .form-group {
   margin-bottom: 1.5rem;
}

.password-input-wrapper,
.password-field {
   position: relative;
   width: 100%;
}

.btn-toggle-pw,
.toggle {
   position: absolute;
   right: 1rem;
   top: 35%;
   transform: translateY(-50%);
   background: transparent;
   border: none;
   color: var(--text-muted);
   font-size: 1.1rem;
   cursor: pointer;
   z-index: 10;
   padding: 0.5rem;
   transition: color 0.3s;
   width: auto;
   height: auto;
   margin-bottom: 0;
}

.btn-toggle-pw:hover,
.toggle:hover {
   color: var(--text-main);
}

.form-feedback {
   padding: 1rem;
   margin-bottom: 2rem;
   font-size: 0.9rem;
   font-weight: 600;
   text-align: center;
   border: 1px solid transparent;
}

.form-feedback.error,
.error {
   background: rgba(255, 59, 48, 0.1);
   color: var(--error);
   border-color: rgba(255, 59, 48, 0.2);
}

.form-feedback.success {
   background: rgba(52, 199, 89, 0.1);
   color: var(--success);
   border-color: rgba(52, 199, 89, 0.2);
}

.login-footer,
.alt {
   margin-top: 2.5rem;
   text-align: center;
   color: var(--text-muted);
   font-size: 0.95rem;
}

.login-footer a,
.alt a {
   color: var(--text-main);
   font-weight: 700;
   margin-left: 0.5rem;
   text-transform: uppercase;
   letter-spacing: 1px;
   border-bottom: 1px solid var(--border);
   transition: all 0.3s;
}

.login-footer a:hover,
.alt a:hover {
   border-color: var(--text-main);
   color: var(--accent);
}

.forgot-password-link {
   margin-top: -0.5rem;
   margin-bottom: 1.5rem;
   text-align: right;
}

.forgot-password-link a {
   color: var(--text-muted);
   font-size: 0.85rem;
   font-weight: 500;
}

@media (max-width: 992px) {

   .login-left,
   .login-brand-side {
      padding: 3rem;
   }
}

@media (max-width: 768px) {

   .login,
   .login-container {
      flex-direction: column;
   }

   .login-left,
   .login-brand-side {
      display: none;
   }

   .login-right,
   .login-form-side {
      padding: 4rem 1.5rem;
   }

   .login-box h2 {
      font-size: 2rem;
   }
}

/* ======================
   ADMIN
   ====================== */
.admin {
   padding: 4rem 5%;
   max-width: 1400px;
   margin: 0 auto;
}

.admin-header {
   display: flex;
   justify-content: space-between;
   align-items: center;
   margin-bottom: 3rem;
   flex-wrap: wrap;
   gap: 1rem;
}

.admin-header h1,
.admin-header h2 {
   font-size: clamp(2rem, 5vw, 3rem);
   font-weight: 900;
   text-transform: uppercase;
}

.admin-btn {
   background: var(--accent);
   color: var(--black);
   padding: 0.8rem 2rem;
   font-weight: 700;
   font-size: 0.85rem;
   text-transform: uppercase;
   letter-spacing: 1.5px;
   border: none;
   cursor: pointer;
   transition: all 0.2s ease;
}

.admin-btn:hover {
   background: var(--accent-hover);
   transform: translateY(-2px);
}

.stock-grid {
   display: grid;
   grid-template-columns: repeat(auto-fit, minmax(150px, 1fr));
   gap: 1rem;
   margin-bottom: 2rem;
}

.slider-admin-grid {
   display: grid;
   grid-template-columns: repeat(auto-fill, minmax(300px, 1fr));
   gap: 2rem;
   margin-top: 2rem;
}

.slide-card {
   background: var(--card-bg);
   border: 1px solid var(--border);
   overflow: hidden;
}

.slide-card img {
   width: 100%;
   aspect-ratio: 16/9;
   object-fit: cover;
}

/* Status Colors */
.status-select {
   padding: 0.4rem 0.8rem;
   font-weight: 700;
   text-transform: uppercase;
   font-size: 0.75rem;
   border: none;
   border-radius: 4px;
   cursor: pointer;
   color: #fff;
   width: 100%;
   text-align: center;
   appearance: none;
   -webkit-appearance: none;
}

.status-pending {
   background: #ffcc00;
   color: #000;
}

.status-processing {
   background: #007aff;
   color: #fff;
}

.status-shipped {
   background: #af52de;
   color: #fff;
}

.status-delivered {
   background: #34c759;
   color: #fff;
}

.status-completed {
   background: #206935;
   color: #fff;
}

.status-cancelled {
   background: #ff3b30;
   color: #fff;
}

.status.on {
   background: rgba(52, 199, 89, 0.2);
   color: var(--success);
}

.status.off {
   background: rgba(136, 136, 136, 0.2);
   color: var(--text-muted);
}

/* ======================
    PROFILE PAGE
    ====================== */
.profile-container {
   max-width: var(--container-width);
   margin: 4rem auto;
   padding: 0 5%;
   min-height: 70vh;
}

.profile-header {
   margin-bottom: 4rem;
   text-align: center;
}

.profile-header h1 {
   font-size: clamp(2.5rem, 8vw, 4rem);
   font-weight: 900;
   text-transform: uppercase;
   letter-spacing: -1px;
   margin-bottom: 1rem;
}

.profile-content {
   display: grid;
   grid-template-columns: 1fr 2fr;
   gap: 3rem;
   align-items: start;
}

.profile-card {
   background: var(--card-bg);
   border: 1px solid var(--border);
   padding: 2.5rem;
   border-radius: 0;
   transition: transform var(--duration-fast) var(--ease-out), border-color var(--duration-fast) ease;
}

.profile-card:hover {
   border-color: var(--text-muted);
}

.profile-card h2 {
   font-size: 1.5rem;
   font-weight: 800;
   text-transform: uppercase;
   margin-bottom: 2rem;
   padding-bottom: 1rem;
   border-bottom: 1px solid var(--border);
   letter-spacing: 1px;
}

.info-row {
   display: flex;
   justify-content: space-between;
   padding: 1.2rem 0;
   border-bottom: 1px solid rgba(255, 255, 255, 0.05);
}

.info-row:last-child {
   border-bottom: none;
}

.info-label {
   color: var(--text-muted);
   font-weight: 600;
   font-size: 0.9rem;
   text-transform: uppercase;
   letter-spacing: 0.5px;
}

.info-value {
   color: var(--text-main);
   font-weight: 700;
}

.profile-actions {
   display: flex;
   gap: 1rem;
   margin-top: 2rem;
   flex-wrap: wrap;
}

.profile-actions .btn {
   flex: 1;
   min-width: 150px;
   font-size: 0.8rem;
   padding: 0.8rem 1.5rem;
}

.btn-secondary {
   background: transparent;
   border: 1px solid var(--border);
   color: var(--text-main);
}

.btn-secondary:hover {
   background: var(--border);
}

.orders-table-wrapper {
   overflow-x: auto;
   border: 1px solid var(--border);
   background: var(--card-bg);
}

.orders-table {
   width: 100%;
   border-collapse: collapse;
}

.orders-table th {
   text-align: left;
   padding: 1.2rem;
   background: var(--dark-grey);
   color: var(--text-muted);
   font-size: 0.8rem;
   text-transform: uppercase;
   letter-spacing: 1px;
   border-bottom: 2px solid var(--border);
}

.orders-table td {
   padding: 1.2rem;
   border-bottom: 1px solid var(--border);
   font-size: 0.9rem;
}

.order-items-summary {
   max-width: 250px;
   color: var(--text-muted);
   font-size: 0.85rem;
   line-height: 1.4;
}

.status-badge {
   display: inline-block;
   padding: 0.4rem 1rem;
   font-size: 0.75rem;
   font-weight: 800;
   text-transform: uppercase;
   letter-spacing: 1px;
   border-radius: 50px;
}

.status-pending {
   background: rgba(255, 165, 0, 0.1);
   color: orange;
   border: 1px solid rgba(255, 165, 0, 0.2);
}

.status-processing {
   background: rgba(0, 122, 255, 0.1);
   color: #007aff;
   border: 1px solid rgba(0, 122, 255, 0.2);
}

.status-shipped {
   background: rgba(175, 82, 222, 0.1);
   color: #af52de;
   border: 1px solid rgba(175, 82, 222, 0.2);
}

.status-delivered,
.status-completed {
   background: rgba(52, 199, 89, 0.1);
   color: var(--success);
   border: 1px solid rgba(52, 199, 89, 0.2);
}

.status-cancelled {
   background: rgba(255, 59, 48, 0.1);
   color: var(--error);
   border: 1px solid rgba(255, 59, 48, 0.2);
}

.btn-cancel {
   color: var(--error);
   font-weight: 700;
   font-size: 0.8rem;
   text-transform: uppercase;
   transition: opacity 0.2s;
}

.btn-cancel:hover {
   opacity: 0.7;
   text-decoration: underline;
}

.action-locked {
   color: var(--text-muted);
   font-style: italic;
   font-size: 0.8rem;
}

/* Mobile Order Cards - Hidden by default */
.mobile-order-card {
   display: none;
   background: var(--card-bg);
   border: 1px solid var(--border);
   padding: 1.5rem;
   margin-bottom: 1.5rem;
}

.mobile-order-header {
   display: flex;
   justify-content: space-between;
   align-items: center;
   margin-bottom: 1rem;
   padding-bottom: 0.8rem;
   border-bottom: 1px solid var(--border);
}

.mobile-order-id {
   font-weight: 800;
   font-size: 1.1rem;
}

.mobile-order-date {
   color: var(--text-muted);
   font-size: 0.85rem;
}

.mobile-order-body p {
   margin-bottom: 0.5rem;
   font-size: 0.9rem;
}

.mobile-order-footer {
   display: flex;
   justify-content: space-between;
   align-items: center;
   margin-top: 1rem;
   padding-top: 1rem;
   border-top: 1px solid var(--border);
}

@media (max-width: 992px) {
   .profile-content {
      grid-template-columns: 1fr;
   }
}

@media (max-width: 768px) {
   .profile-container {
      margin: 2rem auto;
   }

   .orders-table-wrapper {
      display: none;
      /* Hide table on mobile */
   }

   .mobile-order-card {
      display: block;
      /* Show cards on mobile */
   }

   .profile-card {
      padding: 1.5rem;
   }
}

.auth-card-container {
   max-width: 600px;
   margin: 4rem auto;
   padding: 0 5%;
}

.auth-card {
   background: var(--card-bg);
   border: 1px solid var(--border);
   padding: 3rem;
}

.back-link {
   display: inline-block;
   margin-bottom: 2rem;
   color: var(--text-muted);
   font-weight: 600;
   text-transform: uppercase;
   font-size: 0.8rem;
   letter-spacing: 1px;
   transition: color 0.3s;
}

.back-link:hover {
   color: var(--text-main);
}

@media (max-width: 768px) {
   .auth-card {
      padding: 2rem 1.5rem;
   }
}

/* ======================
    FOOTER
    ====================== */
.footer {
   background: var(--black);
   border-top: 1px solid var(--border);
   padding: 6rem 5% 3rem;
   margin-top: 8rem;
   position: relative;
}

.footer::before {
   content: '';
   position: absolute;
   top: -1px;
   left: 10%;
   right: 10%;
   height: 1px;
   background: linear-gradient(90deg, transparent, var(--border), transparent);
}

.footer-content {
   max-width: var(--container-width);
   margin: 0 auto;
   display: grid;
   grid-template-columns: 1.5fr repeat(4, 1fr);
   gap: 4rem;
   margin-bottom: 5rem;
}

.footer-logo {
   font-size: 1.8rem;
   font-weight: 900;
   letter-spacing: 2px;
   margin-bottom: 1.5rem;
   display: inline-block;
}

.footer-brand p {
   color: var(--text-muted);
   font-size: 0.95rem;
   line-height: 1.6;
   margin-bottom: 2.5rem;
}

/* Newsletter */
.footer-newsletter h4 {
   font-size: 0.9rem;
   font-weight: 800;
   text-transform: uppercase;
   letter-spacing: 1px;
   margin-bottom: 1.2rem;
}

.newsletter-form {
   display: flex;
   max-width: 320px;
   background: var(--card-bg);
   border: 1px solid var(--border);
   padding: 2px;
   transition: border-color 0.3s;
}

.newsletter-form:focus-within {
   border-color: var(--text-muted);
}

.newsletter-form input {
   background: transparent;
   border: none;
   padding: 0.8rem 1rem;
   color: var(--text-main);
   font-family: inherit;
   font-size: 0.85rem;
   letter-spacing: 1px;
   flex: 1;
   width: 100%;
}

.newsletter-form input:focus {
   outline: none;
}

.newsletter-form button {
   background: var(--accent);
   color: var(--black);
   padding: 0 1.5rem;
   font-size: 0.75rem;
   font-weight: 800;
   border: none;
   cursor: pointer;
   transition: all 0.2s;
}

.newsletter-form button:hover {
   background: var(--text-main);
   transform: none;
   /* Override global btn hover */
   box-shadow: none;
}

.footer-section h4 {
   font-size: 0.9rem;
   font-weight: 800;
   text-transform: uppercase;
   letter-spacing: 1.5px;
   margin-bottom: 2rem;
   color: var(--text-main);
}

.footer-links {
   display: flex;
   flex-direction: column;
   gap: 1.2rem;
}

.footer-links a {
   color: var(--text-muted);
   font-size: 0.9rem;
   font-weight: 500;
   transition: all 0.3s var(--ease-out);
   width: fit-content;
   position: relative;
}

.footer-links a::after {
   content: '';
   position: absolute;
   bottom: -2px;
   left: 0;
   width: 0;
   height: 1px;
   background: var(--accent);
   transition: width 0.3s var(--ease-out);
}

.footer-links a:hover {
   color: var(--text-main);
   transform: translateX(5px);
}

.footer-links a:hover::after {
   width: 100%;
}

.footer-social {
   display: flex;
   gap: 1rem;
}

.social-link {
   width: 44px;
   height: 44px;
   display: flex;
   align-items: center;
   justify-content: center;
   background: var(--card-bg);
   border: 1px solid var(--border);
   color: var(--text-muted);
   font-size: 1.1rem;
   transition: all 0.4s var(--ease-out);
}

.social-link:hover {
   background: var(--text-main);
   color: var(--black);
   border-color: var(--text-main);
   transform: translateY(-5px) rotate(8deg);
}

.footer-bottom {
   max-width: var(--container-width);
   margin: 0 auto;
   padding-top: 2rem;
   border-top: 1px solid var(--border);
   display: flex;
   justify-content: center;
   align-items: center;
}

.footer-copyright {
   color: var(--text-muted);
   font-size: 0.8rem;
   letter-spacing: 1px;
   text-transform: uppercase;
   font-weight: 600;
}

/* Mobile Optimized Footer */
@media (max-width: 1024px) {
   .footer-content {
      grid-template-columns: repeat(2, 1fr);
      gap: 3rem;
   }
}

@media (max-width: 768px) {
   .footer {
      padding: 4rem 5% 2rem;
   }

   .footer-content {
      grid-template-columns: repeat(2, 1fr);
      text-align: center;
      gap: 3.5rem 1rem;
   }

   .footer-brand {
      grid-column: 1 / -1;
      text-align: center;
      margin-bottom: 0.5rem;
   }

   .footer-section:nth-child(4) {
      /* Connect section */
      grid-column: 1 / -1;
   }

   .newsletter-form {
      margin: 0 auto;
   }

   .footer-links {
      align-items: center;
      /* Center links horizontally */
   }

   .footer-links a:hover {
      transform: translateY(-3px);
      /* Prefer vertical float on centered mobile */
   }

   .footer-social {
      justify-content: center;
      grid-column: 1 / -1;
      margin-top: 1rem;
   }
}

@media (max-width: 480px) {
   .footer {
      padding: 3.5rem 5% 2rem;
   }

   .footer-content {
      gap: 2.5rem 1rem;
   }

   .footer-brand p {
      font-size: 0.9rem;
      margin-bottom: 2rem;
   }

   .footer-section h4 {
      font-size: 0.8rem;
      margin-bottom: 1.2rem;
   }

   .footer-links {
      gap: 0.8rem;
   }

   .footer-links a {
      font-size: 0.85rem;
   }
}

/* ======================
   RESPONSIVE - OPTIMIZED
   ====================== */

/* Tablets (1024px and below) */
@media (max-width: 1024px) {
   :root {
      --nav-height: 70px;
   }

   .product-wrap {
      grid-template-columns: 1fr;
      gap: 3rem;
   }

   .product-media {
      position: static;
   }

   .shop-grid,
   .product-grid {
      grid-template-columns: repeat(auto-fill, minmax(280px, 1fr));
      gap: 2rem;
   }

   .shop-card-image {
      height: 245px;
   }

   .shop-controls {
      flex-direction: column;
      align-items: stretch;
   }

   .filter-group {
      width: 100%;
      justify-content: space-between;
   }

   .shop-select {
      min-width: 150px;
      flex: 1;
   }
}

/* Mobile (768px and below) - PREMIUM REDESIGN */
@media (max-width: 768px) {
   :root {
      --nav-height: 65px;
   }

   /* ===== MOBILE NAVIGATION FIXES ===== */
   .core-nav {
      background: #050505;
      /* Solid background on mobile to avoid stacking context traps */
      backdrop-filter: none !important;
      -webkit-backdrop-filter: none !important;
   }

   .hamburger {
      display: flex !important;
      padding: 8px;
      margin-right: -8px;
      z-index: 2005;
      /* Ensure hamburger is always on top */
   }

   .hamburger span {
      width: 26px;
      height: 2.5px;
      background: var(--text-main);
      border-radius: 2px;
   }

   .brand {
      font-size: 1.3rem;
      letter-spacing: 1.5px;
   }

   /* ===== MOBILE MENU OVERLAY - PREMIUM ===== */
   .nav-right {
      position: fixed;
      inset: 0;
      top: 0;
      /* Cover the whole screen including navbar area */
      height: 100vh;
      width: 100vw;
      background: #050505;
      /* Opaque background */
      flex-direction: column;
      justify-content: center;
      /* Center items vertically */
      align-items: center;
      gap: 1rem;
      padding: 2rem;
      transform: translateX(100%);
      transition: transform 0.4s cubic-bezier(0.4, 0, 0.2, 1);
      z-index: 2000;
      overflow-y: auto;
      visibility: hidden;
      /* Hide when closed to prevent interaction */
   }

   .nav-right.open {
      transform: translateX(0);
      visibility: visible;
   }

   /* ===== MENU LINKS - MODERN STYLE ===== */
   .nav-right a {
      font-size: 1.05rem;
      font-weight: 600;
      text-align: center;
      width: 100%;
      max-width: 320px;
      padding: 0.9rem 1.5rem;
      color: #ffffff;
      background: rgba(255, 255, 255, 0.03);
      border: 1px solid rgba(255, 255, 255, 0.08);
      border-radius: 8px;
      transition: all 0.25s ease;
      letter-spacing: 0.5px;
   }

   .nav-right a:hover,
   .nav-right a:active {
      background: rgba(255, 255, 255, 0.08);
      border-color: rgba(255, 255, 255, 0.15);
      transform: translateY(-2px);
   }

   .nav-right a::after {
      display: none;
   }

   /* ===== USER BADGE - PREMIUM STYLE ===== */
   .nav-right .user {
      font-size: 0.9rem;
      font-weight: 700;
      text-align: center;
      padding: 0.85rem 1.8rem;
      background: linear-gradient(135deg, #1a1a1a 0%, #0f0f0f 100%);
      border: 1px solid rgba(255, 255, 255, 0.12);
      border-radius: 8px;
      width: auto;
      max-width: 320px;
      margin: 0.75rem 0;
      box-shadow: 0 4px 12px rgba(0, 0, 0, 0.3);
      letter-spacing: 1px;
   }

   /* ===== DROPDOWN - SLEEK DESIGN ===== */
   .nav-dropdown {
      width: 100%;
      max-width: 320px;
   }

   .nav-dropdown .nav-link {
      font-size: 1.05rem;
      justify-content: center;
      font-weight: 600;
      padding: 0.9rem 1.5rem;
      background: rgba(255, 255, 255, 0.03);
      border: 1px solid rgba(255, 255, 255, 0.08);
      border-radius: 8px;
      transition: all 0.25s ease;
      display: flex;
      align-items: center;
      gap: 10px;
   }

   /* Dropdown arrow rotation */
   .nav-dropdown .dropdown-arrow {
      transition: transform 0.3s ease;
      display: inline-block;
   }

   .nav-dropdown.active .dropdown-arrow {
      transform: rotate(180deg);
   }

   .nav-dropdown.active .nav-link {
      background: rgba(255, 255, 255, 0.08);
      border-color: rgba(255, 255, 255, 0.15);
   }

   /* Dropdown Menu - Smooth Height Transition */
   .nav-dropdown .dropdown-menu {
      position: static !important;
      opacity: 1 !important;
      transform: none !important;
      pointer-events: all !important;
      background: transparent !important;
      border: none !important;
      box-shadow: none !important;
      display: flex !important;
      flex-direction: column !important;
      gap: 0.5rem !important;
      padding: 0 !important;
      max-height: 0;
      overflow: hidden;
      margin-top: 0;
      transition: max-height 0.4s cubic-bezier(0.4, 0, 0.2, 1), margin-top 0.4s ease, padding 0.4s ease !important;
   }

   .nav-dropdown.active .dropdown-menu {
      max-height: 600px !important;
      margin-top: 0.75rem !important;
      padding-bottom: 0.5rem !important;
   }

   .dropdown-menu a {
      font-size: 0.95rem;
      text-align: center;
      padding: 0.85rem 1.25rem;
      background: rgba(255, 255, 255, 0.04);
      border: 1px solid rgba(255, 255, 255, 0.08);
      border-radius: 8px;
      transition: all 0.25s ease;
      letter-spacing: 0.3px;
      width: 100%;
      color: var(--text-muted);
   }

   .dropdown-menu a:hover {
      background: rgba(255, 255, 255, 0.1);
      border-color: rgba(255, 255, 255, 0.2);
      color: var(--text-main);
      transform: translateY(-2px);
      padding-left: 1.25rem;
   }

   /* ===== CONTENT OPTIMIZATIONS ===== */
   .slider {
      height: 55vh;
   }

   .hero-inner {
      padding: 0 1.5rem;
   }

   .hero-inner h1 {
      font-size: clamp(2.5rem, 12vw, 4rem);
      line-height: 1;
   }

   .hero-inner p {
      font-size: 1rem;
      margin-bottom: 2rem;
   }

   .featured,
   .shop {
      padding: 2.5rem 5%;
   }

   .section-title {
      font-size: 2rem;
      margin-bottom: 2rem;
   }

   .shop-title {
      font-size: 2.2rem;
      letter-spacing: -1px;
   }

   .shop-subtitle {
      font-size: 0.95rem;
   }

   .shop-controls {
      padding: 1.25rem;
      gap: 1rem;
   }

   .shop-select {
      min-width: 160px;
      padding: 0.75rem 1.25rem;
      font-size: 0.85rem;
   }

   /* ===== PRODUCT GRIDS - OPTIMIZED ===== */
   .shop-grid,
   .product-grid {
      grid-template-columns: repeat(2, 1fr);
      gap: 1.25rem;
   }

   .shop-card-image {
      height: auto;
      aspect-ratio: 1 / 1;
   }

   .shop-info {
      padding: 1rem;
      flex-direction: column;
      align-items: flex-start;
      gap: 0.4rem;
   }

   .shop-name {
      font-size: 0.95rem;
   }

   .shop-price {
      font-size: 1.1rem;
   }

   /* ===== PRODUCT PAGE ===== */
   .product-wrap {
      padding: 2.5rem 5%;
      gap: 2.5rem;
   }

   .product-thumbs {
      grid-template-columns: repeat(4, 1fr);
      gap: 0.75rem;
   }

   .product-title {
      font-size: 2rem;
   }

   .size-row button {
      width: 48px;
      height: 48px;
   }

   /* ===== FORMS & INPUTS ===== */
   input,
   select,
   textarea {
      padding: 1rem;
      font-size: 1rem;
      border-radius: 4px;
   }

   .login-left {
      display: none;
   }

   .login-right {
      padding: 2.5rem 1.5rem;
   }

   .login-box h2 {
      font-size: 1.8rem;
   }

   /* ===== BUTTONS - TOUCH FRIENDLY ===== */
   .btn,
   button,
   .hero-btn,
   .cta-btn,
   .admin-btn {
      width: 100%;
      max-width: 100%;
      padding: 1.1rem 2rem;
      font-size: 0.85rem;
      letter-spacing: 1.5px;
      border-radius: 4px;
   }

   /* ===== TABLES - MOBILE OPTIMIZED ===== */
   .cart-table,
   .admin-table {
      font-size: 0.85rem;
      display: block;
      overflow-x: auto;
   }

   .cart-table th,
   .admin-table th {
      padding: 0.75rem 0.5rem;
      font-size: 0.75rem;
   }

   .cart-table td,
   .admin-table td {
      padding: 1rem 0.5rem;
   }

   /* ===== FOOTER REFINEMENTS ===== */
   .footer {
      padding: 4rem 5% 3rem;
   }

   .footer-content {
      gap: 3.5rem;
   }

   .newsletter-form {
      max-width: 100%;
   }

   /* ===== CART ===== */
   .cart {
      padding: 2.5rem 5%;
   }

   .cart h1 {
      font-size: 2.5rem;
      margin-bottom: 2rem;
   }
}

/* ===== SMALL MOBILE (480px and below) ===== */
@media (max-width: 480px) {
   :root {
      --nav-height: 60px;
   }

   .brand {
      font-size: 1.1rem;
   }

   .hamburger span {
      width: 24px;
   }

   /* Single column for products */
   .shop-grid,
   .product-grid {
      grid-template-columns: 1fr;
      gap: 1.5rem;
   }

   .shop-card-image {
      height: 245px;
   }

   .shop-info {
      padding: 1.25rem;
   }

   .shop-name {
      font-size: 1rem;
   }

   .shop-price {
      font-size: 1.2rem;
   }

   /* Smaller size buttons */
   .size-row button {
      width: 44px;
      height: 44px;
      font-size: 0.8rem;
   }

   .qty-row button,
   .qty-row input {
      height: 44px;
   }

   .qty-row button {
      width: 44px;
   }

   .qty-row input {
      width: 48px;
   }

   /* Menu adjustments */
   .nav-right {
      padding: 2rem 1.25rem;
   }

   .nav-right a {
      font-size: 1rem;
      padding: 0.85rem 1.25rem;
   }

   .nav-dropdown .nav-link {
      font-size: 1rem;
   }

   .dropdown-menu a {
      font-size: 0.9rem;
      padding: 0.7rem 1rem;
   }

   .product-thumbs {
      grid-template-columns: repeat(3, 1fr);
      gap: 0.5rem;
   }

   .hero-inner h1 {
      font-size: 2.5rem;
   }

   .shop-title {
      font-size: 2rem;
   }
}

/* ===== DESKTOP ONLY (769px and above) ===== */
@media (min-width: 769px) {
   .hamburger {
      display: none !important;
   }
}

/* ======================
   WISHLIST BUTTON
   ====================== */
.wishlist-btn {
   position: absolute;
   top: 10px;
   right: 10px;
   background: rgba(255, 255, 255, 0.9);
   border: none;
   border-radius: 50%;
   width: 40px;
   height: 40px;
   display: flex;
   align-items: center;
   justify-content: center;
   cursor: pointer;
   z-index: 10;
   transition: all 0.3s var(--ease-out);
   box-shadow: 0 4px 10px rgba(0,0,0,0.1);
}

.wishlist-btn i {
   font-size: 1.2rem;
   color: #ccc;
   transition: color 0.3s ease, transform 0.3s cubic-bezier(0.175, 0.885, 0.32, 1.275);
}

.wishlist-btn:hover {
   transform: scale(1.1);
}

.wishlist-btn.active i {
   color: #ff3366; /* Hot Red/Pink for heart */
   transform: scale(1.1);
}

/* Print Styles */
@media print {

   .core-nav,
   .footer,
   .hamburger,
   button {
      display: none;
   }
}

/* ======================
   FLASH MESSAGES (Dynamic toasts)
   ====================== */
.flash-container {
   position: fixed;
   top: calc(var(--nav-height) + 20px);
   right: 20px;
   z-index: 3000;
   display: flex;
   flex-direction: column;
   gap: 10px;
   pointer-events: none;
}

.flash-message {
   pointer-events: auto;
   min-width: 300px;
   max-width: 450px;
   background: rgba(17, 17, 17, 0.9);
   backdrop-filter: blur(10px);
   border-left: 4px solid var(--accent);
   padding: 1rem 1.5rem;
   display: flex;
   align-items: center;
   justify-content: space-between;
   gap: 15px;
   box-shadow: 0 10px 30px rgba(0, 0, 0, 0.5);
   animation: flashSlideIn 0.4s var(--ease-out) forwards;
   color: var(--text-main);
}

@keyframes flashSlideIn {
   from {
      transform: translateX(100%);
      opacity: 0;
   }

   to {
      transform: translateX(0);
      opacity: 1;
   }
}

.flash-message.error {
   border-left-color: var(--error);
}

.flash-message.success {
   border-left-color: var(--success);
}

.flash-message.info {
   border-left-color: #007aff;
}

.flash-text {
   font-size: 0.9rem;
   font-weight: 500;
   letter-spacing: 0.5px;
}

.flash-close {
   background: none;
   border: none;
   color: var(--text-muted);
   font-size: 1.5rem;
   line-height: 1;
   cursor: pointer;
   padding: 0;
   margin: 0;
   transition: color 0.2s;
   display: flex;
   align-items: center;
   justify-content: center;
   width: 20px;
   height: 20px;
}

.flash-close:hover {
   color: var(--text-main);
   transform: none !important;
   box-shadow: none !important;
}

@media (max-width: 768px) {
   .flash-container {
      top: 20px;
      left: 20px;
      right: 20px;
   }

   .flash-message {
      min-width: unset;
      max-width: 100%;
   }
}

/* Overriding status styles for better visibility */
.status-select.status-cancelled {
   background: #ff3b30 !important;
   color: #fff !important;
   font-weight: 800 !important;
}

.status-badge.status-cancelled {
   background: rgba(255, 59, 48, 0.2) !important;
   color: #ff3b30 !important;
   border: 2px solid #ff3b30 !important;
   font-weight: 900 !important;
}

/* ======================
   REVIEWS SECTION (Infinite Marquee)
   ====================== */
.reviews-section {
   padding: 6rem 0;
   /* Full width, no side padding for marquee */
   background: var(--dark-grey);
   overflow: hidden;
}

.reviews-header {
   text-align: center;
   margin-bottom: 4rem;
   padding: 0 5%;
}

.reviews-header h2 {
   font-size: clamp(2rem, 5vw, 3rem);
   font-weight: 900;
   text-transform: uppercase;
   margin-bottom: 1rem;
   color: var(--text-main);
}

.reviews-header p {
   font-size: 1.1rem;
   color: var(--text-muted);
}

/* MARQUEE CONTAINER */
.reviews-marquee {
   position: relative;
   width: 100%;
   overflow: hidden;
   mask-image: linear-gradient(to right, transparent, black 10%, black 90%, transparent);
   -webkit-mask-image: linear-gradient(to right, transparent, black 10%, black 90%, transparent);
}

.reviews-track {
   display: flex;
   gap: 2rem;
   width: max-content;
   animation: scroll 40s linear infinite;
}

.reviews-track:hover {
   animation-play-state: paused;
}

@keyframes scroll {
   0% {
      transform: translateX(0);
   }

   100% {
      transform: translateX(-50%);
   }
}

/* REVIEW CARD (Fixed Width for Marquee) */
.review-card {
   background: var(--card-bg);
   padding: 2rem;
   border: 1px solid var(--border);
   border-radius: 12px;
   width: 350px;
   /* Fixed width */
   flex-shrink: 0;
   display: flex;
   flex-direction: column;
   gap: 1rem;
   transition: border-color 0.3s ease;
}

.review-card:hover {
   border-color: var(--text-main);
}

.review-rating {
   color: #ffd700;
   font-size: 1rem;
   letter-spacing: 2px;
}

.review-text {
   font-size: 0.95rem;
   line-height: 1.6;
   color: var(--text-main);
   font-style: italic;
   flex: 1;
}

.review-author {
   display: flex;
   align-items: center;
   gap: 1rem;
   margin-top: auto;
}

.author-avatar {
   width: 40px;
   height: 40px;
   background: var(--border);
   border-radius: 50%;
   display: flex;
   align-items: center;
   justify-content: center;
   font-weight: 700;
   color: var(--text-muted);
   font-size: 1rem;
}

.author-info h4 {
   font-size: 0.9rem;
   font-weight: 700;
   color: var(--text-main);
   text-transform: uppercase;
}

.author-info span {
   font-size: 0.75rem;
   color: var(--text-muted);
}

/* Mobile Adjustments */
@media (max-width: 768px) {
   .reviews-track {
      animation-duration: 30s;
      /* Faster on mobile */
      gap: 1rem;
   }

   .review-card {
      width: 280px;
      padding: 1.5rem;
   }

   /* 2 Products side-by-side on Mobile using Masonry */
   .product-grid,
   .shop-grid {
      display: block;
      column-count: 2;
      column-gap: 1rem;
   }

   .product-card,
   .shop-card {
      display: inline-block;
      width: 100%;
      margin-bottom: 1.5rem;
      break-inside: avoid;
      background: transparent;
   }

   .product-info,
   .shop-info {
      flex-direction: column;
      align-items: flex-start;
      gap: 0.4rem;
   }

   .shop-info {
      padding: 0.8rem;
   }

   .product-name,
   .shop-name {
      font-size: 0.85rem;
   }

   .product-price,
   .shop-price {
      font-size: 0.9rem;
   }
}