/* ==========================================================================
   UYWAY E-COMMERCE STORE - DESIGN SYSTEM & BENTO GRID STYLES
   Colors: #1a7e91 (Teal Dark), #288797 (Teal Soft), #FE6232 (Orange Accent),
   #fcd632 (Yellow Accent), #F9F5F3 (Soft Warm Cream Background)
   ========================================================================== */

@import url('https://fonts.googleapis.com/css2?family=Plus+Jakarta+Sans:wght@400;500;600;700;800&display=swap');

:root {
  --store-bg: #F9F5F3;
  --store-card-bg: #FFFFFF;
  --store-sidebar-bg: #FFFFFF;
  --store-teal-primary: #1a7e91;
  --store-teal-light: #288797;
  --store-teal-soft: #e8f4f6;
  --store-orange: #FE6232;
  --store-orange-hover: #e04e20;
  --store-yellow: #fcd632;
  --store-text-main: #222831;
  --store-text-muted: #6E7076;
  --store-text-light: #9E9EA7;
  --store-border: #EAEAEA;
  --store-radius-lg: 24px;
  --store-radius-md: 16px;
  --store-radius-sm: 12px;
  --store-shadow-sm: 0 4px 15px rgba(26, 126, 145, 0.05);
  --store-shadow-md: 0 10px 30px rgba(26, 126, 145, 0.08);
  --store-shadow-lg: 0 20px 40px rgba(0, 0, 0, 0.08);
  --font-family: 'Plus Jakarta Sans', sans-serif;
}

* {
  box-sizing: border-box;
  margin: 0;
  padding: 0;
}

body {
  font-family: var(--font-family);
  background-color: var(--store-bg);
  color: var(--store-text-main);
  min-height: 100vh;
  display: flex;
  overflow-x: hidden;
}

/* ==========================================================================
   LAYOUT STRUCTURE (Sidebar + Main Viewport)
   ========================================================================== */
.store-container {
  display: flex;
  width: 100vw;
  min-height: 100vh;
}

/* --------------------------------------------------------------------------
   1. SIDEBAR MENU (Left Side)
   -------------------------------------------------------------------------- */
.store-sidebar {
  width: 280px;
  background-color: var(--store-sidebar-bg);
  border-right: 1px solid var(--store-border);
  padding: 24px;
  display: flex;
  flex-direction: column;
  justify-content: space-between;
  position: fixed;
  top: 0;
  bottom: 0;
  left: 0;
  z-index: 100;
  transition: transform 0.3s ease;
}

.sidebar-top {
  display: flex;
  flex-direction: column;
  gap: 28px;
}

.sidebar-brand-mini {
  display: flex;
  align-items: center;
  justify-content: flex-start;
  width: 100%;
  text-decoration: none;
  padding: 8px 0 16px 0;
}

.sidebar-brand-mini img {
  width: 100%;
  max-width: 220px;
  height: auto;
  max-height: 95px;
  border-radius: 14px;
  object-fit: contain;
}

.sidebar-nav-list {
  list-style: none;
  display: flex;
  flex-direction: column;
  gap: 8px;
}

.sidebar-nav-item {
  width: 100%;
}

.sidebar-link {
  display: flex;
  align-items: center;
  gap: 14px;
  padding: 14px 18px;
  border-radius: var(--store-radius-md);
  text-decoration: none;
  color: var(--store-text-muted);
  font-weight: 600;
  font-size: 0.95rem;
  transition: all 0.25s ease;
}

.sidebar-link .icon {
  font-size: 1.2rem;
  display: flex;
  align-items: center;
  justify-content: center;
  width: 24px;
}

.sidebar-link:hover {
  background-color: var(--store-teal-soft);
  color: var(--store-teal-primary);
}

.sidebar-link.active {
  background-color: var(--store-teal-primary);
  color: #FFFFFF;
  box-shadow: 0 8px 20px rgba(26, 126, 145, 0.3);
}

.sidebar-link.active .icon {
  color: #FFFFFF;
}

/* Sidebar Section: Last Orders */
.sidebar-orders-section {
  padding-top: 20px;
  border-top: 1px solid var(--store-border);
}

.sidebar-section-title {
  font-size: 0.82rem;
  font-weight: 700;
  text-transform: uppercase;
  letter-spacing: 0.5px;
  color: var(--store-text-light);
  margin-bottom: 16px;
  display: flex;
  align-items: center;
  justify-content: space-between;
}

.sidebar-orders-list {
  display: flex;
  flex-direction: column;
  gap: 12px;
}

.order-item-card {
  display: flex;
  align-items: center;
  gap: 12px;
  padding: 10px 12px;
  background: #F9FAFB;
  border: 1px solid var(--store-border);
  border-radius: var(--store-radius-sm);
  transition: background 0.2s ease;
}

.order-item-card:hover {
  background: var(--store-teal-soft);
}

.user-avatar-mini {
  width: 36px;
  height: 36px;
  border-radius: 50%;
  object-fit: cover;
  border: 2px solid var(--store-teal-light);
  background-color: var(--store-teal-soft);
  display: flex;
  align-items: center;
  justify-content: center;
  font-weight: 700;
  color: var(--store-teal-primary);
  font-size: 0.85rem;
  flex-shrink: 0;
}

.order-info {
  display: flex;
  flex-direction: column;
  overflow: hidden;
}

.order-user-name {
  font-size: 0.85rem;
  font-weight: 700;
  color: var(--store-text-main);
  white-space: nowrap;
  overflow: hidden;
  text-overflow: ellipsis;
}

.order-product-name {
  font-size: 0.78rem;
  color: var(--store-text-muted);
  white-space: nowrap;
  overflow: hidden;
  text-overflow: ellipsis;
}

.view-order-link {
  font-size: 0.72rem;
  color: var(--store-teal-primary);
  font-weight: 600;
  text-decoration: none;
  margin-top: 2px;
}

/* Sidebar Footer & Logout */
.sidebar-bottom {
  padding-top: 16px;
  border-top: 1px solid var(--store-border);
}

.btn-logout {
  display: flex;
  align-items: center;
  gap: 12px;
  width: 100%;
  padding: 12px 16px;
  border-radius: var(--store-radius-sm);
  background: transparent;
  border: 1px solid #FFEBE6;
  color: #D9381E;
  font-weight: 700;
  font-size: 0.9rem;
  cursor: pointer;
  transition: all 0.2s ease;
  text-decoration: none;
}

.btn-logout:hover {
  background: #FFEBE6;
  border-color: #FD5D47;
}

/* --------------------------------------------------------------------------
   2. MAIN CONTENT AREA (Header + Store Viewport)
   -------------------------------------------------------------------------- */
.store-main {
  margin-left: 280px;
  flex: 1;
  display: flex;
  flex-direction: column;
  min-height: 100vh;
  padding: 24px 36px 40px 36px;
}

/* Top Header Bar */
.store-header {
  display: flex;
  align-items: center;
  justify-content: space-between;
  padding-bottom: 24px;
  border-bottom: 1px solid var(--store-border);
  margin-bottom: 28px;
}

.header-left {
  display: flex;
  align-items: center;
  gap: 24px;
}

.store-logo-img {
  height: 52px;
  width: auto;
  border-radius: 12px;
  object-fit: contain;
}

.header-metrics-badge {
  display: flex;
  align-items: center;
  gap: 12px;
  background: #FFFFFF;
  padding: 10px 18px;
  border-radius: var(--store-radius-md);
  border: 1px solid var(--store-border);
  box-shadow: var(--store-shadow-sm);
}

.metrics-number {
  font-size: 1.5rem;
  font-weight: 800;
  color: var(--store-teal-primary);
  line-height: 1;
}

.metrics-text {
  display: flex;
  flex-direction: column;
  font-size: 0.78rem;
  font-weight: 700;
  color: var(--store-text-muted);
  line-height: 1.2;
}

.metrics-subtext {
  font-weight: 500;
  color: var(--store-text-light);
}

.header-center-spacer {
  flex: 1;
}

/* Header Right User & Cart */
.header-right {
  display: flex;
  align-items: center;
  gap: 16px;
}

.cart-widget-btn {
  display: flex;
  align-items: center;
  gap: 10px;
  background: #FFFFFF;
  padding: 8px 18px;
  border-radius: 40px;
  border: 1px solid var(--store-border);
  box-shadow: var(--store-shadow-sm);
  cursor: pointer;
  transition: all 0.25s ease;
}

.cart-widget-btn:hover {
  border-color: var(--store-teal-primary);
  box-shadow: 0 6px 20px rgba(26, 126, 145, 0.15);
}

.cart-icon-wrapper {
  position: relative;
  font-size: 1.1rem;
  color: var(--store-teal-primary);
}

.cart-badge-count {
  position: absolute;
  top: -8px;
  right: -8px;
  background: var(--store-orange);
  color: #FFFFFF;
  font-size: 0.68rem;
  font-weight: 800;
  width: 18px;
  height: 18px;
  border-radius: 50%;
  display: flex;
  align-items: center;
  justify-content: center;
}

.cart-amount-text {
  font-weight: 800;
  font-size: 0.95rem;
  color: var(--store-text-main);
}

.user-profile-widget {
  display: flex;
  align-items: center;
  gap: 12px;
  background: #FFFFFF;
  padding: 6px 14px 6px 6px;
  border-radius: 40px;
  border: 1px solid var(--store-border);
  box-shadow: var(--store-shadow-sm);
  cursor: pointer;
  transition: all 0.25s ease;
}

.user-profile-widget:hover {
  border-color: var(--store-teal-light);
}

.user-header-avatar {
  width: 38px;
  height: 38px;
  border-radius: 50%;
  object-fit: cover;
  background: var(--store-teal-soft);
  color: var(--store-teal-primary);
  display: flex;
  align-items: center;
  justify-content: center;
  font-weight: 800;
  font-size: 1.1rem;
}

.user-header-name {
  font-size: 0.9rem;
  font-weight: 700;
  color: var(--store-text-main);
}

/* --------------------------------------------------------------------------
   3. CATEGORY & FILTER CONTROLS BAR
   -------------------------------------------------------------------------- */
.store-controls-section {
  margin-bottom: 28px;
  display: flex;
  flex-direction: column;
  gap: 18px;
}

.controls-top-row {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 20px;
  flex-wrap: wrap;
}

.store-page-title {
  font-size: 1.8rem;
  font-weight: 800;
  color: var(--store-text-main);
  letter-spacing: -0.5px;
}

/* Dog - Cat Toggle Tabs */
.pet-type-selector {
  display: flex;
  background: #FFFFFF;
  padding: 5px;
  border-radius: 40px;
  border: 1px solid var(--store-border);
  box-shadow: var(--store-shadow-sm);
}

.pet-type-btn {
  border: none;
  background: transparent;
  padding: 8px 22px;
  border-radius: 30px;
  font-weight: 700;
  font-size: 0.9rem;
  color: var(--store-text-muted);
  cursor: pointer;
  transition: all 0.25s ease;
  display: flex;
  align-items: center;
  gap: 6px;
}

.pet-type-btn.active {
  background: var(--store-teal-primary);
  color: #FFFFFF;
  box-shadow: 0 4px 12px rgba(26, 126, 145, 0.25);
}

/* Search & Filter Trigger */
.search-filter-wrapper {
  display: flex;
  align-items: center;
  gap: 12px;
}

.store-search-box {
  display: flex;
  align-items: center;
  background: #FFFFFF;
  border: 1px solid var(--store-border);
  padding: 8px 16px;
  border-radius: 30px;
  box-shadow: var(--store-shadow-sm);
  width: 240px;
}

.store-search-box input {
  border: none;
  outline: none;
  background: transparent;
  width: 100%;
  font-family: inherit;
  font-size: 0.88rem;
  color: var(--store-text-main);
}

.store-search-box .search-icon {
  color: var(--store-text-light);
  margin-right: 8px;
}

.btn-filter-trigger {
  background: #FFFFFF;
  border: 1px solid var(--store-border);
  padding: 8px 16px;
  border-radius: 30px;
  font-weight: 700;
  font-size: 0.88rem;
  color: var(--store-text-main);
  cursor: pointer;
  box-shadow: var(--store-shadow-sm);
  display: flex;
  align-items: center;
  gap: 6px;
  transition: all 0.2s ease;
}

.btn-filter-trigger:hover {
  background: var(--store-teal-soft);
  color: var(--store-teal-primary);
}

/* 10 Subcategories Pill Navigation Scrollable */
.categories-pills-scroll {
  display: flex;
  gap: 10px;
  overflow-x: auto;
  padding-bottom: 6px;
  scrollbar-width: thin;
  scrollbar-color: var(--store-teal-light) transparent;
}

.categories-pills-scroll::-webkit-scrollbar {
  height: 4px;
}

.categories-pills-scroll::-webkit-scrollbar-thumb {
  background: var(--store-teal-light);
  border-radius: 4px;
}

.category-pill {
  border: 1px solid var(--store-border);
  background: #FFFFFF;
  padding: 8px 18px;
  border-radius: 20px;
  font-size: 0.85rem;
  font-weight: 600;
  color: var(--store-text-muted);
  white-space: nowrap;
  cursor: pointer;
  transition: all 0.25s ease;
}

.category-pill:hover {
  border-color: var(--store-teal-light);
  color: var(--store-teal-primary);
  background: var(--store-teal-soft);
}

.category-pill.active {
  background: var(--store-teal-primary);
  color: #FFFFFF;
  border-color: var(--store-teal-primary);
  box-shadow: 0 4px 12px rgba(26, 126, 145, 0.2);
}

/* --------------------------------------------------------------------------
   4. BENTO GRID MAIN DASHBOARD
   -------------------------------------------------------------------------- */
.bento-grid-dashboard {
  display: grid;
  grid-template-columns: repeat(12, 1fr);
  gap: 24px;
}

/* Bento Column Left (Banners) - 7 cols */
.bento-col-left {
  grid-column: span 7;
  display: flex;
  flex-direction: column;
  gap: 24px;
}

/* Bento Column Right (Main Products) - 5 cols */
.bento-col-right {
  grid-column: span 5;
  display: flex;
  flex-direction: column;
  gap: 24px;
}

/* Full Width Bottom Row (3 Panels) - Hidden temporarily as requested */
.bento-row-bottom {
  display: none !important;
  grid-column: span 12;
  grid-template-columns: repeat(3, 1fr);
  gap: 24px;
  margin-top: 8px;
}

/* --------------------------------------------------------------------------
   BENTO CARDS STYLING
   -------------------------------------------------------------------------- */
/* Banner 1: 50% OFF Card */
.bento-card-discount {
  background: linear-gradient(135deg, var(--store-teal-primary) 0%, var(--store-teal-light) 100%);
  border-radius: var(--store-radius-lg);
  padding: 36px 40px;
  color: #FFFFFF;
  position: relative;
  overflow: hidden;
  display: flex;
  flex-direction: column;
  justify-content: center;
  min-height: 220px;
  box-shadow: var(--store-shadow-md);
}

.bento-card-discount::after {
  content: '';
  position: absolute;
  top: -30%;
  right: -10%;
  width: 240px;
  height: 240px;
  background: radial-gradient(circle, rgba(252, 214, 50, 0.3) 0%, rgba(255,255,255,0) 70%);
  border-radius: 50%;
  pointer-events: none;
}

.discount-badge {
  font-size: 0.85rem;
  font-weight: 800;
  text-transform: uppercase;
  letter-spacing: 1px;
  background: rgba(255, 255, 255, 0.2);
  padding: 6px 14px;
  border-radius: 20px;
  display: inline-block;
  width: fit-content;
  margin-bottom: 12px;
  backdrop-filter: blur(4px);
}

.discount-title {
  font-size: 2.2rem;
  font-weight: 800;
  line-height: 1.1;
  margin-bottom: 20px;
  max-width: 320px;
}

.btn-discount-action {
  background: var(--store-orange);
  color: #FFFFFF;
  border: none;
  padding: 14px 28px;
  border-radius: 30px;
  font-size: 0.92rem;
  font-weight: 800;
  cursor: pointer;
  width: fit-content;
  box-shadow: 0 6px 18px rgba(254, 98, 50, 0.4);
  transition: all 0.25s ease;
}

.btn-discount-action:hover {
  background: var(--store-orange-hover);
  transform: translateY(-2px);
  box-shadow: 0 10px 24px rgba(254, 98, 50, 0.5);
}

/* Banner 2: Winter Clothes Card with Expandable Arrow */
.bento-card-winter {
  background: #FFF5EA;
  border: 1px solid #FFE4CD;
  border-radius: var(--store-radius-lg);
  padding: 32px 36px;
  position: relative;
  display: flex;
  flex-direction: column;
  justify-content: center;
  min-height: 180px;
  overflow: hidden;
  box-shadow: var(--store-shadow-sm);
  transition: all 0.3s ease;
}

.winter-row-header {
  display: flex;
  align-items: center;
  justify-content: space-between;
  width: 100%;
}

.winter-content-box {
  z-index: 2;
  max-width: 75%;
}

.winter-title {
  font-size: 1.6rem;
  font-weight: 800;
  color: #3D2314;
  line-height: 1.2;
  margin-bottom: 8px;
}

.winter-subtitle {
  font-size: 0.9rem;
  color: #8C6A54;
  font-weight: 600;
}

.btn-expand-arrow {
  width: 48px;
  height: 48px;
  border-radius: 50%;
  background: #FFFFFF;
  border: 1px solid #E6D0BC;
  display: flex;
  align-items: center;
  justify-content: center;
  font-size: 1.3rem;
  color: #3D2314;
  cursor: pointer;
  transition: all 0.3s ease;
  box-shadow: var(--store-shadow-sm);
  z-index: 2;
}

.btn-expand-arrow:hover, .btn-expand-arrow.active {
  background: var(--store-orange);
  color: #FFFFFF;
  border-color: var(--store-orange);
  transform: rotate(45deg);
}

/* Expanded Clothes Preview Overlay Container */
.winter-expanded-gallery {
  display: none;
  grid-template-columns: repeat(3, 1fr);
  gap: 14px;
  margin-top: 20px;
  padding-top: 18px;
  border-top: 1px dashed #E6D0BC;
  width: 100%;
}

.winter-expanded-gallery.active {
  display: grid;
}

.mini-clothing-card {
  background: #FFFFFF;
  border-radius: var(--store-radius-md);
  padding: 12px;
  text-align: center;
  box-shadow: var(--store-shadow-sm);
  border: 1px solid #EAEAEA;
  transition: all 0.25s ease;
}

.mini-clothing-card:hover {
  transform: translateY(-3px);
  box-shadow: var(--store-shadow-md);
  border-color: var(--store-teal-light);
}

.mini-clothing-card img {
  width: 100%;
  height: 165px;
  object-fit: cover;
  object-position: center;
  border-radius: 10px;
  margin-bottom: 8px;
  background: #F8FAFC;
}

.mini-clothing-title {
  font-size: 0.85rem;
  font-weight: 700;
  color: var(--store-text-main);
  margin-bottom: 4px;
}

.mini-clothing-price {
  font-size: 0.88rem;
  font-weight: 800;
  color: var(--store-orange);
}

/* --------------------------------------------------------------------------
   RIGHT COLUMN PRODUCT CARDS (Comida y Gustos)
   -------------------------------------------------------------------------- */
.product-showcase-card {
  background: var(--store-card-bg);
  border-radius: var(--store-radius-lg);
  border: 1px solid var(--store-border);
  padding: 20px;
  box-shadow: var(--store-shadow-sm);
  display: flex;
  flex-direction: column;
  gap: 16px;
  transition: all 0.3s ease;
  position: relative;
}

.product-showcase-card:hover {
  box-shadow: var(--store-shadow-md);
  transform: translateY(-3px);
  border-color: var(--store-teal-light);
}

.product-tag {
  position: absolute;
  top: 28px;
  left: 28px;
  background: rgba(255, 255, 255, 0.9);
  padding: 4px 12px;
  border-radius: 20px;
  font-size: 0.75rem;
  font-weight: 800;
  color: var(--store-teal-primary);
  backdrop-filter: blur(4px);
  z-index: 2;
  box-shadow: 0 2px 8px rgba(0,0,0,0.06);
}

.btn-fav-heart {
  position: absolute;
  top: 28px;
  right: 28px;
  width: 34px;
  height: 34px;
  border-radius: 50%;
  background: #FFFFFF;
  border: 1px solid var(--store-border);
  display: flex;
  align-items: center;
  justify-content: center;
  cursor: pointer;
  font-size: 1rem;
  color: var(--store-text-light);
  transition: all 0.2s ease;
  z-index: 2;
}

.btn-fav-heart:hover, .btn-fav-heart.active {
  color: #E63946;
  border-color: #FFAAA5;
  background: #FFF0F0;
}

.product-img-frame {
  width: 100%;
  height: 360px;
  border-radius: var(--store-radius-md);
  overflow: hidden;
  background: #F4F6F8;
  display: flex;
  align-items: center;
  justify-content: center;
}

.product-img-frame img {
  width: 100%;
  height: 100%;
  object-fit: cover;
  transition: transform 0.4s ease;
}

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

.product-details {
  display: flex;
  align-items: flex-start;
  justify-content: space-between;
  gap: 12px;
}

.product-title {
  font-size: 1.02rem;
  font-weight: 800;
  color: var(--store-text-main);
  line-height: 1.3;
}

.product-category-name {
  font-size: 0.78rem;
  color: var(--store-text-light);
  font-weight: 600;
}

.product-price-btn-row {
  display: flex;
  align-items: center;
  justify-content: space-between;
  margin-top: 4px;
}

.product-price {
  font-size: 1.25rem;
  font-weight: 800;
  color: var(--store-teal-primary);
}

.btn-add-cart {
  background: var(--store-teal-primary);
  color: #FFFFFF;
  border: none;
  padding: 10px 18px;
  border-radius: 30px;
  font-size: 0.85rem;
  font-weight: 700;
  cursor: pointer;
  transition: all 0.2s ease;
  display: flex;
  align-items: center;
  gap: 6px;
}

.btn-add-cart:hover {
  background: var(--store-teal-light);
  box-shadow: 0 4px 12px rgba(40, 135, 151, 0.3);
}

/* --------------------------------------------------------------------------
   5. BOTTOM PANELS (3 Panels Row)
   -------------------------------------------------------------------------- */
.bottom-panel-card {
  background: #FFFFFF;
  border-radius: var(--store-radius-lg);
  border: 1px solid var(--store-border);
  padding: 24px;
  box-shadow: var(--store-shadow-sm);
  display: flex;
  flex-direction: column;
  justify-content: space-between;
  min-height: 240px;
  position: relative;
  overflow: hidden;
}

.panel-header {
  display: flex;
  align-items: center;
  justify-content: space-between;
  margin-bottom: 14px;
}

.panel-title {
  font-size: 1.15rem;
  font-weight: 800;
  color: var(--store-text-main);
}

/* Panel 1: Flash Offer */
.panel-flash {
  background: linear-gradient(135deg, #FFF9E6 0%, #FFF3CC 100%);
  border-color: #FFE699;
}

.panel-flash-content img {
  width: 100%;
  height: 120px;
  object-fit: cover;
  border-radius: var(--store-radius-sm);
  margin-bottom: 12px;
}

/* Panel 2: Community Favorites Mini Grid */
.panel-favs-grid {
  display: grid;
  grid-template-columns: repeat(2, 1fr);
  gap: 10px;
}

.mini-fav-item {
  background: #F9FAFB;
  border: 1px solid var(--store-border);
  border-radius: var(--store-radius-sm);
  padding: 8px;
  text-align: center;
}

.mini-fav-item img {
  width: 100%;
  height: 65px;
  object-fit: cover;
  border-radius: 6px;
  margin-bottom: 4px;
}

/* Panel 3: Bold Fashion Banner */
.panel-fashion {
  background: linear-gradient(135deg, #222831 0%, #393E46 100%);
  color: #FFFFFF;
}

.panel-fashion .panel-title {
  color: #FFFFFF;
}

.panel-fashion-subtitle {
  font-size: 0.85rem;
  color: #B0B5BC;
  margin-bottom: 16px;
}

/* --------------------------------------------------------------------------
   6. USER AUTH & SHOPPING CART MODAL STYLES
   -------------------------------------------------------------------------- */
.modal-overlay {
  position: fixed;
  top: 0;
  left: 0;
  right: 0;
  bottom: 0;
  background: rgba(0, 0, 0, 0.5);
  backdrop-filter: blur(4px);
  z-index: 1000;
  display: none;
  align-items: center;
  justify-content: center;
}

.modal-overlay.active {
  display: flex;
}

.modal-card {
  background: #FFFFFF;
  border-radius: var(--store-radius-lg);
  padding: 32px;
  width: 90%;
  max-width: 440px;
  box-shadow: var(--store-shadow-lg);
  position: relative;
  animation: modalSlideUp 0.3s ease forwards;
}

@keyframes modalSlideUp {
  from { opacity: 0; transform: translateY(20px); }
  to { opacity: 1; transform: translateY(0); }
}

.modal-close-btn {
  position: absolute;
  top: 20px;
  right: 20px;
  background: #F4F6F8;
  border: none;
  width: 32px;
  height: 32px;
  border-radius: 50%;
  font-size: 1rem;
  cursor: pointer;
  display: flex;
  align-items: center;
  justify-content: center;
}

.modal-title {
  font-size: 1.4rem;
  font-weight: 800;
  margin-bottom: 8px;
  color: var(--store-text-main);
}

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

.auth-tabs {
  display: flex;
  gap: 12px;
  margin-bottom: 20px;
  border-bottom: 1px solid var(--store-border);
  padding-bottom: 12px;
}

.auth-tab-btn {
  border: none;
  background: transparent;
  font-family: inherit;
  font-weight: 700;
  font-size: 0.95rem;
  color: var(--store-text-muted);
  cursor: pointer;
  padding-bottom: 6px;
  position: relative;
}

.auth-tab-btn.active {
  color: var(--store-teal-primary);
}

.auth-tab-btn.active::after {
  content: '';
  position: absolute;
  bottom: -13px;
  left: 0;
  right: 0;
  height: 3px;
  background: var(--store-teal-primary);
  border-radius: 3px;
}

.auth-form-group {
  display: flex;
  flex-direction: column;
  gap: 16px;
}

.form-field {
  display: flex;
  flex-direction: column;
  gap: 6px;
}

.form-field label {
  font-size: 0.82rem;
  font-weight: 700;
  color: var(--store-text-main);
}

.form-field input {
  padding: 12px 16px;
  border-radius: var(--store-radius-sm);
  border: 1px solid var(--store-border);
  font-family: inherit;
  font-size: 0.9rem;
  outline: none;
}

.form-field input:focus, .filter-select:focus {
  border-color: var(--store-teal-primary);
  box-shadow: 0 0 0 3px rgba(26, 126, 145, 0.15);
}

.filter-select {
  padding: 12px 16px;
  border-radius: var(--store-radius-sm);
  border: 1px solid var(--store-border);
  font-family: inherit;
  font-size: 0.9rem;
  outline: none;
  background: #FFFFFF;
  color: var(--store-text-main);
  cursor: pointer;
}

.btn-auth-submit {
  background: var(--store-teal-primary);
  color: #FFFFFF;
  border: none;
  padding: 14px;
  border-radius: 30px;
  font-weight: 800;
  font-size: 0.95rem;
  cursor: pointer;
  margin-top: 8px;
  transition: background 0.2s ease;
}

.btn-auth-submit:hover {
  background: var(--store-teal-light);
}

/* Cart Items Drawer Modal */
.cart-items-list {
  display: flex;
  flex-direction: column;
  gap: 12px;
  max-height: 280px;
  overflow-y: auto;
  margin-bottom: 20px;
}

.cart-item-row {
  display: flex;
  align-items: center;
  justify-content: space-between;
  padding: 10px;
  background: #F9FAFB;
  border-radius: var(--store-radius-sm);
  border: 1px solid var(--store-border);
}

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

.cart-item-info img {
  width: 44px;
  height: 44px;
  border-radius: 8px;
  object-fit: cover;
}

.cart-item-details {
  display: flex;
  flex-direction: column;
}

.cart-item-title {
  font-size: 0.85rem;
  font-weight: 700;
}

.cart-item-price {
  font-size: 0.8rem;
  color: var(--store-teal-primary);
  font-weight: 800;
}

.btn-remove-cart-item {
  background: transparent;
  border: none;
  color: #D9381E;
  font-size: 1.1rem;
  cursor: pointer;
}

/* Responsive */
@media (max-width: 1200px) {
  .bento-col-left { grid-column: span 12; }
  .bento-col-right { grid-column: span 12; display: grid; grid-template-columns: repeat(2, 1fr); }
  .bento-row-bottom { grid-template-columns: repeat(2, 1fr); }
}

@media (max-width: 900px) {
  .store-sidebar {
    transform: translateX(-100%);
  }
  .store-sidebar.mobile-open {
    transform: translateX(0);
  }
  .store-main {
    margin-left: 0;
    padding: 18px 20px;
  }
  .bento-col-right { grid-template-columns: 1fr; }
  .bento-row-bottom { grid-template-columns: 1fr; }
}

/* --------------------------------------------------------------------------
   8. AMAZON STORE FULL CATALOG VIEW STYLES
   -------------------------------------------------------------------------- */
.catalog-store-view {
  display: none;
  flex-direction: column;
  gap: 24px;
  animation: fadeInCatalog 0.35s ease forwards;
}

.catalog-store-view.active {
  display: flex;
}

@keyframes fadeInCatalog {
  from { opacity: 0; transform: translateY(12px); }
  to { opacity: 1; transform: translateY(0); }
}

.catalog-header-bar {
  display: flex;
  align-items: center;
  justify-content: space-between;
  background: #FFFFFF;
  padding: 16px 24px;
  border-radius: var(--store-radius-md);
  border: 1px solid var(--store-border);
  box-shadow: var(--store-shadow-sm);
  flex-wrap: wrap;
  gap: 16px;
}

.btn-back-dashboard {
  display: flex;
  align-items: center;
  gap: 8px;
  background: var(--store-teal-soft);
  color: var(--store-teal-primary);
  border: 1px solid var(--store-teal-light);
  padding: 10px 20px;
  border-radius: 30px;
  font-weight: 700;
  font-size: 0.9rem;
  cursor: pointer;
  transition: all 0.25s ease;
}

.btn-back-dashboard:hover {
  background: var(--store-teal-primary);
  color: #FFFFFF;
  box-shadow: 0 4px 14px rgba(26, 126, 145, 0.25);
}

.catalog-category-title-box {
  display: flex;
  flex-direction: column;
}

.catalog-category-name-display {
  font-size: 1.6rem;
  font-weight: 800;
  color: var(--store-text-main);
  letter-spacing: -0.5px;
}

.catalog-items-counter-badge {
  font-size: 0.85rem;
  font-weight: 600;
  color: var(--store-text-muted);
}

/* Amazon Store Items Grid */
.catalog-products-grid {
  display: grid;
  grid-template-columns: repeat(auto-fill, minmax(280px, 1fr));
  gap: 24px;
}

.catalog-item-card {
  background: #FFFFFF;
  border-radius: var(--store-radius-lg);
  border: 1px solid var(--store-border);
  padding: 20px;
  box-shadow: var(--store-shadow-sm);
  display: flex;
  flex-direction: column;
  justify-content: space-between;
  transition: all 0.3s ease;
  position: relative;
}

.catalog-item-card:hover {
  border-color: var(--store-teal-light);
  box-shadow: var(--store-shadow-md);
  transform: translateY(-4px);
}

.catalog-item-image-wrapper {
  width: 100%;
  height: 220px;
  border-radius: var(--store-radius-md);
  overflow: hidden;
  background: #F8FAFC;
  margin-bottom: 16px;
  display: flex;
  align-items: center;
  justify-content: center;
  position: relative;
}

.catalog-item-image-wrapper img {
  width: 100%;
  height: 100%;
  object-fit: cover;
  transition: transform 0.4s ease;
}

.catalog-item-card:hover .catalog-item-image-wrapper img {
  transform: scale(1.06);
}

.catalog-badge-pet {
  position: absolute;
  top: 12px;
  left: 12px;
  background: rgba(255, 255, 255, 0.92);
  padding: 4px 12px;
  border-radius: 20px;
  font-size: 0.75rem;
  font-weight: 800;
  color: var(--store-teal-primary);
  backdrop-filter: blur(4px);
  box-shadow: 0 2px 8px rgba(0,0,0,0.06);
}

.catalog-item-content {
  display: flex;
  flex-direction: column;
  gap: 8px;
  flex: 1;
}

.catalog-item-category-tag {
  font-size: 0.78rem;
  font-weight: 700;
  color: var(--store-orange);
  text-transform: uppercase;
  letter-spacing: 0.5px;
}

.catalog-item-title {
  font-size: 1.1rem;
  font-weight: 800;
  color: var(--store-text-main);
  line-height: 1.3;
}

.catalog-item-description {
  font-size: 0.85rem;
  color: var(--store-text-muted);
  line-height: 1.45;
  margin-bottom: 12px;
  display: -webkit-box;
  -webkit-line-clamp: 3;
  -webkit-box-orient: vertical;
  overflow: hidden;
}

.catalog-item-footer {
  display: flex;
  align-items: center;
  justify-content: space-between;
  padding-top: 14px;
  border-top: 1px solid var(--store-border);
  margin-top: auto;
}

.catalog-item-price {
  font-size: 1.35rem;
  font-weight: 800;
  color: var(--store-teal-primary);
}

.btn-catalog-cart {
  background: var(--store-teal-primary);
  color: #FFFFFF;
  border: none;
  padding: 10px 20px;
  border-radius: 30px;
  font-weight: 700;
  font-size: 0.88rem;
  cursor: pointer;
  transition: all 0.25s ease;
  display: flex;
  align-items: center;
  gap: 6px;
}

.btn-catalog-cart:hover {
  background: var(--store-orange);
  box-shadow: 0 4px 12px rgba(254, 98, 50, 0.35);
}

