/* Razin Mart Custom Design System */
@import url('https://fonts.googleapis.com/css2?family=Lato:wght@300;400;700&family=Poppins:wght@300;400;500;600;700&display=swap');

:root {
  /* Colors */
  --primary-color: #1e293b; /* Dark Navy Slate */
  --primary-light: #334155;
  --primary-dark: #0f172a;
  
  --accent-color: #10b981; /* Emerald Green */
  --accent-hover: #059669;
  --accent-light: #d1fae5;
  
  --text-color: #334155; /* Charcoal */
  --text-muted: #64748b;
  --text-light: #94a3b8;
  
  --bg-color: #f8fafc;
  --bg-white: #ffffff;
  --bg-gray-light: #f1f5f9;
  
  --border-color: #e2e8f0;
  
  --danger-color: #ef4444;
  --warning-color: #f59e0b;
  --success-color: #10b981;
  
  /* Fonts */
  --font-headings: 'Poppins', sans-serif;
  --font-body: 'Lato', sans-serif;
  
  /* Layout Metrics */
  --header-height: 140px;
  --container-width: 1240px;
  --radius-sm: 4px;
  --radius-md: 8px;
  --radius-lg: 12px;
  --radius-full: 9999px;
  
  /* Shadows */
  --shadow-sm: 0 1px 2px 0 rgba(0, 0, 0, 0.05);
  --shadow-md: 0 4px 6px -1px rgba(0, 0, 0, 0.08), 0 2px 4px -2px rgba(0, 0, 0, 0.08);
  --shadow-lg: 0 10px 15px -3px rgba(0, 0, 0, 0.1), 0 4px 6px -4px rgba(0, 0, 0, 0.1);
  --shadow-hover: 0 20px 25px -5px rgba(0, 0, 0, 0.1), 0 8px 10px -6px rgba(0, 0, 0, 0.1);
  
  /* Transitions */
  --transition-fast: all 0.2s cubic-bezier(0.4, 0, 0.2, 1);
  --transition-normal: all 0.3s cubic-bezier(0.4, 0, 0.2, 1);
  --transition-slow: all 0.5s cubic-bezier(0.4, 0, 0.2, 1);
}

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

body {
  font-family: var(--font-body);
  color: var(--text-color);
  background-color: var(--bg-color);
  line-height: 1.6;
  overflow-x: hidden;
}

h1, h2, h3, h4, h5, h6 {
  font-family: var(--font-headings);
  font-weight: 600;
  color: var(--primary-dark);
  line-height: 1.3;
}

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

ul, ol {
  list-style: none;
}

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

button, input, select, textarea {
  font-family: inherit;
  font-size: inherit;
  border: none;
  outline: none;
}

button {
  cursor: pointer;
  background: none;
}

.container {
  max-width: var(--container-width);
  margin: 0 auto;
  padding: 0 20px;
}

/* Scrollbar */
::-webkit-scrollbar {
  width: 8px;
}
::-webkit-scrollbar-track {
  background: var(--bg-gray-light);
}
::-webkit-scrollbar-thumb {
  background: var(--text-light);
  border-radius: var(--radius-full);
}
::-webkit-scrollbar-thumb:hover {
  background: var(--text-muted);
}

/* Top Announcement Bar */
.topbar {
  background-color: var(--primary-dark);
  color: var(--bg-white);
  font-size: 13px;
  padding: 8px 0;
  font-weight: 500;
  border-bottom: 1px solid rgba(255,255,255,0.1);
}

.topbar-content {
  display: flex;
  justify-content: space-between;
  align-items: center;
}

.topbar-left {
  letter-spacing: 0.5px;
}

.topbar-right {
  display: flex;
  align-items: center;
  gap: 15px;
}

.topbar-right a:hover {
  color: var(--accent-color);
}

/* Main Header */
.main-header {
  background-color: var(--primary-color);
  color: var(--bg-white);
  padding: 15px 0;
  position: sticky;
  top: 0;
  z-index: 100;
  box-shadow: var(--shadow-md);
}

.header-container {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 20px;
}

/* Logo */
.logo {
  display: flex;
  flex-direction: column;
  line-height: 1;
}

.logo-brand {
  font-family: var(--font-headings);
  font-size: 26px;
  font-weight: 700;
  color: var(--bg-white);
  letter-spacing: 1px;
}

.logo-brand span {
  color: var(--accent-color);
}

.logo-tagline {
  font-size: 10px;
  color: var(--accent-color);
  letter-spacing: 2px;
  text-transform: uppercase;
  margin-top: 3px;
  font-weight: 700;
}

/* Search Bar */
.header-search {
  flex: 1;
  max-width: 500px;
  position: relative;
}

.search-form {
  display: flex;
  background-color: var(--bg-white);
  border-radius: var(--radius-full);
  overflow: hidden;
  box-shadow: var(--shadow-sm);
  border: 2px solid transparent;
  transition: var(--transition-fast);
}

.search-form:focus-within {
  border-color: var(--accent-color);
}

.search-input {
  width: 100%;
  padding: 10px 20px;
  color: var(--primary-dark);
}

.search-btn {
  background-color: var(--accent-color);
  color: var(--bg-white);
  padding: 0 20px;
  font-weight: 600;
  transition: var(--transition-fast);
}

.search-btn:hover {
  background-color: var(--accent-hover);
}

/* Autocomplete search dropdown */
.autocomplete-dropdown {
  position: absolute;
  top: 105%;
  left: 0;
  width: 100%;
  background: var(--bg-white);
  border-radius: var(--radius-md);
  box-shadow: var(--shadow-lg);
  z-index: 110;
  max-height: 350px;
  overflow-y: auto;
  display: none;
  border: 1px solid var(--border-color);
}

.autocomplete-item {
  display: flex;
  align-items: center;
  padding: 10px 15px;
  border-bottom: 1px solid var(--border-color);
  gap: 12px;
}

.autocomplete-item:last-child {
  border-bottom: none;
}

.autocomplete-item:hover {
  background-color: var(--bg-gray-light);
}

.autocomplete-item img {
  width: 40px;
  height: 40px;
  object-fit: cover;
  border-radius: var(--radius-sm);
}

.autocomplete-info {
  flex: 1;
}

.autocomplete-name {
  font-size: 14px;
  font-weight: 600;
  color: var(--primary-dark);
  white-space: nowrap;
  overflow: hidden;
  text-overflow: ellipsis;
}

.autocomplete-price {
  font-size: 13px;
  color: var(--accent-color);
  font-weight: 700;
}

/* User & Cart Actions */
.header-actions {
  display: flex;
  align-items: center;
  gap: 20px;
}

.action-btn {
  position: relative;
  display: flex;
  align-items: center;
  gap: 8px;
  font-weight: 500;
  font-size: 14px;
  color: var(--bg-white);
}

.action-btn:hover {
  color: var(--accent-color);
}

.action-icon {
  font-size: 20px;
  position: relative;
}

.badge {
  position: absolute;
  top: -8px;
  right: -8px;
  background-color: var(--accent-color);
  color: var(--bg-white);
  font-size: 11px;
  width: 18px;
  height: 18px;
  border-radius: var(--radius-full);
  display: flex;
  align-items: center;
  justify-content: center;
  font-weight: 700;
}

/* Bottom Nav bar */
.bottom-nav {
  background-color: var(--bg-white);
  border-bottom: 1px solid var(--border-color);
  padding: 12px 0;
}

.nav-container {
  display: flex;
  justify-content: space-between;
  align-items: center;
}

.nav-links {
  display: flex;
  align-items: center;
  gap: 25px;
}

.nav-link {
  font-weight: 600;
  font-size: 14px;
  text-transform: uppercase;
  color: var(--primary-color);
  position: relative;
  padding: 5px 0;
}

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

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

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

.nav-link.active {
  color: var(--accent-color);
}

.nav-contact {
  display: flex;
  align-items: center;
  gap: 8px;
  font-weight: 700;
  color: var(--accent-hover);
  font-size: 14px;
}

/* Hero Slider */
.hero-slider-container {
  position: relative;
  height: 480px;
  width: 100%;
  overflow: hidden;
  background-color: var(--primary-dark);
}

.hero-slide {
  position: absolute;
  top: 0;
  left: 0;
  width: 100%;
  height: 100%;
  opacity: 0;
  transition: opacity 0.8s ease-in-out;
  display: flex;
  align-items: center;
  background-size: cover;
  background-position: center;
  z-index: 1;
}

.hero-slide.active {
  opacity: 1;
  z-index: 2;
}

.hero-slide-overlay {
  position: absolute;
  top: 0;
  left: 0;
  width: 100%;
  height: 100%;
  background: linear-gradient(90deg, rgba(15,23,42,0.85) 0%, rgba(15,23,42,0.4) 60%, rgba(15,23,42,0) 100%);
  z-index: 3;
}

.hero-slide-content {
  position: relative;
  z-index: 4;
  color: var(--bg-white);
  max-width: 600px;
}

.hero-subtitle {
  color: var(--accent-color);
  text-transform: uppercase;
  font-weight: 700;
  letter-spacing: 2px;
  font-size: 14px;
  margin-bottom: 10px;
  display: inline-block;
  animation: fadeInUp 0.5s ease backwards;
}

.hero-title {
  font-size: 48px;
  font-weight: 700;
  margin-bottom: 20px;
  line-height: 1.2;
  color: var(--bg-white);
  animation: fadeInUp 0.5s ease 0.2s backwards;
}

.hero-description {
  font-size: 16px;
  margin-bottom: 30px;
  color: var(--bg-gray-light);
  animation: fadeInUp 0.5s ease 0.4s backwards;
}

.hero-btn {
  display: inline-block;
  background-color: var(--accent-color);
  color: var(--bg-white);
  padding: 12px 30px;
  font-weight: 600;
  border-radius: var(--radius-full);
  text-transform: uppercase;
  font-size: 14px;
  letter-spacing: 1px;
  box-shadow: var(--shadow-md);
  animation: fadeInUp 0.5s ease 0.6s backwards;
}

.hero-btn:hover {
  background-color: var(--accent-hover);
  transform: translateY(-2px);
  box-shadow: var(--shadow-lg);
}

/* Slider Controls */
.slider-arrow {
  position: absolute;
  top: 50%;
  transform: translateY(-50%);
  background-color: rgba(255, 255, 255, 0.1);
  color: var(--bg-white);
  width: 50px;
  height: 50px;
  border-radius: var(--radius-full);
  display: flex;
  align-items: center;
  justify-content: center;
  font-size: 20px;
  z-index: 10;
  transition: var(--transition-fast);
}

.slider-arrow:hover {
  background-color: var(--accent-color);
}

.slider-arrow.prev {
  left: 20px;
}

.slider-arrow.next {
  right: 20px;
}

.slider-dots {
  position: absolute;
  bottom: 20px;
  left: 50%;
  transform: translateX(-50%);
  display: flex;
  gap: 10px;
  z-index: 10;
}

.slider-dot {
  width: 12px;
  height: 12px;
  border-radius: var(--radius-full);
  background-color: rgba(255, 255, 255, 0.4);
  cursor: pointer;
  transition: var(--transition-fast);
}

.slider-dot.active {
  background-color: var(--accent-color);
  width: 25px;
}

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

/* Category Banners Section */
.section-padding {
  padding: 60px 0;
}

.section-title-wrap {
  display: flex;
  justify-content: space-between;
  align-items: flex-end;
  margin-bottom: 35px;
  border-bottom: 2px solid var(--border-color);
  padding-bottom: 12px;
}

.section-title {
  font-size: 24px;
  font-weight: 700;
  position: relative;
}

.section-title::after {
  content: '';
  position: absolute;
  bottom: -14px;
  left: 0;
  width: 80px;
  height: 3px;
  background-color: var(--accent-color);
}

.view-all-link {
  font-weight: 600;
  font-size: 14px;
  color: var(--accent-hover);
}

.view-all-link:hover {
  text-decoration: underline;
}

.category-grid {
  display: grid;
  grid-template-columns: repeat(auto-fill, minmax(180px, 1fr));
  gap: 20px;
}

.category-banner-card {
  background-color: var(--bg-white);
  border-radius: var(--radius-md);
  overflow: hidden;
  box-shadow: var(--shadow-sm);
  text-align: center;
  padding: 25px 15px;
  border: 1px solid var(--border-color);
  transition: var(--transition-normal);
  display: flex;
  flex-direction: column;
  align-items: center;
}

.category-banner-card:hover {
  transform: translateY(-5px);
  box-shadow: var(--shadow-lg);
  border-color: var(--accent-color);
}

.category-img-wrap {
  width: 90px;
  height: 90px;
  border-radius: var(--radius-full);
  background-color: var(--bg-gray-light);
  display: flex;
  align-items: center;
  justify-content: center;
  margin-bottom: 15px;
  overflow: hidden;
  transition: var(--transition-normal);
}

.category-banner-card:hover .category-img-wrap {
  background-color: var(--accent-light);
  transform: scale(1.05);
}

.category-img-wrap img {
  width: 60px;
  height: 60px;
  object-fit: contain;
}

.category-name {
  font-size: 15px;
  font-weight: 600;
  color: var(--primary-color);
}

/* Product Grid & Card design */
.product-grid {
  display: grid;
  grid-template-columns: repeat(4, 1fr);
  gap: 25px;
}

.product-card {
  background-color: var(--bg-white);
  border-radius: var(--radius-md);
  border: 1px solid var(--border-color);
  overflow: hidden;
  position: relative;
  transition: var(--transition-normal);
  display: flex;
  flex-direction: column;
}

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

/* Badges */
.card-badges {
  position: absolute;
  top: 12px;
  left: 12px;
  z-index: 10;
  display: flex;
  flex-direction: column;
  gap: 5px;
}

.badge-sale {
  background-color: var(--danger-color);
  color: var(--bg-white);
  font-size: 11px;
  font-weight: 700;
  padding: 3px 8px;
  border-radius: var(--radius-sm);
  text-transform: uppercase;
}

.badge-featured {
  background-color: var(--warning-color);
  color: var(--bg-white);
  font-size: 11px;
  font-weight: 700;
  padding: 3px 8px;
  border-radius: var(--radius-sm);
  text-transform: uppercase;
}

/* Image Container */
.product-card-img-wrap {
  position: relative;
  width: 100%;
  padding-top: 100%; /* 1:1 Aspect Ratio */
  overflow: hidden;
  background-color: var(--bg-gray-light);
}

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

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

/* Hover overlay actions */
.product-card-overlay {
  position: absolute;
  top: 0;
  left: 0;
  width: 100%;
  height: 100%;
  background-color: rgba(15, 23, 42, 0.4);
  display: flex;
  align-items: center;
  justify-content: center;
  gap: 10px;
  opacity: 0;
  transition: var(--transition-normal);
  z-index: 5;
}

.product-card:hover .product-card-overlay {
  opacity: 1;
}

.overlay-btn {
  background-color: var(--bg-white);
  color: var(--primary-color);
  width: 40px;
  height: 40px;
  border-radius: var(--radius-full);
  display: flex;
  align-items: center;
  justify-content: center;
  box-shadow: var(--shadow-md);
  font-size: 16px;
  transition: var(--transition-fast);
}

.overlay-btn:hover {
  background-color: var(--accent-color);
  color: var(--bg-white);
  transform: scale(1.1);
}

.overlay-btn.active {
  background-color: var(--danger-color);
  color: var(--bg-white);
}

/* Card details */
.product-card-info {
  padding: 15px;
  flex: 1;
  display: flex;
  flex-direction: column;
}

.product-card-cat {
  font-size: 12px;
  color: var(--text-muted);
  text-transform: uppercase;
  margin-bottom: 5px;
}

.product-card-title {
  font-size: 15px;
  font-weight: 600;
  margin-bottom: 8px;
  height: 40px;
  overflow: hidden;
  display: -webkit-box;
  -webkit-line-clamp: 2;
  -webkit-box-orient: vertical;
}

.product-card-title a:hover {
  color: var(--accent-color);
}

.product-card-price-row {
  display: flex;
  align-items: center;
  gap: 10px;
  margin-top: auto;
  margin-bottom: 12px;
}

.product-price {
  font-size: 17px;
  font-weight: 700;
  color: var(--accent-color);
}

.product-price-old {
  font-size: 14px;
  color: var(--text-light);
  text-decoration: line-through;
  font-weight: 500;
}

.product-card-add-btn {
  background-color: var(--primary-color);
  color: var(--bg-white);
  width: 100%;
  padding: 8px 12px;
  border-radius: var(--radius-sm);
  font-weight: 600;
  font-size: 13px;
  display: flex;
  align-items: center;
  justify-content: center;
  gap: 8px;
  transition: var(--transition-fast);
}

.product-card-add-btn:hover {
  background-color: var(--accent-color);
}

/* Footer Section */
.footer {
  background-color: var(--primary-dark);
  color: #94a3b8;
  padding-top: 60px;
  font-size: 14px;
}

.footer-top {
  display: grid;
  grid-template-columns: repeat(5, 1fr);
  gap: 40px;
  padding-bottom: 40px;
  border-bottom: 1px solid rgba(255, 255, 255, 0.08);
}

.footer-col-title {
  color: var(--bg-white);
  font-size: 16px;
  font-weight: 600;
  margin-bottom: 20px;
  position: relative;
  text-transform: uppercase;
}

.footer-col-title::after {
  content: '';
  position: absolute;
  bottom: -6px;
  left: 0;
  width: 35px;
  height: 2px;
  background-color: var(--accent-color);
}

.footer-col p {
  line-height: 1.7;
}

.footer-logo {
  margin-bottom: 15px;
}

.footer-logo .logo-brand {
  font-size: 24px;
}

.footer-contact-info {
  margin-top: 15px;
  display: flex;
  flex-direction: column;
  gap: 10px;
}

.footer-contact-item {
  display: flex;
  align-items: center;
  gap: 10px;
}

.footer-contact-item i {
  color: var(--accent-color);
}

.footer-links {
  display: flex;
  flex-direction: column;
  gap: 10px;
}

.footer-links a:hover {
  color: var(--bg-white);
  padding-left: 5px;
}

.footer-tags {
  display: flex;
  flex-wrap: wrap;
  gap: 8px;
}

.footer-tag {
  background-color: rgba(255,255,255,0.05);
  color: #94a3b8;
  padding: 4px 10px;
  font-size: 12px;
  border-radius: var(--radius-sm);
}

.footer-tag:hover {
  background-color: var(--accent-color);
  color: var(--bg-white);
}

/* Footer Bottom */
.footer-bottom {
  padding: 25px 0;
}

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

.copyright {
  font-size: 13px;
}

.payment-methods {
  display: flex;
  gap: 10px;
  align-items: center;
}

.payment-methods img {
  height: 28px;
}

/* Cart Sidebar Drawer */
.cart-sidebar-backdrop {
  position: fixed;
  top: 0;
  left: 0;
  width: 100vw;
  height: 100vh;
  background-color: rgba(15, 23, 42, 0.6);
  z-index: 1000;
  opacity: 0;
  visibility: hidden;
  transition: var(--transition-normal);
}

.cart-sidebar-backdrop.active {
  opacity: 1;
  visibility: visible;
}

.cart-sidebar {
  position: fixed;
  top: 0;
  right: -400px;
  width: 400px;
  height: 100vh;
  background-color: var(--bg-white);
  box-shadow: var(--shadow-lg);
  z-index: 1001;
  display: flex;
  flex-direction: column;
  transition: var(--transition-normal);
}

.cart-sidebar-backdrop.active .cart-sidebar {
  right: 0;
}

.cart-sidebar-header {
  padding: 20px;
  border-bottom: 1px solid var(--border-color);
  display: flex;
  justify-content: space-between;
  align-items: center;
  background-color: var(--primary-dark);
  color: var(--bg-white);
}

.cart-sidebar-title {
  font-size: 18px;
  font-weight: 600;
  color: var(--bg-white);
}

.cart-close-btn {
  color: var(--bg-white);
  font-size: 22px;
}

.cart-close-btn:hover {
  color: var(--danger-color);
}

.cart-sidebar-body {
  flex: 1;
  overflow-y: auto;
  padding: 20px;
}

.cart-sidebar-item {
  display: flex;
  gap: 15px;
  margin-bottom: 20px;
  border-bottom: 1px solid var(--border-color);
  padding-bottom: 15px;
}

.cart-sidebar-item img {
  width: 70px;
  height: 70px;
  object-fit: cover;
  border-radius: var(--radius-sm);
  border: 1px solid var(--border-color);
}

.cart-sidebar-item-info {
  flex: 1;
}

.cart-sidebar-item-name {
  font-size: 14px;
  font-weight: 600;
  color: var(--primary-dark);
  margin-bottom: 5px;
}

.cart-sidebar-item-price {
  font-size: 13px;
  font-weight: 700;
  color: var(--accent-color);
}

.cart-sidebar-item-qty {
  font-size: 12px;
  color: var(--text-muted);
  margin-top: 5px;
}

.cart-sidebar-item-remove {
  color: var(--text-light);
  align-self: center;
}

.cart-sidebar-item-remove:hover {
  color: var(--danger-color);
}

.cart-sidebar-footer {
  padding: 20px;
  border-top: 1px solid var(--border-color);
  background-color: var(--bg-gray-light);
}

.cart-sidebar-total {
  display: flex;
  justify-content: space-between;
  font-weight: 700;
  font-size: 16px;
  color: var(--primary-dark);
  margin-bottom: 15px;
}

.cart-sidebar-actions {
  display: flex;
  flex-direction: column;
  gap: 10px;
}

.cart-btn-primary {
  background-color: var(--accent-color);
  color: var(--bg-white);
  text-align: center;
  padding: 12px;
  border-radius: var(--radius-sm);
  font-weight: 700;
  text-transform: uppercase;
  font-size: 13px;
}

.cart-btn-primary:hover {
  background-color: var(--accent-hover);
}

.cart-btn-secondary {
  background-color: var(--primary-color);
  color: var(--bg-white);
  text-align: center;
  padding: 12px;
  border-radius: var(--radius-sm);
  font-weight: 700;
  text-transform: uppercase;
  font-size: 13px;
}

.cart-btn-secondary:hover {
  background-color: var(--primary-dark);
}

.cart-empty-message {
  text-align: center;
  padding: 40px 0;
  color: var(--text-muted);
}

.cart-empty-message i {
  font-size: 40px;
  margin-bottom: 10px;
  color: var(--text-light);
  display: block;
}

/* Toast Notifications */
.toast-container {
  position: fixed;
  bottom: 20px;
  right: 20px;
  z-index: 1050;
  display: flex;
  flex-direction: column;
  gap: 10px;
}

.toast {
  background-color: var(--primary-dark);
  color: var(--bg-white);
  padding: 15px 25px;
  border-radius: var(--radius-md);
  box-shadow: var(--shadow-lg);
  font-size: 14px;
  font-weight: 600;
  display: flex;
  align-items: center;
  gap: 12px;
  min-width: 250px;
  transform: translateY(100px);
  opacity: 0;
  animation: slideInUp 0.3s forwards;
  border-left: 4px solid var(--accent-color);
}

.toast.toast-error {
  border-left-color: var(--danger-color);
}

@keyframes slideInUp {
  to {
    transform: translateY(0);
    opacity: 1;
  }
}

/* Alerts Page Banner */
.alert {
  padding: 12px 20px;
  border-radius: var(--radius-sm);
  margin-bottom: 20px;
  font-weight: 600;
  font-size: 14px;
}

.alert-success {
  background-color: var(--accent-light);
  color: var(--accent-hover);
  border: 1px solid rgba(16, 185, 129, 0.2);
}

.alert-danger {
  background-color: #fee2e2;
  color: #b91c1c;
  border: 1px solid rgba(239, 68, 68, 0.2);
}

/* Shop and Sidebar Styles */
.shop-layout {
  display: grid;
  grid-template-columns: 280px 1fr;
  gap: 30px;
}

.shop-sidebar {
  background-color: var(--bg-white);
  border: 1px solid var(--border-color);
  border-radius: var(--radius-md);
  padding: 20px;
  align-self: start;
}

.sidebar-widget {
  margin-bottom: 30px;
}

.sidebar-widget:last-child {
  margin-bottom: 0;
}

.widget-title {
  font-size: 16px;
  font-weight: 700;
  margin-bottom: 15px;
  border-bottom: 1px solid var(--border-color);
  padding-bottom: 8px;
}

.widget-categories-list li {
  margin-bottom: 10px;
}

.widget-categories-list a {
  font-size: 14px;
  color: var(--text-color);
  display: flex;
  justify-content: space-between;
}

.widget-categories-list a:hover, .widget-categories-list a.active {
  color: var(--accent-color);
  font-weight: 600;
}

.price-filter-form {
  display: flex;
  flex-direction: column;
  gap: 12px;
}

.price-inputs {
  display: flex;
  gap: 10px;
}

.price-input-group {
  display: flex;
  align-items: center;
  background-color: var(--bg-gray-light);
  border: 1px solid var(--border-color);
  border-radius: var(--radius-sm);
  padding: 8px;
  width: 50%;
}

.price-input-group span {
  font-size: 13px;
  color: var(--text-muted);
  margin-right: 5px;
}

.price-input-group input {
  background: transparent;
  width: 100%;
  font-size: 13px;
  font-weight: 600;
  color: var(--primary-dark);
}

.btn-filter-price {
  background-color: var(--accent-color);
  color: var(--bg-white);
  padding: 8px;
  border-radius: var(--radius-sm);
  font-weight: 600;
  font-size: 13px;
  text-align: center;
}

.btn-filter-price:hover {
  background-color: var(--accent-hover);
}

/* Shop Header and Sorting */
.shop-header {
  background-color: var(--bg-white);
  border: 1px solid var(--border-color);
  border-radius: var(--radius-md);
  padding: 15px 20px;
  display: flex;
  justify-content: space-between;
  align-items: center;
  margin-bottom: 25px;
}

.shop-results-count {
  font-size: 14px;
  color: var(--text-muted);
}

.shop-sorting {
  display: flex;
  align-items: center;
  gap: 10px;
}

.shop-sorting select {
  padding: 6px 12px;
  border: 1px solid var(--border-color);
  border-radius: var(--radius-sm);
  background-color: var(--bg-white);
  color: var(--text-color);
}

/* Pagination */
.pagination {
  display: flex;
  justify-content: center;
  gap: 8px;
  margin-top: 40px;
}

.page-num {
  width: 40px;
  height: 40px;
  border: 1px solid var(--border-color);
  background-color: var(--bg-white);
  display: flex;
  align-items: center;
  justify-content: center;
  border-radius: var(--radius-sm);
  font-weight: 600;
}

.page-num.active {
  background-color: var(--accent-color);
  border-color: var(--accent-color);
  color: var(--bg-white);
}

.page-num:hover:not(.active) {
  border-color: var(--accent-color);
  color: var(--accent-color);
}

/* Single Product Detail Page CSS */
.product-detail-layout {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 40px;
  background-color: var(--bg-white);
  border: 1px solid var(--border-color);
  border-radius: var(--radius-lg);
  padding: 40px;
  margin-bottom: 40px;
}

.product-gallery {
  display: flex;
  flex-direction: column;
  gap: 20px;
}

.product-main-img {
  background-color: var(--bg-gray-light);
  border-radius: var(--radius-md);
  overflow: hidden;
  aspect-ratio: 1;
}

.product-main-img img {
  width: 100%;
  height: 100%;
  object-fit: cover;
}

.product-thumbs {
  display: flex;
  gap: 10px;
}

.product-thumb {
  width: 80px;
  height: 80px;
  border: 2px solid transparent;
  border-radius: var(--radius-sm);
  overflow: hidden;
  cursor: pointer;
  background-color: var(--bg-gray-light);
}

.product-thumb.active {
  border-color: var(--accent-color);
}

.product-thumb img {
  width: 100%;
  height: 100%;
  object-fit: cover;
}

.product-info-panel {
  display: flex;
  flex-direction: column;
}

.product-detail-cat {
  font-size: 13px;
  color: var(--accent-hover);
  text-transform: uppercase;
  font-weight: 700;
  margin-bottom: 10px;
}

.product-detail-title {
  font-size: 30px;
  font-weight: 700;
  margin-bottom: 15px;
}

.product-detail-price-row {
  display: flex;
  align-items: center;
  gap: 15px;
  margin-bottom: 20px;
  padding-bottom: 20px;
  border-bottom: 1px solid var(--border-color);
}

.detail-price {
  font-size: 28px;
  font-weight: 800;
  color: var(--accent-color);
}

.detail-price-old {
  font-size: 18px;
  color: var(--text-light);
  text-decoration: line-through;
}

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

.product-meta-items {
  margin-bottom: 25px;
  font-size: 14px;
}

.product-meta-item {
  margin-bottom: 8px;
}

.product-meta-item span {
  font-weight: 700;
  color: var(--primary-dark);
}

.detail-actions-row {
  display: flex;
  gap: 15px;
  align-items: center;
  margin-bottom: 30px;
}

.qty-selector {
  display: flex;
  align-items: center;
  border: 1px solid var(--border-color);
  border-radius: var(--radius-sm);
  overflow: hidden;
  background-color: var(--bg-gray-light);
}

.qty-btn {
  width: 40px;
  height: 45px;
  display: flex;
  align-items: center;
  justify-content: center;
  font-weight: 700;
  color: var(--primary-color);
}

.qty-input {
  width: 50px;
  height: 45px;
  text-align: center;
  background: transparent;
  font-weight: 700;
  color: var(--primary-dark);
}

.btn-add-to-cart-large {
  background-color: var(--accent-color);
  color: var(--bg-white);
  padding: 0 35px;
  height: 45px;
  font-weight: 700;
  border-radius: var(--radius-sm);
  display: flex;
  align-items: center;
  gap: 10px;
}

.btn-add-to-cart-large:hover {
  background-color: var(--accent-hover);
}

.btn-wishlist-large {
  border: 1px solid var(--border-color);
  color: var(--text-color);
  width: 45px;
  height: 45px;
  border-radius: var(--radius-sm);
  display: flex;
  align-items: center;
  justify-content: center;
  font-size: 18px;
}

.btn-wishlist-large:hover, .btn-wishlist-large.active {
  background-color: var(--danger-color);
  color: var(--bg-white);
  border-color: var(--danger-color);
}

/* Tabs */
.product-tabs-wrapper {
  background-color: var(--bg-white);
  border: 1px solid var(--border-color);
  border-radius: var(--radius-md);
  margin-bottom: 50px;
}

.tabs-nav {
  display: flex;
  border-bottom: 1px solid var(--border-color);
}

.tab-btn {
  padding: 15px 30px;
  font-weight: 600;
  font-size: 14px;
  text-transform: uppercase;
  color: var(--text-muted);
  border-bottom: 2px solid transparent;
}

.tab-btn.active {
  color: var(--accent-color);
  border-bottom-color: var(--accent-color);
}

.tabs-content {
  padding: 30px;
}

.tab-panel {
  display: none;
}

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

/* Cart Table Page styles */
.cart-table-wrapper {
  background-color: var(--bg-white);
  border: 1px solid var(--border-color);
  border-radius: var(--radius-lg);
  overflow: hidden;
  margin-bottom: 30px;
}

.cart-table {
  width: 100%;
  border-collapse: collapse;
}

.cart-table th {
  background-color: var(--primary-color);
  color: var(--bg-white);
  text-align: left;
  padding: 15px 20px;
  font-weight: 600;
  font-size: 14px;
  text-transform: uppercase;
}

.cart-table td {
  padding: 20px;
  border-bottom: 1px solid var(--border-color);
  vertical-align: middle;
}

.cart-product-cell {
  display: flex;
  align-items: center;
  gap: 15px;
}

.cart-product-cell img {
  width: 60px;
  height: 60px;
  object-fit: cover;
  border-radius: var(--radius-sm);
  border: 1px solid var(--border-color);
}

.cart-product-name {
  font-weight: 600;
  color: var(--primary-dark);
}

.cart-remove-item {
  color: var(--text-light);
}

.cart-remove-item:hover {
  color: var(--danger-color);
}

.cart-summary-layout {
  display: grid;
  grid-template-columns: 1fr 400px;
  gap: 30px;
}

.cart-coupon-box {
  background-color: var(--bg-white);
  border: 1px solid var(--border-color);
  border-radius: var(--radius-md);
  padding: 20px;
  align-self: start;
}

.cart-summary-box {
  background-color: var(--bg-white);
  border: 1px solid var(--border-color);
  border-radius: var(--radius-md);
  padding: 25px;
}

.summary-title {
  font-size: 18px;
  font-weight: 700;
  margin-bottom: 20px;
  padding-bottom: 10px;
  border-bottom: 1px solid var(--border-color);
}

.summary-row {
  display: flex;
  justify-content: space-between;
  margin-bottom: 12px;
  font-size: 14px;
}

.summary-row.total {
  font-size: 18px;
  font-weight: 800;
  color: var(--primary-dark);
  border-top: 1px solid var(--border-color);
  padding-top: 15px;
  margin-top: 15px;
  margin-bottom: 20px;
}

.btn-checkout-large {
  display: block;
  background-color: var(--accent-color);
  color: var(--bg-white);
  text-align: center;
  padding: 12px;
  font-weight: 700;
  border-radius: var(--radius-sm);
  text-transform: uppercase;
}

.btn-checkout-large:hover {
  background-color: var(--accent-hover);
}

/* Forms & Authentication Fields */
.auth-wrapper {
  max-width: 450px;
  margin: 0 auto;
  background-color: var(--bg-white);
  border: 1px solid var(--border-color);
  border-radius: var(--radius-lg);
  padding: 40px;
  box-shadow: var(--shadow-md);
}

.auth-title {
  text-align: center;
  font-size: 24px;
  margin-bottom: 30px;
}

.form-group {
  margin-bottom: 20px;
}

.form-label {
  display: block;
  font-size: 14px;
  font-weight: 600;
  color: var(--primary-color);
  margin-bottom: 8px;
}

.form-input {
  width: 100%;
  padding: 10px 15px;
  border: 1px solid var(--border-color);
  border-radius: var(--radius-sm);
  background-color: var(--bg-gray-light);
  color: var(--primary-dark);
  transition: var(--transition-fast);
}

.form-input:focus {
  background-color: var(--bg-white);
  border-color: var(--accent-color);
}

.btn-auth-submit {
  width: 100%;
  background-color: var(--accent-color);
  color: var(--bg-white);
  padding: 12px;
  font-weight: 700;
  border-radius: var(--radius-sm);
  text-transform: uppercase;
  margin-top: 10px;
}

.btn-auth-submit:hover {
  background-color: var(--accent-hover);
}

.auth-switch-text {
  text-align: center;
  font-size: 14px;
  margin-top: 20px;
  color: var(--text-muted);
}

.auth-switch-text a {
  color: var(--accent-color);
  font-weight: 600;
}

/* User Profile Account Layout */
.account-layout {
  display: grid;
  grid-template-columns: 250px 1fr;
  gap: 30px;
}

.account-menu {
  background-color: var(--bg-white);
  border: 1px solid var(--border-color);
  border-radius: var(--radius-md);
  overflow: hidden;
  align-self: start;
}

.account-menu-item {
  padding: 12px 20px;
  border-bottom: 1px solid var(--border-color);
  display: flex;
  align-items: center;
  gap: 12px;
  font-weight: 600;
  font-size: 14px;
}

.account-menu-item:last-child {
  border-bottom: none;
}

.account-menu-item.active, .account-menu-item:hover {
  background-color: var(--accent-light);
  color: var(--accent-hover);
}

.account-panel {
  background-color: var(--bg-white);
  border: 1px solid var(--border-color);
  border-radius: var(--radius-md);
  padding: 30px;
}

.account-panel-title {
  font-size: 20px;
  margin-bottom: 25px;
  padding-bottom: 10px;
  border-bottom: 1px solid var(--border-color);
}

/* Order Tables */
.order-table {
  width: 100%;
  border-collapse: collapse;
}

.order-table th {
  text-align: left;
  padding: 12px 15px;
  border-bottom: 2px solid var(--border-color);
  font-weight: 700;
  font-size: 13px;
  text-transform: uppercase;
}

.order-table td {
  padding: 15px;
  border-bottom: 1px solid var(--border-color);
  font-size: 14px;
}

.order-status-badge {
  padding: 3px 8px;
  border-radius: var(--radius-full);
  font-size: 11px;
  font-weight: 700;
  text-transform: uppercase;
  display: inline-block;
}

.status-pending { background-color: #fef3c7; color: #d97706; }
.status-processing { background-color: #e0f2fe; color: #0284c7; }
.status-shipped { background-color: #fae8ff; color: #c084fc; }
.status-delivered { background-color: var(--accent-light); color: var(--accent-hover); }
.status-cancelled { background-color: #fee2e2; color: var(--danger-color); }

.view-order-btn {
  background-color: var(--primary-color);
  color: var(--bg-white);
  padding: 4px 10px;
  border-radius: var(--radius-sm);
  font-size: 12px;
  font-weight: 600;
}

.view-order-btn:hover {
  background-color: var(--accent-color);
}

/* Responsive Breakpoints */
@media (max-width: 1024px) {
  .product-grid {
    grid-template-columns: repeat(3, 1fr);
  }
  .footer-top {
    grid-template-columns: repeat(3, 1fr);
  }
  .shop-layout {
    grid-template-columns: 1fr;
  }
}

@media (max-width: 768px) {
  .product-grid {
    grid-template-columns: repeat(2, 1fr);
  }
  .footer-top {
    grid-template-columns: repeat(2, 1fr);
  }
  .header-search {
    order: 3;
    max-width: 100%;
    width: 100%;
  }
  .header-container {
    flex-wrap: wrap;
  }
  .product-detail-layout {
    grid-template-columns: 1fr;
  }
  .cart-summary-layout {
    grid-template-columns: 1fr;
  }
  .account-layout {
    grid-template-columns: 1fr;
  }
}

@media (max-width: 480px) {
  .product-grid {
    grid-template-columns: 1fr;
  }
  .footer-top {
    grid-template-columns: 1fr;
  }
  .hero-title {
    font-size: 32px;
  }
  .hero-slider-container {
    height: 350px;
  }
}
