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

/* Snappy Fresh Header and Navigation - Sixty60 Design System */
:root {
    --snappy-green: #42af57;
    --snappy-green-soft: #8bc34a;
    --snappy-ink: #1a1a2e;
    --snappy-muted: #6b7280;
    --snappy-border: #e8e8e8;
    --snappy-bg: #f8f9fa;
    --snappy-header-dark: #2c3e3a;
}

/* Screen-reader only utilities */
.sr-only,
.visually-hidden {
    position: absolute !important;
    width: 1px !important;
    height: 1px !important;
    padding: 0 !important;
    margin: -1px !important;
    overflow: hidden !important;
    clip: rect(0, 0, 0, 0) !important;
    white-space: nowrap !important;
    border: 0 !important;
}

/* Legacy class compatibility (in case referenced elsewhere) */
.snappy-header {
    background: #ffffff;
}

@media (max-width: 991.98px) {
    .snappy-nav {
        display: none;
    }
}
/* Custom Product Card Styles - Uniform Sizing */

/* Make all product cards the same height */
.product-cart-wrap {
    display: flex;
    flex-direction: column;
    height: 100%;
    min-height: 420px;
}

/* Ensure consistent image container height */
.product-cart-wrap .product-img-action-wrap {
    height: 280px;
    min-height: 280px;
    max-height: 280px;
    display: flex;
    align-items: center;
    justify-content: center;
}

/* Make all product images the same size with object-fit */
.product-cart-wrap .product-img-action-wrap .product-img {
    height: 100%;
    display: flex;
    align-items: center;
    justify-content: center;
}

.product-cart-wrap .product-img-action-wrap .product-img a {
    height: 100%;
    width: 100%;
    display: flex;
    align-items: center;
    justify-content: center;
}

.product-cart-wrap .product-img-action-wrap .product-img a img {
    width: 100%;
    height: 100%;
    object-fit: contain;
    object-position: center;
}

.product-cart-wrap .product-img-action-wrap .product-img a img.default-img {
    opacity: 1;
    visibility: visible;
    position: relative;
    z-index: 1;
}

.product-cart-wrap .product-img-action-wrap .product-img a img.hover-img {
    width: 100%;
    height: 100%;
    object-fit: contain;
    object-position: center;
}

/* Ensure product content takes remaining space */
.product-cart-wrap .product-content-wrap {
    flex: 1;
    display: flex;
    flex-direction: column;
    padding: 20px;
}

/* Make product titles consistent height */
.product-cart-wrap .product-content-wrap h2 {
    min-height: 48px;
    line-height: 1.4;
    margin-bottom: 10px;
    display: -webkit-box;
    -webkit-line-clamp: 2;
    -webkit-box-orient: vertical;
    overflow: hidden;
    text-overflow: ellipsis;
}

/* Ensure add to cart button stays at bottom */
.product-cart-wrap .product-content-wrap .product-card-bottom {
    margin-top: auto;
}

/* For slider products - same sizing */
.carausel-4-columns-cover .product-cart-wrap {
    min-height: 420px;
}

/* For list view products */
.product-list .product-cart-wrap {
    min-height: auto;
}

.product-list .product-img-action-wrap {
    height: 220px;
    min-height: 220px;
    max-height: 220px;
}

/* Sold progress bar section - consistent height */
.product-cart-wrap .sold {
    min-height: 50px;
}

/* Skeleton height matching */
.product-skeleton {
  min-height: 420px;
  display: flex;
  flex-direction: column;
}

.product-skeleton .skeleton-image {
  height: 280px;
  min-height: 280px;
}

@media (max-width: 575px) {
  .product-skeleton {
    min-height: auto;
  }
  .product-skeleton .skeleton-image {
    height: 150px;
    min-height: 150px;
  }
}
/**
 * Page Transitions - Professional smooth animations
 * Optimized for speed and smoothness - Modern SPA feel
 */

/* Fast page enter animation */
@keyframes pageEnter {
    from {
        opacity: 0;
        transform: translateY(5px);
    }
    to {
        opacity: 1;
        transform: translateY(0);
    }
}

/* Apply to all page content - fast animation */
body {
    animation: pageEnter 0.2s ease-out;
}

/* Fast transitions for all interactive elements */
a, button, .btn {
    transition: all 0.15s cubic-bezier(0.4, 0, 0.2, 1);
}

/* Subtle hover effects */
a:hover, button:hover, .btn:hover {
    transform: translateY(-0.5px);
}

/* Fast image loading — fade in on load */
img {
    transition: opacity 0.2s ease-in-out;
}

img:not([loading]) {
    opacity: 1;
}

/* Fast card hover effects */
.product-cart-wrap,
.card,
.section-card {
    transition: transform 0.2s cubic-bezier(0.4, 0, 0.2, 1), box-shadow 0.2s cubic-bezier(0.4, 0, 0.2, 1);
}

.product-cart-wrap:hover,
.card:hover,
.section-card:hover {
    transform: translateY(-2px);
}

/* Fast menu transitions */
.main-menu ul li {
    transition: all 0.15s cubic-bezier(0.4, 0, 0.2, 1);
}


/* Loading skeleton shimmer - faster */
@keyframes shimmer {
    0% {
        background-position: -1000px 0;
    }
    100% {
        background-position: 1000px 0;
    }
}

.skeleton {
    background: linear-gradient(
        90deg,
        #f0f0f0 25%,
        #e0e0e0 50%,
        #f0f0f0 75%
    );
    background-size: 1000px 100%;
    animation: shimmer 1.5s infinite linear;
}

/* Fast modal/drawer animations */
.modal-enter {
    animation: modalEnter 0.25s cubic-bezier(0.4, 0, 0.2, 1);
}

@keyframes modalEnter {
    from {
        opacity: 0;
        transform: scale(0.97);
    }
    to {
        opacity: 1;
        transform: scale(1);
    }
}

/* Fast fade transitions */
.fade-enter {
    animation: fadeIn 0.2s ease-in-out;
}

@keyframes fadeIn {
    from {
        opacity: 0;
    }
    to {
        opacity: 1;
    }
}

/* Fast slide transitions */
.slide-enter {
    animation: slideUp 0.25s cubic-bezier(0.4, 0, 0.2, 1);
}

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

/* Prevent layout shift during loading */
.layout-content {
    min-height: 100vh;
}

/* Modern scrollbar */
::-webkit-scrollbar {
    width: 8px;
    height: 8px;
}

::-webkit-scrollbar-track {
    background: #f5f5f5;
}

::-webkit-scrollbar-thumb {
    background: #3bb77e;
    border-radius: 4px;
    transition: background 0.2s ease;
}

::-webkit-scrollbar-thumb:hover {
    background: #2a9d65;
}

/* Fast focus states */
input:focus,
textarea:focus,
select:focus {
    outline: none;
    border-color: #3bb77e;
    box-shadow: 0 0 0 3px rgba(59, 183, 126, 0.1);
    transition: all 0.15s cubic-bezier(0.4, 0, 0.2, 1);
}

/* Fast button press effect */
button:active,
.btn:active {
    transform: scale(0.98);
    transition: transform 0.1s cubic-bezier(0.4, 0, 0.2, 1);
}

/* Performance optimization - GPU acceleration for frequently animated elements */
.product-cart-wrap,
.card,
.route-loader-bar,
a,
button,
.btn {
    will-change: auto;
    transform: translateZ(0);
    backface-visibility: hidden;
}

/* Link prefetch on hover for instant navigation */
a[href] {
    -webkit-tap-highlight-color: transparent;
}

/* Remove focus outline for mouse users only */
*:focus:not(:focus-visible) {
    outline: none;
}

/* Keep outline for keyboard users */
*:focus-visible {
    outline: 2px solid #3bb77e;
    outline-offset: 2px;
}

/* Reduce motion for users who prefer it */
@media (prefers-reduced-motion: reduce) {
    *,
    *::before,
    *::after {
        animation-duration: 0.01ms !important;
        animation-iteration-count: 1 !important;
        transition-duration: 0.01ms !important;
        scroll-behavior: auto !important;
    }
}

/* Performance boost for mobile */
@media (max-width: 768px) {
    * {
        -webkit-font-smoothing: antialiased;
        -moz-osx-font-smoothing: grayscale;
    }
}
/* ==========================================================================
   Mobile Responsive Optimizations - Snappy Fresh
   Touch-friendly, adaptive layout for all screen sizes
   ========================================================================== */

/* --- Base Mobile Reset --- */
* {
  -webkit-tap-highlight-color: transparent;
}

html {
  -webkit-text-size-adjust: 100%;
}

body {
  overflow-x: hidden;
  -webkit-overflow-scrolling: touch;
}

/* Safe area padding for notched devices (iPhone X+) */
body {
  padding-top: env(safe-area-inset-top);
}

/* --- Touch Targets: Minimum 44px --- */
@media (max-width: 991px) {
  a, button, [role="button"], input[type="submit"] {
    min-height: 44px;
  }

  /* Mobile menu links */
  .mobile-menu li a {
    padding: 12px 0 !important;
    display: block;
    font-size: 15px;
  }

  .mobile-menu li {
    border-bottom: 1px solid #f0f0f0;
  }

  /* Category dropdown links in mobile */
  .categori-dropdown-wrap ul li a {
    padding: 12px 16px !important;
    font-size: 15px;
    display: flex;
    align-items: center;
  }
}

/* --- Header Mobile Bar --- */
@media (max-width: 991px) {
  .snappy-header {
    padding: 8px 0 !important;
  }

  .snappy-header .container {
    padding-left: 12px;
    padding-right: 12px;
  }

  .header-action-icon-2 {
    min-width: 44px;
    min-height: 44px;
    display: flex;
    align-items: center;
    justify-content: center;
  }
}

/* ==========================================================================
   BOTTOM NAVIGATION BAR - Mobile Only
   ========================================================================== */
.bottom-nav {
  display: none;
}

@media (max-width: 768px) {
  .bottom-nav {
    display: flex;
    position: fixed;
    bottom: 0;
    left: 0;
    right: 0;
    z-index: var(--z-fixed, 500);
    background: #ffffff;
    border-top: 1px solid #e8e8e8;
    padding: 6px 0;
    padding-bottom: calc(6px + env(safe-area-inset-bottom));
    box-shadow: 0 -2px 12px rgba(0, 0, 0, 0.08);
    justify-content: space-around;
    align-items: center;
  }

  .bottom-nav-item {
    display: flex;
    flex-direction: column;
    align-items: center;
    justify-content: center;
    flex: 1;
    text-decoration: none;
    color: #8c8c8c;
    font-size: 10px;
    font-weight: 500;
    gap: 2px;
    min-height: 44px !important;
    padding: 4px 0;
    transition: color 0.2s ease;
    -webkit-tap-highlight-color: transparent;
    position: relative;
  }

  .bottom-nav-item span {
    line-height: 1;
    letter-spacing: 0.2px;
  }

  .bottom-nav-item svg {
    transition: transform 0.2s ease;
  }

  .bottom-nav-item.active {
    color: #42af57;
  }

  .bottom-nav-item.active svg {
    transform: scale(1.05);
  }

  /* Cart badge */
  .bottom-nav-cart-icon {
    position: relative;
    display: flex;
    align-items: center;
    justify-content: center;
  }

  .bottom-nav-badge {
    position: absolute;
    top: -6px;
    right: -10px;
    background: #ff4757;
    color: white;
    font-size: 9px;
    font-weight: 700;
    min-width: 16px;
    height: 16px;
    border-radius: 8px;
    display: flex;
    align-items: center;
    justify-content: center;
    padding: 0 4px;
    line-height: 1;
  }

  /* Add bottom padding to body so content isn't hidden behind bottom nav */
  body {
    padding-bottom: calc(60px + env(safe-area-inset-bottom)) !important;
  }

  /* Adjust bottom CTAs to sit above bottom nav */
  .mobile-fixed-bottom-cta {
    bottom: calc(56px + env(safe-area-inset-bottom)) !important;
  }
}

/* ==========================================================================
   PRODUCT CARDS - Mobile Optimized
   Compact, clean cards inspired by modern grocery apps
   ========================================================================== */

/* Product unit label (e.g., "Per Litre") */
.product-unit-label {
  font-size: 11px;
  color: #42af57;
  font-weight: 500;
  margin-top: 4px;
  display: flex;
  align-items: center;
  gap: 4px;
  white-space: nowrap;
  overflow: hidden;
  text-overflow: ellipsis;
}

/* Add to cart button - Green pill style */
.product-cart-wrap .product-card-bottom .add-cart .add {
  background: #42af57 !important;
  color: white !important;
  padding: 8px 16px !important;
  border-radius: 6px !important;
  display: inline-flex !important;
  align-items: center !important;
  gap: 5px !important;
  font-weight: 600 !important;
  font-size: 13px !important;
  cursor: pointer;
  border: none;
  transition: all 0.2s ease;
  white-space: nowrap;
}

.product-cart-wrap .product-card-bottom .add-cart .add:hover {
  background: #369e48 !important;
  color: white !important;
  transform: translateY(-1px);
  box-shadow: 0 4px 12px rgba(66, 175, 87, 0.3);
}

/* --- Product Grid: 2 columns on mobile --- */
@media (max-width: 575px) {
  .product-grid-3 .col-12,
  .product-grid-3 .col-sm-6 {
    flex: 0 0 50%;
    max-width: 50%;
    padding-left: 5px;
    padding-right: 5px;
  }

  .product-grid-3 .row {
    margin-left: -5px;
    margin-right: -5px;
  }

  .product-cart-wrap {
    margin-bottom: 10px !important;
    border-radius: 12px;
    overflow: hidden;
    border: 1px solid #eee;
    min-height: auto !important;
    box-shadow: 0 1px 4px rgba(0,0,0,0.04);
  }

  /* Image container — fill width, fixed height */
  .product-cart-wrap .product-img-action-wrap {
    height: 150px !important;
    min-height: 150px !important;
    max-height: 150px !important;
    background: #fafafa;
    padding: 8px !important;
  }

  .product-cart-wrap .product-img-action-wrap .product-img {
    height: 100% !important;
  }

  .product-cart-wrap .product-img-action-wrap .product-img a {
    height: 100% !important;
  }

  .product-cart-wrap .product-img-action-wrap .product-img a img {
    object-fit: contain !important;
    width: 100% !important;
    height: 100% !important;
  }

  /* Hide action buttons (eye, heart) on mobile — too cluttered */
  .product-action-1 {
    display: none !important;
  }

  /* Content area — tight, no wasted space */
  .product-cart-wrap .product-content-wrap {
    padding: 8px 10px 10px !important;
  }

  /* Hide category label on mobile grid — saves vertical space */
  .product-cart-wrap .product-content-wrap .product-category {
    display: none !important;
  }

  /* Product title — tight */
  .product-cart-wrap .product-content-wrap h2 {
    min-height: auto !important;
    margin-bottom: 2px !important;
    margin-top: 0 !important;
  }

  .product-cart-wrap .product-content-wrap h2 a,
  .product-cart-wrap .product-content-wrap h2 {
    font-size: 13px !important;
    line-height: 1.25 !important;
    font-weight: 600 !important;
    color: #253d4e !important;
    -webkit-line-clamp: 2;
    display: -webkit-box;
    -webkit-box-orient: vertical;
    overflow: hidden;
  }

  /* Price — bold, prominent */
  .product-cart-wrap .product-card-bottom {
    flex-direction: column !important;
    align-items: stretch !important;
    margin-top: 0 !important;
    gap: 0 !important;
    padding-top: 0 !important;
  }

  .product-cart-wrap .product-card-bottom .product-price {
    padding-top: 2px !important;
    margin-bottom: 0 !important;
  }

  .product-cart-wrap .product-card-bottom .product-price span {
    font-size: 16px !important;
    font-weight: 700 !important;
    color: #42af57 !important;
  }

  .product-cart-wrap .product-card-bottom .product-price span.old-price {
    font-size: 11px !important;
    color: #adadad !important;
  }

  /* Unit label compact */
  .product-unit-label {
    font-size: 10px;
    margin-top: 0;
    color: #888;
  }

  /* Add button — compact green pill, full width */
  .product-cart-wrap .product-card-bottom .add-cart {
    margin-top: 6px !important;
  }

  .product-cart-wrap .product-card-bottom .add-cart .add {
    padding: 7px 10px !important;
    font-size: 12px !important;
    border-radius: 8px !important;
    width: 100% !important;
    justify-content: center !important;
    text-align: center;
  }

  .product-cart-wrap .product-card-bottom .add-cart .add i {
    font-size: 11px;
  }

  /* Hide hover image on touch devices */
  .product-img .hover-img {
    display: none !important;
  }

  /* Product badges — compact, top-left */
  .product-badges {
    z-index: 2;
  }

  .product-badges span {
    font-size: 9px !important;
    padding: 2px 6px !important;
    line-height: 1.4;
    border-radius: 4px;
  }
}

/* Very small phones */
@media (max-width: 374px) {
  .product-grid-3 .col-12,
  .product-grid-3 .col-sm-6,
  .product-grid-3 .col-6 {
    flex: 0 0 50%;
    max-width: 50%;
  }

  .product-cart-wrap .product-img-action-wrap {
    height: 120px !important;
    min-height: 120px !important;
    max-height: 120px !important;
  }

  .product-cart-wrap .product-content-wrap h2 a,
  .product-cart-wrap .product-content-wrap h2 {
    font-size: 12px !important;
  }

  .product-cart-wrap .product-card-bottom .product-price span {
    font-size: 14px !important;
  }
}

/* --- Cart Page Responsive --- */
@media (max-width: 768px) {
  .cart-container {
    grid-template-columns: 1fr !important;
    gap: 20px !important;
  }

  .cart-container .cart-summary {
    order: -1;
  }

  .cart-item {
    flex-direction: column !important;
    gap: 12px !important;
  }

  .qty-btn, .quantity-btn {
    min-width: 44px !important;
    min-height: 44px !important;
    font-size: 18px !important;
  }
}

/* --- Shop Filter Bar - Mobile --- */
@media (max-width: 640px) {
  .shop-product-fillter {
    flex-direction: row !important;
    align-items: center !important;
    justify-content: space-between !important;
    gap: 0 !important;
    padding: 6px 0 !important;
    margin-bottom: 6px !important;
    border-bottom: none !important;
  }

  .shop-product-fillter .totall-product p {
    font-size: 13px !important;
    margin-bottom: 0 !important;
  }

  /* Hide Show/Sort dropdowns on mobile — clutter */
  .sort-by-product-area {
    display: none !important;
  }
}

/* --- Checkout Responsive --- */
@media (max-width: 768px) {
  .checkout-form input,
  .checkout-form select,
  .checkout-form textarea {
    font-size: 16px !important; /* Prevents iOS zoom on focus */
    padding: 12px !important;
  }

  .payment-method-btn {
    min-height: 56px !important;
    padding: 12px 16px !important;
  }
}

/* --- Pagination Touch-Friendly --- */
@media (max-width: 640px) {
  .pagination-area .pagination li a,
  .pagination-area .pagination li span {
    min-width: 38px !important;
    min-height: 38px !important;
    display: flex !important;
    align-items: center !important;
    justify-content: center !important;
    font-size: 13px !important;
    border-radius: 8px !important;
  }

  .pagination-area {
    margin-bottom: 20px;
  }
}

/* --- Modal/Popup Mobile --- */
@media (max-width: 640px) {
  .react-responsive-modal-modal {
    width: 95vw !important;
    max-width: 95vw !important;
    margin: 0 !important;
    padding: 16px !important;
    border-radius: 12px !important;
  }
}

/* --- Footer Mobile --- */
@media (max-width: 768px) {
  /* Add extra padding at the bottom for bottom nav clearance */
  footer {
    padding-bottom: 20px;
  }

  footer .container {
    padding-left: 16px;
    padding-right: 16px;
  }

  footer a[style*="borderRadius: \"50%\""],
  footer a svg {
    min-width: 40px;
    min-height: 40px;
  }
}

/* --- Typography Mobile --- */
@media (max-width: 640px) {
  h1 {
    font-size: 22px !important;
    line-height: 1.2 !important;
  }

  h2 {
    font-size: 18px !important;
  }

  h3 {
    font-size: 16px !important;
  }

  .mt-50 {
    margin-top: 20px !important;
  }

  .mb-50 {
    margin-bottom: 20px !important;
  }

  .mt-30 {
    margin-top: 12px !important;
  }

  .mb-30 {
    margin-bottom: 12px !important;
  }

  section {
    padding-left: 0;
    padding-right: 0;
  }

  .container {
    padding-left: 10px;
    padding-right: 10px;
  }
}

/* --- Mobile Menu Improvements --- */
.mobile-header-wrapper-style {
  max-width: min(80vw, 360px);
}

.mobile-header-wrapper-style .mobile-header-content-area {
  padding-bottom: env(safe-area-inset-bottom, 20px);
}

/* Smooth slide-in animation */
.mobile-header-wrapper-style.sidebar-visible {
  transform: translateX(0) !important;
  transition: transform 0.3s cubic-bezier(0.4, 0, 0.2, 1) !important;
}

/* --- Sticky Header Mobile Compact --- */
@media (max-width: 991px) {
  .header-sticky {
    padding: 6px 0 !important;
  }

  .header-sticky .header-action-right {
    gap: 8px;
  }
}

/* --- Breadcrumb on Mobile --- */
@media (max-width: 640px) {
  .page-header.breadcrumb-wrap {
    padding: 8px 0 !important;
  }

  .page-header.breadcrumb-wrap h2 {
    font-size: 16px !important;
  }
}

/* --- QuickView Modal Mobile --- */
@media (max-width: 768px) {
  .quick-view-content {
    flex-direction: column !important;
  }

  .quick-view-content .product-detail-info {
    padding: 16px !important;
  }
}

/* --- Scrollbar Hide on Mobile --- */
@media (max-width: 991px) {
  ::-webkit-scrollbar {
    width: 0;
    height: 0;
  }

  /* Firefox scrollbar hide */
  * {
    scrollbar-width: none;
  }
}

/* --- Swiper/Carousel Mobile --- */
@media (max-width: 640px) {
  .swiper-button-next,
  .swiper-button-prev {
    width: 32px !important;
    height: 32px !important;
  }

  .swiper-button-next::after,
  .swiper-button-prev::after {
    font-size: 12px !important;
  }

  /* Slider navigation arrows — reposition for mobile */
  .slider-arrow .slider-btn {
    width: 30px !important;
    height: 30px !important;
    line-height: 30px !important;
    font-size: 11px !important;
  }

  /* Related slider arrows — position above slider, right-aligned */
  .carausel-6-columns-arrow,
  .carausel-4-columns-arrow {
    position: absolute;
    top: -35px;
    right: 0;
    display: flex;
    gap: 6px;
  }

  .carausel-6-columns-arrow .slider-btn,
  .carausel-4-columns-arrow .slider-btn {
    position: static !important;
    width: 28px !important;
    height: 28px !important;
  }

  /* Product cards inside sliders — ensure they look good */
  .swiper-slide .product-cart-wrap {
    margin-bottom: 0 !important;
  }

  /* Custom nav buttons (Prev/Next text) — compact */
  .custom-nav button {
    font-size: 12px !important;
    padding: 4px 12px !important;
    min-height: 32px !important;
  }
}

/* --- Bottom Fixed CTA for Mobile (used by cart/checkout) --- */
@media (max-width: 768px) {
  .mobile-fixed-bottom-cta {
    position: fixed;
    left: 0;
    right: 0;
    padding: 12px 16px;
    background: white;
    box-shadow: 0 -4px 12px rgba(0,0,0,0.1);
    z-index: 999;
  }
}

/* --- Prevent Horizontal Scroll --- */
html, body {
  max-width: 100vw;
  overflow-x: hidden;
}

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

/* Tables scroll horizontally */
@media (max-width: 640px) {
  table {
    display: block;
    overflow-x: auto;
    -webkit-overflow-scrolling: touch;
  }
}

/* --- Search Bar Mobile --- */
@media (max-width: 640px) {
  .search-bar-snappy {
    flex-direction: column !important;
    border-radius: 10px !important;
  }

  .search-bar-snappy select {
    max-width: 100% !important;
    width: 100% !important;
    border-bottom: 1px solid #eee !important;
    border-radius: 10px 10px 0 0 !important;
    padding: 10px 16px !important;
    font-size: 13px !important;
  }

  .search-bar-snappy input {
    font-size: 14px !important;
    padding: 10px 100px 10px 40px !important;
  }

  .search-button-snappy {
    padding: 8px 20px !important;
    font-size: 13px !important;
  }
}

/* --- Home Page Sections Mobile --- */
@media (max-width: 575px) {
  .section-title {
    font-size: 18px !important;
  }

  .section-title h3 {
    font-size: 18px !important;
  }

  /* Tab navigation (All, Featured, Popular, New added) */
  .nav-tabs li a,
  .nav .nav-item .nav-link {
    font-size: 12px !important;
    padding: 6px 8px !important;
  }

  /* Section spacing tighter on mobile */
  .section-padding {
    padding-top: 15px !important;
    padding-bottom: 15px !important;
  }

  .section-padding-t {
    padding-top: 15px !important;
  }

  .section-padding-b {
    padding-bottom: 15px !important;
  }

  /* Banner section compact */
  .banners.mb-15 {
    margin-bottom: 8px !important;
  }

  .banners .mb-4 {
    margin-bottom: 8px !important;
  }
}

/* ==========================================================================
   CATEGORY CARDS (.card-1) - Mobile Compact
   "Shop by Categories" slider items
   ========================================================================== */
@media (max-width: 768px) {
  .card-1 {
    padding: 12px 8px 10px !important;
    min-height: auto !important;
    border-radius: 10px;
  }

  .card-1 figure {
    margin-bottom: 6px !important;
  }

  .card-1 figure img {
    max-width: 48px !important;
    height: auto;
  }

  .card-1 h6 {
    font-size: 11px !important;
    line-height: 1.3;
    margin-bottom: 2px !important;
    white-space: nowrap;
    overflow: hidden;
    text-overflow: ellipsis;
  }

  .card-1 h6 a {
    font-size: 11px !important;
  }

  .card-1 span {
    font-size: 10px !important;
    color: #999;
  }

  /* Carousel arrows compact */
  .carausel-10-columns-arrow,
  .carausel-8-columns-cover .slider-arrow {
    display: none !important;
  }

  /* Section title row — compact on mobile */
  .popular-categories .section-title {
    margin-bottom: 12px !important;
    padding-bottom: 8px !important;
  }
}

@media (max-width: 480px) {
  .card-1 {
    padding: 10px 6px 8px !important;
  }

  .card-1 figure img {
    max-width: 40px !important;
  }

  .card-1 h6,
  .card-1 h6 a {
    font-size: 10px !important;
  }
}

/* ==========================================================================
   BOTTOM SECTION - Mobile (Top Selling, Trending, Recently Added, Top Rated)
   ========================================================================== */
@media (max-width: 768px) {
  /* Product list small — compact on mobile */
  .product-list-small article.row {
    padding: 8px 0 !important;
    margin: 0 !important;
  }

  .product-list-small article figure {
    max-width: 60px;
    flex: 0 0 60px;
  }

  .product-list-small article figure img {
    border-radius: 6px;
  }

  .product-list-small article h6 {
    font-size: 13px !important;
    line-height: 1.3;
    margin-bottom: 2px !important;
  }

  .product-list-small article h6 a {
    font-size: 13px !important;
  }

  .product-list-small .product-price span {
    font-size: 14px !important;
  }

  /* Hide star ratings on mobile to save space */
  .product-list-small .product-rate-cover {
    display: none !important;
  }

  /* Bottom section columns — 2 columns on mobile */
  .section-padding.mb-30 > .container > .row > [class*="col-"] {
    flex: 0 0 50%;
    max-width: 50%;
  }

  .section-padding.mb-30 .section-title.style-1 {
    font-size: 14px !important;
    margin-bottom: 12px !important;
  }
}

@media (max-width: 480px) {
  .product-list-small article figure {
    max-width: 50px;
    flex: 0 0 50px;
  }

  .product-list-small article h6,
  .product-list-small article h6 a {
    font-size: 12px !important;
  }
}

/* ==========================================================================
   SCHEDULED ORDERS CARDS - Mobile
   ========================================================================== */
@media (max-width: 768px) {
  .section-padding.pb-5 .section-title {
    margin-bottom: 16px !important;
    padding-bottom: 10px !important;
  }

  .section-padding.pb-5 .section-title h3 {
    font-size: 18px !important;
  }
}

/* --- Product Detail Page Mobile --- */
@media (max-width: 768px) {
  /* Reduce section spacing */
  .product-detail-section {
    margin-top: 10px !important;
    margin-bottom: 15px !important;
  }

  /* Product detail info padding — no pr-30/pl-30 on mobile */
  .detail-info-mobile {
    padding: 12px 0 !important;
  }

  .detail-info .product-detail-rating {
    flex-wrap: wrap;
    gap: 8px;
  }

  .detail-info h2.title-detail {
    font-size: 20px !important;
    line-height: 1.3;
    margin-bottom: 8px;
  }

  .detail-info .product-price-cover .current-price {
    font-size: 24px !important;
  }

  /* Description — tighter */
  .detail-info .short-desc {
    margin-bottom: 15px !important;
  }

  .detail-info .short-desc p {
    font-size: 14px !important;
    line-height: 1.5;
  }

  /* Qty + Add to Cart — stack vertically, full width */
  .detail-extralink {
    flex-direction: column !important;
    gap: 10px !important;
  }

  .detail-extralink .detail-qty {
    width: 100% !important;
    justify-content: center;
  }

  .detail-extralink .product-extra-link2 {
    width: 100% !important;
    display: flex;
    gap: 10px;
  }

  .detail-extralink .product-extra-link2 .button-add-to-cart {
    flex: 1;
    width: auto !important;
    padding: 12px 20px !important;
    font-size: 14px !important;
  }

  .detail-extralink .product-extra-link2 .action-btn {
    min-width: 48px;
    min-height: 48px;
    display: flex;
    align-items: center;
    justify-content: center;
  }

  /* Dividers — less margin */
  .detail-info .bt-1 {
    margin-top: 15px !important;
    margin-bottom: 15px !important;
  }

  /* Product meta (SKU, Tags, Availability) — less top margin */
  .product-meta.mt-50,
  .product-meta.mt-30 {
    margin-top: 15px !important;
  }

  /* Gallery zoom icon */
  .detail-gallery .zoom-icon {
    top: 8px;
    right: 8px;
    width: 36px;
    height: 36px;
  }

  /* Thumbnail gallery — smaller on mobile */
  .detail-gallery .mySwiper {
    margin-top: 8px;
  }

  .detail-gallery .mySwiper .swiper-slide img {
    border-radius: 6px;
    height: 60px;
    object-fit: cover;
  }

  /* Related products section — less spacing */
  .product-detail .row.mt-60 {
    margin-top: 20px !important;
  }

  .product-detail .row.mt-60 h3.section-title {
    font-size: 16px !important;
    margin-bottom: 12px !important;
  }

  /* Sale Off badge — smaller on mobile */
  .stock-status {
    font-size: 11px !important;
    padding: 3px 10px !important;
  }

  /* Hide the "Sale Off" badge if not relevant */
  .stock-status.out-stock {
    display: none;
  }
}

/* Very small screens - product detail */
@media (max-width: 480px) {
  .detail-info h2.title-detail {
    font-size: 18px !important;
  }

  .detail-info .product-price-cover .current-price {
    font-size: 22px !important;
  }
}

/* --- Wallet / Profile Pages Mobile --- */
@media (max-width: 640px) {
  .table-responsive {
    display: block;
    overflow-x: auto;
  }
}

/* ==========================================================================
   SLIDER PRODUCT CARDS - Mobile Compact
   Sliders (BestSeller, Trending, NewArrival, TopRated, Discount, Related)
   ========================================================================== */
@media (max-width: 575px) {
  .carausel-4-columns-cover .product-cart-wrap,
  .carausel-3-columns-cover .product-cart-wrap,
  .related-products .product-cart-wrap {
    min-height: auto !important;
  }

  .carausel-4-columns-cover .product-img-action-wrap,
  .carausel-3-columns-cover .product-img-action-wrap,
  .related-products .product-img-action-wrap {
    height: 140px !important;
    min-height: 140px !important;
    max-height: 140px !important;
  }

  /* Cards in sliders — compact content */
  .swiper-slide .product-cart-wrap .product-content-wrap {
    padding: 8px 10px 10px !important;
  }

  .swiper-slide .product-cart-wrap .product-content-wrap h2,
  .swiper-slide .product-cart-wrap .product-content-wrap h2 a {
    font-size: 12px !important;
    line-height: 1.3 !important;
    min-height: auto !important;
    margin-bottom: 2px !important;
  }

  .swiper-slide .product-cart-wrap .product-card-bottom .product-price span {
    font-size: 14px !important;
  }

  /* Hide action buttons in sliders on mobile too */
  .swiper-slide .product-action-1 {
    display: none !important;
  }

  /* Hide category in slider cards */
  .swiper-slide .product-category {
    display: none !important;
  }
}

/* ==========================================================================
   LOADING SKELETON - Mobile Compact
   ========================================================================== */
@media (max-width: 575px) {
  .product-skeleton {
    min-height: auto !important;
    border-radius: 10px;
  }
}

/* ==========================================================================
   MOBILE SHOP SEARCH BAR
   Sticky search below header — grocery app pattern
   ========================================================================== */
.mobile-shop-search {
  display: none;
}

@media (max-width: 768px) {
  .mobile-shop-search {
    display: block;
    position: sticky;
    top: 0;
    z-index: 99;
    background: #fff;
    padding: 8px 12px;
    border-bottom: 1px solid #f0f0f0;
    box-shadow: 0 1px 4px rgba(0, 0, 0, 0.04);
  }

  .mobile-shop-search-inner {
    display: flex;
    align-items: center;
    background: #f5f5f5;
    border-radius: 10px;
    padding: 0 12px;
    height: 42px;
    transition: all 0.2s ease;
    border: 1.5px solid transparent;
  }

  .mobile-shop-search-inner:focus-within {
    background: #fff;
    border-color: #42af57;
    box-shadow: 0 0 0 3px rgba(66, 175, 87, 0.1);
  }

  .mobile-shop-search-icon {
    color: #999;
    font-size: 14px;
    margin-right: 8px;
    flex-shrink: 0;
  }

  .mobile-shop-search-inner:focus-within .mobile-shop-search-icon {
    color: #42af57;
  }

  .mobile-shop-search input {
    flex: 1;
    border: none !important;
    background: transparent !important;
    font-size: 14px !important;
    color: #333;
    padding: 0 !important;
    margin: 0 !important;
    height: 100%;
    min-height: auto !important;
    outline: none !important;
    box-shadow: none !important;
  }

  .mobile-shop-search input::placeholder {
    color: #aaa;
    font-size: 14px;
  }

  .mobile-shop-search-clear {
    display: flex;
    align-items: center;
    justify-content: center;
    width: 24px;
    height: 24px;
    min-height: 24px !important;
    border-radius: 50%;
    background: #ddd;
    border: none;
    cursor: pointer;
    flex-shrink: 0;
    margin-left: 6px;
    padding: 0;
    color: #666;
    font-size: 10px;
    transition: background 0.2s;
  }

  .mobile-shop-search-clear:hover {
    background: #ccc;
  }

  /* Category filter pills — horizontal scroll */
  .mobile-category-pills {
    display: flex;
    gap: 6px;
    overflow-x: auto;
    padding: 8px 0 2px;
    -webkit-overflow-scrolling: touch;
    scrollbar-width: none;
    -ms-overflow-style: none;
  }

  .mobile-category-pills::-webkit-scrollbar {
    display: none;
  }

  .mobile-cat-pill {
    flex-shrink: 0;
    padding: 6px 14px;
    border-radius: 20px;
    border: 1.5px solid rgba(224, 224, 224, 0.5);
    background: rgba(255, 255, 255, 0.85);
    -webkit-backdrop-filter: blur(8px);
    backdrop-filter: blur(8px);
    color: #555;
    font-size: 12px;
    font-weight: 500;
    cursor: pointer;
    white-space: nowrap;
    transition: all 0.2s ease;
    min-height: auto !important;
    line-height: 1.3;
  }

  .mobile-cat-pill.active {
    background: rgba(66, 175, 87, 0.9);
    -webkit-backdrop-filter: blur(10px);
    backdrop-filter: blur(10px);
    color: #fff;
    border-color: rgba(66, 175, 87, 0.6);
    font-weight: 600;
    box-shadow: 0 2px 8px rgba(66, 175, 87, 0.2);
  }

  .mobile-cat-pill:not(.active):hover {
    border-color: #42af57;
    color: #42af57;
  }
}
/* ==========================================================================
   INTRO POPUP (Featured Product) - Mobile Optimized
   ========================================================================== */
@media (max-width: 768px) {
  /* Modal backdrop */
  .modal-backdrop.show {
    opacity: 0.6 !important;
  }

  /* Modal dialog — full width, centered vertically */
  .custom-modal .modal-dialog {
    margin: 10px auto !important;
    max-height: calc(100vh - 20px);
    display: flex;
    align-items: center;
  }

  /* Modal content — responsive sizing */
  .custom-modal .modal-content {
    max-height: calc(100vh - 20px);
    overflow-y: auto;
    -webkit-overflow-scrolling: touch;
  }

  /* Close button — larger touch target on mobile */
  .custom-modal .btn-close {
    width: 32px !important;
    height: 32px !important;
    background-size: 14px !important;
    opacity: 0.7;
    z-index: 1050;
  }

  .custom-modal .btn-close:hover {
    opacity: 1;
  }

  /* Modal body — compact padding */
  .custom-modal .modal-body {
    max-height: calc(100vh - 40px);
    overflow-y: auto;
  }

  /* Featured product content — stacked layout on mobile */
  .custom-modal .modal-body > div {
    min-height: auto !important;
  }
}

/* Small mobile devices */
@media (max-width: 480px) {
  .custom-modal .modal-dialog {
    margin: 5px !important;
    max-width: calc(100vw - 10px) !important;
  }

  .custom-modal .modal-content {
    border-radius: 10px !important;
  }

  .custom-modal .btn-close {
    top: 5px !important;
    right: 5px !important;
  }
}

/* Prevent body scroll when modal is open on mobile */
@media (max-width: 768px) {
  body.modal-open {
    overflow: hidden !important;
    position: fixed !important;
    width: 100% !important;
  }
}

/* ==========================================================================
   SIXTY60 PRODUCT CARDS & CAROUSELS - Mobile Optimized
   ========================================================================== */
@media (max-width: 768px) {
  /* Card touch feedback */
  .sf-card {
    -webkit-tap-highlight-color: transparent;
    transition: transform 0.15s;
  }
  .sf-card:active {
    transform: scale(0.98);
  }

  /* Add button — larger touch target on mobile */
  .s60-add-btn {
    min-width: 32px;
    min-height: 32px;
  }

  /* Container edge-to-edge on mobile for carousels */
  .s60-section .container {
    padding-left: 12px;
    padding-right: 12px;
  }

  /* Hero full bleed on mobile */
  .s60-hero .container {
    padding-left: 0;
    padding-right: 0;
  }
}

/* ==========================================================================
   SIXTY60 FOOTER - Mobile Touch Targets
   ========================================================================== */
@media (max-width: 768px) {
  .sf-footer .sf-social-icon {
    min-width: 44px;
    min-height: 44px;
  }

  .sf-footer .sf-fcol a,
  .sf-footer .sf-fcol-link {
    min-height: 44px !important;
  }
}
/* ==========================================================================
   UX ENHANCEMENTS - Smooth Interactions & Animations
   ========================================================================== */


/* Custom Scrollbar */
::-webkit-scrollbar {
  width: 10px;
  height: 10px;
}

::-webkit-scrollbar-track {
  background: rgba(240, 240, 240, 0.5);
  border-radius: 10px;
}

::-webkit-scrollbar-thumb {
  background: linear-gradient(180deg, rgba(66, 175, 87, 0.8) 0%, rgba(45, 150, 104, 0.8) 100%);
  border-radius: 10px;
  transition: background 0.3s ease;
}

::-webkit-scrollbar-thumb:hover {
  background: linear-gradient(180deg, rgba(66, 175, 87, 1) 0%, rgba(45, 150, 104, 1) 100%);
}

/* Smooth Button Press Effect */
button,
.btn,
a.btn {
  transition: transform 0.2s cubic-bezier(0.34, 1.56, 0.64, 1),
              box-shadow 0.2s ease,
              background 0.3s ease;
  -webkit-tap-highlight-color: transparent;
}

button:active:not(:disabled),
.btn:active:not(:disabled),
a.btn:active:not(:disabled) {
  transform: scale(0.97);
}

/* Smooth Card Hover */
.product-cart-wrap,
.deal,
.sidebar-widget {
  transition: transform 0.3s cubic-bezier(0.34, 1.56, 0.64, 1),
              box-shadow 0.3s ease,
              border-color 0.3s ease;
}

.product-cart-wrap:hover {
  transform: translateY(-5px);
}

.deal:hover,
.sidebar-widget:hover {
  transform: translateY(-2px);
}

/* Smooth Input Focus */
input:not([type="checkbox"]):not([type="radio"]),
textarea,
select {
  transition: border-color 0.3s ease,
              box-shadow 0.3s ease,
              background 0.3s ease;
}

input:focus:not([type="checkbox"]):not([type="radio"]),
textarea:focus,
select:focus {
  outline: none;
  border-color: #42af57;
  box-shadow: 0 0 0 3px rgba(66, 175, 87, 0.1);
}

/* Smooth Link Hover */
a {
  transition: color 0.3s ease,
              opacity 0.3s ease,
              transform 0.3s ease;
}

/* Modal Backdrop Blur Animation */
.modal-backdrop,
.modal.show {
  animation: fadeIn 0.3s ease;
}

@keyframes fadeIn {
  from {
    opacity: 0;
  }
  to {
    opacity: 1;
  }
}

/* Skeleton Loading Animation */
.skeleton {
  background: linear-gradient(
    90deg,
    rgba(240, 240, 240, 0.8) 25%,
    rgba(250, 250, 250, 0.9) 50%,
    rgba(240, 240, 240, 0.8) 75%
  );
  background-size: 200% 100%;
  animation: shimmer 1.5s ease-in-out infinite;
  border-radius: 8px;
}

@keyframes shimmer {
  0% {
    background-position: 200% 0;
  }
  100% {
    background-position: -200% 0;
  }
}

/* Pulse Animation for Loading States */
.pulse {
  animation: pulse 2s cubic-bezier(0.4, 0, 0.6, 1) infinite;
}

@keyframes pulse {
  0%, 100% {
    opacity: 1;
  }
  50% {
    opacity: 0.5;
  }
}

/* Bounce Animation for Success/Error */
.bounce-in {
  animation: bounceIn 0.6s cubic-bezier(0.34, 1.56, 0.64, 1);
}

@keyframes bounceIn {
  0% {
    opacity: 0;
    transform: scale(0.3);
  }
  50% {
    opacity: 1;
    transform: scale(1.05);
  }
  70% {
    transform: scale(0.95);
  }
  100% {
    transform: scale(1);
  }
}

/* Slide In From Bottom (Mobile Menus) */
.slide-up {
  animation: slideUp 0.4s cubic-bezier(0.25, 0.46, 0.45, 0.94);
}

@keyframes slideUp {
  from {
    transform: translateY(100%);
    opacity: 0;
  }
  to {
    transform: translateY(0);
    opacity: 1;
  }
}

/* Fade In Scale */
.fade-in-scale {
  animation: fadeInScale 0.4s cubic-bezier(0.34, 1.56, 0.64, 1);
}

@keyframes fadeInScale {
  from {
    opacity: 0;
    transform: scale(0.9);
  }
  to {
    opacity: 1;
    transform: scale(1);
  }
}

/* Smooth Dropdown Expand */
.dropdown-menu {
  animation: dropdownExpand 0.3s cubic-bezier(0.25, 0.46, 0.45, 0.94);
}

@keyframes dropdownExpand {
  from {
    opacity: 0;
    transform: translateY(-10px);
  }
  to {
    opacity: 1;
    transform: translateY(0);
  }
}

/* Ripple Effect for Buttons */
.ripple {
  position: relative;
  overflow: hidden;
}

.ripple::after {
  content: '';
  position: absolute;
  top: 50%;
  left: 50%;
  width: 0;
  height: 0;
  border-radius: 50%;
  background: rgba(255, 255, 255, 0.5);
  transform: translate(-50%, -50%);
  transition: width 0.6s, height 0.6s;
}

.ripple:active::after {
  width: 300px;
  height: 300px;
}

/* Smooth Image Load */
img {
  transition: opacity 0.3s ease;
}

img:not([src]),
img[src=""] {
  opacity: 0;
}

/* Badge Animation */
.badge,
.pro-count {
  transition: transform 0.3s cubic-bezier(0.34, 1.56, 0.64, 1);
}

.badge:hover,
.pro-count:hover {
  transform: scale(1.1);
}

/* Smooth Tooltip */
[data-tooltip] {
  position: relative;
  cursor: help;
}

[data-tooltip]::before {
  content: attr(data-tooltip);
  position: absolute;
  bottom: 100%;
  left: 50%;
  transform: translateX(-50%) translateY(-5px);
  padding: 6px 12px;
  background: rgba(0, 0, 0, 0.9);
  color: white;
  font-size: 12px;
  border-radius: 6px;
  white-space: nowrap;
  opacity: 0;
  pointer-events: none;
  transition: opacity 0.3s ease, transform 0.3s ease;
  -webkit-backdrop-filter: blur(10px);
  backdrop-filter: blur(10px);
  z-index: 1000;
}

[data-tooltip]:hover::before {
  opacity: 1;
  transform: translateX(-50%) translateY(-8px);
}

/* Loading Spinner Enhancement */
.spinner-border {
  animation: spin 0.75s linear infinite;
}

@keyframes spin {
  to {
    transform: rotate(360deg);
  }
}

/* Smooth Page Load */
body {
  animation: pageLoad 0.4s ease;
}

@keyframes pageLoad {
  from {
    opacity: 0;
  }
  to {
    opacity: 1;
  }
}

/* Focus Visible Enhancement */
*:focus-visible {
  outline: 2px solid #42af57;
  outline-offset: 2px;
  border-radius: 4px;
}

/* Smooth Selection */
::selection {
  background-color: rgba(66, 175, 87, 0.2);
  color: #253d4e;
}

::-moz-selection {
  background-color: rgba(66, 175, 87, 0.2);
  color: #253d4e;
}

/* Parallax Effect for Hero Sections */
.parallax {
  transition: transform 0.3s ease-out;
}

/* Stagger Animation for Lists */
.stagger-item {
  animation: staggerFadeIn 0.6s ease backwards;
}

.stagger-item:nth-child(1) { animation-delay: 0.05s; }
.stagger-item:nth-child(2) { animation-delay: 0.1s; }
.stagger-item:nth-child(3) { animation-delay: 0.15s; }
.stagger-item:nth-child(4) { animation-delay: 0.2s; }
.stagger-item:nth-child(5) { animation-delay: 0.25s; }
.stagger-item:nth-child(6) { animation-delay: 0.3s; }
.stagger-item:nth-child(7) { animation-delay: 0.35s; }
.stagger-item:nth-child(8) { animation-delay: 0.4s; }

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

/* Smooth Toast Notifications */
.Toastify__toast {
  -webkit-backdrop-filter: blur(15px);
  backdrop-filter: blur(15px);
  box-shadow: 0 8px 32px rgba(0, 0, 0, 0.15);
  animation: toastSlideIn 0.4s cubic-bezier(0.34, 1.56, 0.64, 1);
}

@keyframes toastSlideIn {
  from {
    transform: translateX(100%);
    opacity: 0;
  }
  to {
    transform: translateX(0);
    opacity: 1;
  }
}

/* Mobile Touch Feedback */
@media (hover: none) and (pointer: coarse) {
  button:active,
  .btn:active,
  a:active {
    opacity: 0.7;
    transform: scale(0.97);
  }
}

/* ==========================================================================
   INLINE FORM VALIDATION
   ========================================================================== */

.field-error-inline {
  display: block;
  color: #dc3545;
  font-size: 12px;
  font-weight: 500;
  margin-top: 4px;
  padding-left: 2px;
  animation: fadeInError 0.2s ease;
}

@keyframes fadeInError {
  from { opacity: 0; transform: translateY(-4px); }
  to { opacity: 1; transform: translateY(0); }
}

input.field-has-error,
select.field-has-error,
textarea.field-has-error {
  border-color: #dc3545 !important;
  box-shadow: 0 0 0 3px rgba(220, 53, 69, 0.1) !important;
}

input.field-valid,
select.field-valid,
textarea.field-valid {
  border-color: #42af57 !important;
}

/* ==========================================================================
   SKIP TO CONTENT
   ========================================================================== */

.skip-to-content {
  position: absolute;
  top: -100px;
  left: 16px;
  padding: 12px 24px;
  background: #42af57;
  color: white;
  font-weight: 600;
  font-size: 14px;
  border-radius: 0 0 8px 8px;
  z-index: var(--z-loader, 9999);
  transition: top 0.2s ease;
  text-decoration: none;
}

.skip-to-content:focus {
  top: 0;
  outline: 2px solid #253d4e;
  outline-offset: 2px;
  color: white;
}

/* ==========================================================================
   SHOP SIDEBAR (Desktop)
   ========================================================================== */

.shop-sidebar {
  position: sticky;
  top: 100px;
  max-height: calc(100vh - 120px);
  overflow-y: auto;
}

.sidebar-section {
  background: white;
  border-radius: 12px;
  padding: 20px;
  margin-bottom: 20px;
  border: 1px solid #e8e8e8;
}

.sidebar-section-title {
  font-size: 14px;
  font-weight: 700;
  color: #253d4e;
  text-transform: uppercase;
  letter-spacing: 0.5px;
  margin-bottom: 16px;
  display: flex;
  justify-content: space-between;
  align-items: center;
  cursor: pointer;
  -webkit-user-select: none;
  user-select: none;
}

.sidebar-section-title .toggle-icon {
  transition: transform 0.2s ease;
  font-size: 12px;
  color: #999;
}

.sidebar-section-title .toggle-icon.collapsed {
  transform: rotate(-90deg);
}

.sidebar-category-item {
  display: flex;
  align-items: center;
  padding: 8px 12px;
  border-radius: 8px;
  cursor: pointer;
  transition: background 0.2s ease, color 0.2s ease;
  font-size: 13px;
  color: #555;
  min-height: 44px;
  gap: 10px;
}

.sidebar-category-item:hover {
  background: #f0f8f5;
  color: #42af57;
}

.sidebar-category-item.active {
  background: #e8f5ec;
  color: #42af57;
  font-weight: 600;
}

.sidebar-category-item .cat-count {
  margin-left: auto;
  font-size: 11px;
  color: #aaa;
  background: #f5f5f5;
  padding: 2px 8px;
  border-radius: 10px;
}

.sidebar-category-item.active .cat-count {
  background: #d4f0e0;
  color: #42af57;
}

.sidebar-supplier-item {
  display: flex;
  align-items: center;
  gap: 10px;
  padding: 8px 0;
  cursor: pointer;
  font-size: 13px;
  color: #555;
  min-height: 44px;
}

.sidebar-supplier-item input[type="checkbox"] {
  width: 18px;
  height: 18px;
  accent-color: #42af57;
  cursor: pointer;
}

.sidebar-clear-btn {
  display: flex;
  align-items: center;
  justify-content: center;
  gap: 6px;
  width: 100%;
  padding: 10px;
  border: 1px dashed #ddd;
  border-radius: 8px;
  background: transparent;
  color: #999;
  font-size: 13px;
  cursor: pointer;
  transition: all 0.2s ease;
}

.sidebar-clear-btn:hover {
  border-color: #dc3545;
  color: #dc3545;
  background: #fff5f5;
}

/* ==========================================================================
   ADD TO CART FEEDBACK
   ========================================================================== */

.product-cart-wrap .product-card-bottom .add-cart .add.add-success {
  background: #2d9668 !important;
  color: white !important;
  pointer-events: none;
  animation: addCartPulse 0.3s ease;
}

.product-cart-wrap .product-card-bottom .add-cart .add.add-success i {
  color: white !important;
}

@keyframes addCartPulse {
  0% { transform: scale(1); }
  50% { transform: scale(1.08); }
  100% { transform: scale(1); }
}

/* ==========================================================================
   OUT OF STOCK BUTTON
   ========================================================================== */

.product-cart-wrap .product-card-bottom .add-cart .out-of-stock-btn {
  background: #e8e8e8 !important;
  color: #999 !important;
  cursor: not-allowed;
  pointer-events: none;
  font-size: 12px;
}

/* ==========================================================================
   TOUCH TARGET MINIMUMS
   ========================================================================== */

.product-action-1 a.action-btn {
  min-width: 44px;
  min-height: 44px;
  display: inline-flex;
  align-items: center;
  justify-content: center;
}

/* ==========================================================================
   PASSWORD CHECKLIST
   ========================================================================== */

.password-checklist {
  list-style: none;
  padding: 0;
  margin: 8px 0 0;
}

.password-checklist li {
  font-size: 12px;
  padding: 2px 0;
  display: flex;
  align-items: center;
  gap: 6px;
  transition: color 0.2s ease;
}

.password-checklist li.met {
  color: #42af57;
}

.password-checklist li.unmet {
  color: #999;
}

.password-checklist .check-icon {
  font-size: 14px;
  width: 16px;
  text-align: center;
}

/* ==========================================================================
   CLEAR ALL FILTERS (persistent)
   ========================================================================== */

.clear-all-filters-btn {
  display: inline-flex;
  align-items: center;
  gap: 4px;
  padding: 6px 14px;
  border: 1px solid #ddd;
  border-radius: 20px;
  background: white;
  color: #999;
  font-size: 12px;
  cursor: pointer;
  transition: all 0.2s ease;
}

.clear-all-filters-btn:hover {
  border-color: #dc3545;
  color: #dc3545;
  background: #fff5f5;
}

/* ==========================================================================
   STOCK LIMIT HINT
   ========================================================================== */

.stock-limit-hint {
  display: block;
  font-size: 11px;
  color: #f59758;
  font-weight: 600;
  margin-top: 4px;
}

/* Reduce Motion for Accessibility */
@media (prefers-reduced-motion: reduce) {
  *,
  *::before,
  *::after {
    animation-duration: 0.01ms !important;
    animation-iteration-count: 1 !important;
    transition-duration: 0.01ms !important;
    scroll-behavior: auto !important;
  }
}

* { box-sizing: border-box; }

.reg-wrapper {
  display: flex;
  min-height: calc(100vh - 80px);
  background: #f4f9f6;
  font-family: 'Plus Jakarta Sans', sans-serif;
}

/* -- Sidebar -- */
.reg-sidebar {
  display: none;
}
@media (min-width: 992px) {
  .reg-sidebar {
    display: flex;
    flex-direction: column;
    width: 360px;
    flex-shrink: 0;
    background: #2c3e3a;
    padding: 52px 40px;
    color: #fff;
    position: relative;
    overflow: hidden;
  }
}

/* decorative blobs */
.reg-sidebar::before {
  content: '';
  position: absolute;
  top: -80px; right: -80px;
  width: 280px; height: 280px;
  border-radius: 50%;
  background: radial-gradient(circle, rgba(59,183,126,0.22) 0%, transparent 70%);
  pointer-events: none;
}
.reg-sidebar::after {
  content: '';
  position: absolute;
  bottom: -100px; left: -60px;
  width: 320px; height: 320px;
  border-radius: 50%;
  background: radial-gradient(circle, rgba(59,183,126,0.14) 0%, transparent 70%);
  pointer-events: none;
}

.sidebar-brand {
  display: flex;
  align-items: center;
  gap: 10px;
  margin-bottom: 44px;
  position: relative;
  z-index: 1;
}
.sidebar-brand-dot {
  width: 32px; height: 32px;
  background: linear-gradient(135deg, #3bb77e, #2ecc71);
  border-radius: 10px;
  display: flex; align-items: center; justify-content: center;
  font-size: 16px;
}
.sidebar-brand-name {
  font-size: 1.05rem;
  font-weight: 800;
  letter-spacing: -0.01em;
  color: #fff;
}
.sidebar-brand-name span {
  color: #3bb77e;
}

.sidebar-headline {
  font-size: 1.65rem;
  font-weight: 800;
  line-height: 1.25;
  letter-spacing: -0.03em;
  margin-bottom: 12px;
  position: relative;
  z-index: 1;
}
.sidebar-headline em {
  font-style: normal;
  color: #3bb77e;
}

.sidebar-sub {
  font-size: 0.875rem;
  color: rgba(255,255,255,0.5);
  line-height: 1.65;
  margin-bottom: 48px;
  position: relative;
  z-index: 1;
}

/* step nav */
.reg-step-nav {
  display: flex;
  flex-direction: column;
  gap: 2px;
  position: relative;
  z-index: 1;
}
.step-connector {
  width: 1px;
  height: 20px;
  background: rgba(255,255,255,0.1);
  margin-left: 22px;
}
.reg-step-item {
  display: flex;
  align-items: center;
  gap: 16px;
  padding: 10px 14px;
  border-radius: 14px;
  cursor: default;
  transition: background 0.25s ease;
}
.reg-step-item.clickable { cursor: pointer; }
.reg-step-item.active {
  background: rgba(59,183,126,0.12);
  border: 1px solid rgba(59,183,126,0.2);
}
.reg-step-dot {
  width: 32px; height: 32px;
  border-radius: 50%;
  display: flex; align-items: center; justify-content: center;
  font-size: 13px;
  flex-shrink: 0;
  transition: all 0.3s ease;
  background: rgba(255,255,255,0.07);
  color: rgba(255,255,255,0.35);
  border: 1.5px solid rgba(255,255,255,0.1);
}
.reg-step-item.active .reg-step-dot {
  background: #3bb77e;
  color: #fff;
  border-color: #3bb77e;
  box-shadow: 0 0 0 4px rgba(59,183,126,0.2);
}
.reg-step-item.completed .reg-step-dot {
  background: rgba(59,183,126,0.2);
  color: #3bb77e;
  border-color: rgba(59,183,126,0.3);
}
.step-text { flex: 1; }
.reg-step-label {
  font-size: 0.83rem;
  font-weight: 600;
  color: rgba(255,255,255,0.35);
  display: block;
  transition: color 0.25s;
}
.reg-step-item.active .reg-step-label { color: #fff; }
.reg-step-item.completed .reg-step-label { color: rgba(255,255,255,0.55); }
.reg-step-desc {
  font-size: 0.72rem;
  color: rgba(255,255,255,0.25);
  margin-top: 1px;
}
.reg-step-item.active .reg-step-desc { color: rgba(255,255,255,0.45); }

.sidebar-footer {
  margin-top: auto;
  padding-top: 40px;
  font-size: 0.75rem;
  color: rgba(255,255,255,0.25);
  position: relative;
  z-index: 1;
  display: flex;
  align-items: center;
  gap: 6px;
}
.sidebar-footer::before {
  content: '\1F33F';
  font-size: 12px;
}

/* -- Main -- */
.reg-main {
  flex: 1;
  display: flex;
  flex-direction: column;
  align-items: center;
  padding: 48px 24px 80px;
  overflow-y: auto;
}
.reg-card {
  width: 100%;
  max-width: 600px;
}

/* header */
.reg-header {
  margin-bottom: 32px;
}
.reg-eyebrow {
  font-size: 0.72rem;
  font-weight: 700;
  letter-spacing: 0.1em;
  text-transform: uppercase;
  color: #3bb77e;
  margin-bottom: 8px;
}
.reg-header h1 {
  font-size: 1.8rem;
  font-weight: 800;
  color: #0d1f12;
  letter-spacing: -0.035em;
  line-height: 1.15;
  margin-bottom: 8px;
}
.reg-header p {
  color: #8a9e8a;
  font-size: 0.875rem;
  margin: 0;
}
.reg-header p a {
  color: #1a8a4a;
  font-weight: 600;
  text-decoration: none;
}
.reg-header p a:hover { text-decoration: underline; }

/* segmented progress */
.reg-progress-track {
  display: flex;
  gap: 6px;
  margin-bottom: 36px;
}
.prog-seg {
  flex: 1;
  height: 3px;
  border-radius: 99px;
  background: #dce9dc;
  overflow: hidden;
  position: relative;
}
.prog-seg-fill {
  position: absolute;
  inset: 0;
  background: linear-gradient(90deg, #3bb77e, #29a56c);
  border-radius: 99px;
  transform: scaleX(0);
  transform-origin: left;
  transition: transform 0.45s cubic-bezier(0.4, 0, 0.2, 1);
}
.prog-seg.done .prog-seg-fill { transform: scaleX(1); }
.prog-seg.active .prog-seg-fill { transform: scaleX(1); background: #3bb77e; }

/* mobile steps */
.reg-steps-mobile {
  display: flex;
  gap: 6px;
  margin-bottom: 28px;
}
@media (min-width: 992px) {
  .reg-steps-mobile { display: none; }
}
.step-pill {
  flex: 1;
  text-align: center;
  padding: 7px 4px;
  border-radius: 8px;
  font-size: 0.7rem;
  font-weight: 700;
  letter-spacing: 0.03em;
  color: #aac0aa;
  background: #eaf3ea;
  transition: all 0.25s ease;
  cursor: default;
}
.step-pill.clickable { cursor: pointer; }
.step-pill.active {
  background: #2c3e3a;
  color: #fff;
}
.step-pill.completed {
  background: #d4f0e0;
  color: #1a6e42;
}

/* section title */
.reg-section-title {
  font-size: 0.78rem;
  font-weight: 700;
  letter-spacing: 0.08em;
  text-transform: uppercase;
  color: #3bb77e;
  margin-bottom: 22px;
  display: flex;
  align-items: center;
  gap: 8px;
}
.reg-section-title i { font-size: 14px; }

/* field layout */
.field-row {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 16px;
}
@media (max-width: 576px) {
  .field-row { grid-template-columns: 1fr; }
}
.field-group {
  margin-bottom: 18px;
}
.field-group label {
  display: block;
  font-size: 0.78rem;
  font-weight: 700;
  color: #4a664a;
  margin-bottom: 7px;
  letter-spacing: 0.025em;
}
.field-group label .req {
  color: #e05252;
  margin-left: 2px;
}

/* inputs */
.field-group input[type="text"],
.field-group input[type="email"],
.field-group input[type="password"],
.field-group select,
.field-group textarea {
  width: 100%;
  padding: 11px 14px;
  border: 1.5px solid #dae8d8;
  border-radius: 10px;
  font-size: 0.9rem;
  font-family: 'Plus Jakarta Sans', sans-serif;
  color: #0d1f12;
  background: #fff;
  outline: none;
  transition: border-color 0.2s, box-shadow 0.2s, background 0.2s;
  -webkit-appearance: none;
  appearance: none;
}
.field-group input::placeholder,
.field-group textarea::placeholder {
  color: #b8ccb8;
}
.field-group input:focus,
.field-group select:focus,
.field-group textarea:focus {
  border-color: #3bb77e;
  box-shadow: 0 0 0 3.5px rgba(59,183,126,0.12);
  background: #fafffc;
}
.field-group input.field-has-error,
.field-group select.field-has-error {
  border-color: #e05252;
  box-shadow: 0 0 0 3px rgba(224,82,82,0.1);
}
.field-group select {
  background-image: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' width='10' height='10' viewBox='0 0 10 10'%3E%3Cpath fill='%2388a888' d='M5 7L0 2h10z'/%3E%3C/svg%3E");
  background-repeat: no-repeat;
  background-position: right 13px center;
  padding-right: 36px;
  cursor: pointer;
}
.field-group textarea {
  resize: vertical;
  min-height: 82px;
  line-height: 1.6;
}

/* toggle */
.toggle-row {
  display: flex;
  align-items: center;
  gap: 14px;
  padding: 13px 16px;
  background: #f4f9f6;
  border: 1.5px solid #e0ede0;
  border-radius: 12px;
  margin-bottom: 20px;
  cursor: pointer;
  transition: border-color 0.2s, background 0.2s;
}
.toggle-row:hover {
  background: #ecf6f0;
  border-color: #c8dec8;
}
.toggle-switch {
  position: relative;
  width: 42px; height: 22px;
  flex-shrink: 0;
}
.toggle-switch input {
  opacity: 0; width: 0; height: 0;
}
.toggle-slider {
  position: absolute;
  inset: 0;
  background: #cddccd;
  border-radius: 22px;
  transition: background 0.25s;
}
.toggle-slider::after {
  content: '';
  position: absolute;
  top: 3px; left: 3px;
  width: 16px; height: 16px;
  background: #fff;
  border-radius: 50%;
  transition: transform 0.25s cubic-bezier(0.4,0,0.2,1);
  box-shadow: 0 1px 4px rgba(0,0,0,0.18);
}
.toggle-switch input:checked + .toggle-slider { background: #3bb77e; }
.toggle-switch input:checked + .toggle-slider::after { transform: translateX(20px); }
.toggle-text {
  font-size: 0.875rem;
  font-weight: 600;
  color: #3a5a3a;
}

/* password */
.password-wrap { position: relative; }
.password-wrap input { padding-right: 44px; }
.pw-toggle {
  position: absolute;
  right: 13px; top: 50%;
  transform: translateY(-50%);
  background: none; border: none;
  cursor: pointer;
  color: #aac0aa; font-size: 15px;
  padding: 4px;
  transition: color 0.2s;
}
.pw-toggle:hover { color: #3bb77e; }

/* address section */
.address-section {
  background: #f4f9f6;
  border: 1.5px solid #dae8d8;
  border-radius: 14px;
  padding: 20px;
  margin-bottom: 18px;
}
.address-section h5 {
  font-size: 0.78rem;
  font-weight: 700;
  letter-spacing: 0.06em;
  text-transform: uppercase;
  color: #3a6a3a;
  margin-bottom: 18px;
  display: flex;
  align-items: center;
  gap: 7px;
}
.address-section h5 i { color: #3bb77e; font-size: 13px; }

.divider {
  border: none;
  border-top: 1px solid #e4ede4;
  margin: 24px 0;
}

/* terms */
.terms-row {
  display: flex;
  align-items: flex-start;
  gap: 11px;
  margin-top: 18px;
  margin-bottom: 4px;
}
.custom-checkbox {
  appearance: none;
  -webkit-appearance: none;
  width: 18px; height: 18px;
  border: 1.5px solid #b0ccb0;
  border-radius: 5px;
  cursor: pointer;
  flex-shrink: 0;
  margin-top: 2px;
  position: relative;
  transition: border-color 0.2s, background 0.2s;
}
.custom-checkbox:checked {
  background: #3bb77e;
  border-color: #3bb77e;
}
.custom-checkbox:checked::after {
  content: '';
  position: absolute;
  top: 3px; left: 5px;
  width: 5px; height: 9px;
  border: 2px solid #fff;
  border-top: none; border-left: none;
  transform: rotate(45deg);
}
.terms-row label {
  font-size: 0.84rem;
  color: #6a886a;
  cursor: pointer;
  line-height: 1.55;
}
.terms-row label a {
  color: #1a8a4a;
  font-weight: 600;
  text-decoration: none;
}
.terms-row label a:hover { text-decoration: underline; }

/* actions */
.reg-actions {
  display: flex;
  justify-content: space-between;
  align-items: center;
  margin-top: 30px;
  gap: 12px;
}
.btn-back {
  padding: 11px 22px;
  background: #f4f9f6;
  color: #2d5a3d;
  border: 2px solid #b8ccb8;
  border-radius: 10px;
  font-size: 0.875rem;
  font-weight: 700;
  font-family: 'Plus Jakarta Sans', sans-serif;
  cursor: pointer;
  transition: all 0.2s;
}
.btn-back:hover {
  background: #e8f3ec;
  border-color: #1a5c38;
  color: #1a5c38;
}
.btn-next, .btn-submit {
  padding: 12px 28px;
  border: none;
  border-radius: 10px;
  font-size: 0.9rem;
  font-weight: 700;
  font-family: 'Plus Jakarta Sans', sans-serif;
  cursor: pointer;
  transition: all 0.25s ease;
  display: flex;
  align-items: center;
  gap: 8px;
  letter-spacing: -0.01em;
}
.btn-next {
  background: #1a5c38;
  color: #fff;
  box-shadow: 0 3px 12px rgba(26,92,56,0.3);
}
.btn-next:hover {
  background: #0f3d23;
  transform: translateY(-1px);
  box-shadow: 0 5px 18px rgba(11,46,26,0.3);
}
.btn-submit {
  background: linear-gradient(135deg, #1a5c38 0%, #0d3d22 100%);
  color: #fff;
  box-shadow: 0 3px 14px rgba(26,92,56,0.35);
}
.btn-submit:hover:not(:disabled) {
  transform: translateY(-1px);
  box-shadow: 0 6px 22px rgba(26,92,56,0.45);
}
.btn-submit:disabled {
  opacity: 0.7;
  cursor: not-allowed;
  transform: none;
  background: #6b9b7e;
}
.btn-arrow {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  width: 20px; height: 20px;
  background: rgba(255,255,255,0.2);
  border-radius: 6px;
  font-size: 11px;
}

/* ==========================================================================
   MOBILE OPTIMISATION — World-class standards
   44px touch targets, 16px min font on inputs, safe areas, thumb zones
   ========================================================================== */

@media (max-width: 768px) {
  .reg-wrapper {
    min-height: calc(100vh - 60px);
    min-height: calc(100dvh - 60px);
  }

  .reg-main {
    padding: 24px 16px 100px;
  }

  .reg-card {
    max-width: 100%;
  }

  /* Header */
  .reg-header {
    margin-bottom: 24px;
  }
  .reg-header h1 {
    font-size: 1.5rem;
    line-height: 1.2;
  }
  .reg-eyebrow {
    font-size: 0.68rem;
  }

  /* Progress */
  .reg-progress-track {
    margin-bottom: 24px;
  }
  .prog-seg {
    height: 4px;
  }

  /* Mobile step pills */
  .reg-steps-mobile {
    gap: 4px;
    margin-bottom: 20px;
  }
  .step-pill {
    padding: 8px 4px;
    font-size: 0.68rem;
    border-radius: 6px;
    min-height: 36px;
    display: flex;
    align-items: center;
    justify-content: center;
  }

  /* Section titles */
  .reg-section-title {
    font-size: 0.72rem;
    margin-bottom: 16px;
  }

  /* Fields */
  .field-group {
    margin-bottom: 14px;
  }
  .field-group label {
    font-size: 0.75rem;
    margin-bottom: 6px;
  }

  /* Inputs — 16px prevents iOS zoom */
  .field-group input[type="text"],
  .field-group input[type="email"],
  .field-group input[type="password"],
  .field-group input[type="tel"],
  .field-group select,
  .field-group textarea {
    font-size: 16px !important;
    padding: 13px 14px;
    border-radius: 10px;
    min-height: 48px;
  }

  .field-group select {
    min-height: 48px;
  }

  /* Toggle */
  .toggle-row {
    padding: 12px 14px;
    border-radius: 10px;
    margin-bottom: 16px;
  }
  .toggle-text {
    font-size: 0.82rem;
  }

  /* Address sections */
  .address-section {
    padding: 16px;
    border-radius: 12px;
    margin-bottom: 14px;
  }
  .address-section h5 {
    font-size: 0.72rem;
    margin-bottom: 14px;
  }

  /* Password */
  .pw-toggle {
    min-width: 44px;
    min-height: 44px;
    display: flex;
    align-items: center;
    justify-content: center;
    right: 4px;
  }

  /* Terms */
  .terms-row {
    gap: 10px;
  }
  .custom-checkbox {
    width: 22px;
    height: 22px;
    border-radius: 6px;
    min-width: 22px;
  }
  .custom-checkbox:checked::after {
    top: 4px;
    left: 7px;
    width: 6px;
    height: 10px;
  }
  .terms-row label {
    font-size: 0.82rem;
    line-height: 1.5;
  }

  /* Actions — sticky bottom bar — must stay on top of footer */
  .reg-actions {
    position: fixed !important;
    bottom: 60px;
    left: 0;
    right: 0;
    margin: 0;
    padding: 14px 16px;
    background: #ffffff !important;
    border-top: 2px solid #d0ddd0;
    box-shadow: 0 -8px 30px rgba(0,0,0,0.18);
    z-index: 99999 !important;
    gap: 10px;
    isolation: isolate;
  }
  .btn-back {
    padding: 12px 18px;
    min-height: 48px;
    font-size: 0.82rem;
    border-radius: 10px;
  }
  .btn-next, .btn-submit {
    padding: 12px 24px;
    min-height: 48px;
    font-size: 0.85rem;
    border-radius: 10px;
    flex: 1;
    justify-content: center;
  }

  /* Divider */
  .divider {
    margin: 18px 0;
  }
}

/* Small phones */
@media (max-width: 375px) {
  .reg-main {
    padding: 20px 12px 100px;
  }
  .reg-header h1 {
    font-size: 1.3rem;
  }
  .step-pill {
    font-size: 0.62rem;
    padding: 6px 2px;
  }
  .field-group input[type="text"],
  .field-group input[type="email"],
  .field-group input[type="password"],
  .field-group input[type="tel"],
  .field-group select {
    padding: 12px;
  }
}

/* Ensure button edges and shadows are visible on hover - FIX */
button, .btn, [role="button"],
.sf-btn, input[type="button"], input[type="submit"] {
    overflow: visible !important;
}

button:hover, .btn:hover, [role="button"]:hover,
.sf-btn:hover, input[type="button"]:hover, input[type="submit"]:hover {
    overflow: visible !important;
    box-shadow: inherit;
}

/* ── Header Styles (moved from Header.tsx inline) ── */
@keyframes fadeInDown {
    from { opacity: 0; transform: translate3d(0, -20px, 0); }
    to { opacity: 1; transform: translate3d(0, 0, 0); }
}
.sf-header-sticky { animation: fadeInDown 0.5s ease-in-out; }

.sf-topbar { background: #1a5c38; padding: 14px 0; transition: padding 0.3s; }
.sf-topbar.compact { padding: 8px 0; }
.sf-topbar-inner { display: flex; align-items: center; gap: 20px; }
.sf-topbar-logo img { height: 40px; width: auto; filter: brightness(0) invert(1); transition: height 0.3s; }
.sf-topbar.compact .sf-topbar-logo img { height: 32px; }
.sf-topbar-address { display: flex; align-items: center; flex-shrink: 0; }
.sf-topbar-search { flex: 1; min-width: 0; }
.sf-topbar-actions { display: flex; align-items: center; gap: 16px; flex-shrink: 0; }

/* Mobile Logo Styling */
@media (max-width: 991px) {
  .sf-topbar-inner { gap: 12px; }
  .sf-topbar-logo img { height: 36px; }
  .sf-topbar.compact .sf-topbar-logo img { height: 28px; }
}

@media (max-width: 768px) {
  .sf-topbar { padding: 10px 0; }
  .sf-topbar.compact { padding: 6px 0; }
  .sf-topbar-inner { gap: 8px; }
  .sf-topbar-logo img { height: 32px; }
  .sf-topbar-address { display: none; }
}

.sf-avatar { width: 36px; height: 36px; border-radius: 50%; background: #27ae60; color: #fff; display: flex; align-items: center; justify-content: center; font-size: 13px; font-weight: 700; flex-shrink: 0; }
.sf-account-btn { display: flex; align-items: center; gap: 10px; background: none; border: none; cursor: pointer; padding: 6px 10px; border-radius: 10px; transition: background 0.2s; color: #fff; }
.sf-account-btn:hover { background: rgba(255,255,255,0.08); }
.sf-account-info { text-align: left; }
.sf-account-greeting { font-size: 11px; color: rgba(255,255,255,0.5); display: block; }
.sf-account-name { font-size: 13px; font-weight: 600; color: #fff; display: flex; align-items: center; gap: 4px; }

.sf-cart-btn{display:flex;align-items:center;gap:8px;background:#ff6b35;border:none;border-radius:10px;padding:8px 14px;color:#fff;cursor:pointer;font-family:inherit;font-weight:700;font-size:14px;transition:background .2s;position:relative}
.sf-cart-btn:hover{background:#e55a25}
.sf-cart-icon { font-size: 18px; color: #fff; }
.sf-cart-badge{position:absolute;top:-6px;right:-6px;background:#1a5c38;color:#fff;border-radius:50%;width:18px;height:18px;font-size:10px;font-weight:800;display:flex;align-items:center;justify-content:center;border:2px solid #ff6b35}

.sf-subnav { background: #fff; border-bottom: 1px solid #e8e8e8; padding: 0; transition: all 0.3s; z-index: 99; }
.sf-subnav-inner { display: flex; align-items: center; justify-content: space-between; height: 50px; }
.sf-subnav-left, .sf-subnav-right { display: flex; align-items: center; gap: 6px; }
.sf-subnav-btn { display: flex; align-items: center; gap: 7px; padding: 8px 14px; font-size: 13px; font-weight: 600; color: #333; background: none; border: none; cursor: pointer; border-radius: 8px; transition: all 0.2s; text-decoration: none; white-space: nowrap; }
.sf-subnav-btn:hover { background: #f4f4f4; color: #333; }
.sf-subnav-btn i { font-size: 16px; color: #1a5c38; }

.sf-delivery-badge { display: inline-flex; align-items: center; gap: 6px; padding: 5px 14px; border: 2px solid #1a5c38; border-radius: 99px; font-size: 12px; font-weight: 700; color: #1a5c38; background: #fff; cursor: pointer; transition: all 0.2s; white-space: nowrap; }
.sf-delivery-badge:hover, .sf-delivery-badge.active { background: #1a5c38; color: #fff; }
.sf-delivery-badge i { font-size: 14px; }
.sf-subnav-divider { width: 1px; height: 24px; background: #e0e0e0; margin: 0 4px; }

.sf-dropdown { position: absolute; top: calc(100% + 8px); right: 0; min-width: 260px; background: #fff; border-radius: 12px; box-shadow: 0 8px 30px rgba(0,0,0,0.12), 0 2px 8px rgba(0,0,0,0.06); border: 1px solid rgba(0,0,0,0.06); z-index: 1000; overflow: hidden; animation: sfSlideIn 0.2s ease-out; }
.sf-dropdown.left { right: auto; left: 0; }
@keyframes sfSlideIn { from { opacity: 0; transform: translateY(-8px); } to { opacity: 1; transform: translateY(0); } }
.sf-dropdown-header { padding: 16px 18px 12px; background: linear-gradient(135deg, #f0fdf4 0%, #f8fafc 100%); border-bottom: 1px solid #e5e7eb; }
.sf-dropdown-header-label { font-size: 11px; font-weight: 500; color: #9ca3af; text-transform: uppercase; letter-spacing: 0.5px; margin-bottom: 4px; }
.sf-dropdown-header-name { font-size: 14px; font-weight: 600; color: #111827; }
.sf-dropdown ul { list-style: none; padding: 0; margin: 0; }
.sf-dropdown-item a, .sf-dropdown-item button { display: flex; align-items: center; gap: 10px; width: 100%; padding: 10px 18px; font-size: 13.5px; color: #374151; text-decoration: none; background: none; border: none; cursor: pointer; transition: background 0.15s, color 0.15s; text-align: left; }
.sf-dropdown-item a:hover, .sf-dropdown-item button:hover { background: #f0faf0; color: #16a34a; }
.sf-dropdown-item a i, .sf-dropdown-item button i { font-size: 14px; width: 18px; text-align: center; opacity: 0.65; }
.sf-dropdown-item a:hover i, .sf-dropdown-item button:hover i { opacity: 1; }
.sf-dropdown-item.logout button { color: #dc2626; }
.sf-dropdown-item.logout button:hover { background: #fef2f2; color: #b91c1c; }
.sf-dropdown-divider { height: 1px; background: #f0f0f0; margin: 4px 0; }
.sf-dropdown-guest a { display: flex; align-items: center; gap: 10px; padding: 12px 18px; font-size: 14px; color: #374151; text-decoration: none; transition: background 0.15s; }
.sf-dropdown-guest a:hover { background: #f0faf0; color: #16a34a; }

.sf-sidebar-overlay { position: fixed; top: 0; left: 0; right: 0; bottom: 0; background: rgba(0,0,0,0.3); z-index: 9998; }
.sf-sidebar { position: fixed; top: 0; right: 0; width: min(400px, 90vw); height: 100vh; background: #fff; box-shadow: -4px 0 20px rgba(0,0,0,0.15); z-index: 9999; overflow-y: auto; padding: 20px; }
.sf-sidebar-header { display: flex; justify-content: space-between; align-items: center; margin-bottom: 24px; }
.sf-sidebar-title { font-size: 22px; font-weight: 800; color: #1a1a2e; margin: 0; letter-spacing: -0.02em; }
.sf-sidebar-close { background: none; border: none; font-size: 28px; color: #999; cursor: pointer; padding: 0; line-height: 1; }
.sf-sidebar-section-label { font-size: 11px; font-weight: 700; color: #999; text-transform: uppercase; letter-spacing: 0.5px; padding-left: 4px; margin-bottom: 12px; }
.sf-sidebar-link { display: flex; align-items: center; justify-content: space-between; padding: 12px 0; border-bottom: 1px solid #e5e7eb; text-decoration: none; color: #333; transition: background 0.2s; }
.sf-sidebar-link:hover { color: #1a5c38; }
.sf-sidebar-link-left { display: flex; align-items: center; gap: 12px; }
.sf-sidebar-link-icon { width: 32px; height: 32px; border-radius: 8px; display: flex; align-items: center; justify-content: center; color: #fff; font-size: 16px; }

.sf-categories-grid { padding: 16px; display: grid; grid-template-columns: repeat(2, 1fr); gap: 12px; min-width: 300px; }
.sf-cat-item { display: flex; flex-direction: column; align-items: center; gap: 8px; padding: 12px; color: #333; text-decoration: none; font-size: 12px; font-weight: 500; border-radius: 8px; text-align: center; transition: all 0.2s; }
.sf-cat-item:hover { background: #f0faf0; color: #1a5c38; }
.sf-cat-icon { width: 40px; height: 40px; border-radius: 8px; display: flex; align-items: center; justify-content: center; font-size: 20px; }

.sf-mobile-bar { display: flex; align-items: center; justify-content: space-between; padding: 12px 16px; background: #1a5c38; }
.sf-hamburger { background: none; border: none; cursor: pointer; padding: 0; }
.sf-hamburger span { display: block; width: 22px; height: 2.5px; background: #fff; border-radius: 2px; margin: 4px 0; }

/* ═══════════════════════════════════════════
   PRODUCT CARD — Modern Sixty60-style
   ═══════════════════════════════════════════ */
.sf-pcard {
    position: relative;
    background: #fff;
    border-radius: 22px;
    overflow: hidden;
    border: 1px solid #f1f3f4;
    height: 100%;
    display: flex;
    flex-direction: column;
    min-height: 100%;
    font-family: 'Plus Jakarta Sans', 'Quicksand', sans-serif;
    transition: transform 0.28s cubic-bezier(0.25, 0.46, 0.45, 0.94),
                box-shadow 0.28s cubic-bezier(0.25, 0.46, 0.45, 0.94);
}
.sf-pcard:hover {
    transform: translateY(-4px);
    box-shadow: 0 16px 42px rgba(28, 54, 85, 0.08);
}

/* Link wrapper */
.sf-pcard-link {
    display: flex;
    flex-direction: column;
    flex: 1;
    text-decoration: none;
    color: inherit;
    min-height: 100%;
}

/* ── Image ── */
.sf-pcard-img-wrap {
    position: relative;
    background: #fff;
    width: 100%;
    min-height: 220px;
    overflow: hidden;
    display: flex;
    align-items: center;
    justify-content: center;
    padding: 18px 18px 8px;
}
.sf-pcard-img-inner {
    height: 170px;
    width: 100%;
    display: flex;
    align-items: center;
    justify-content: center;
}
.sf-pcard-img {
    width: auto;
    max-width: 100%;
    height: auto;
    max-height: 100%;
    object-fit: contain;
    padding: 0;
    transition: transform 0.4s cubic-bezier(0.25, 0.46, 0.45, 0.94);
    position: relative;
    z-index: 10;
}
.sf-pcard:hover .sf-pcard-img {
    transform: scale(1.03);
}

/* ── Badges ── */
.sf-pcard-badges {
    position: absolute;
    left: 18px;
    bottom: 8px;
    display: flex;
    flex-direction: column;
    gap: 4px;
    z-index: 3;
}
.sf-pcard-badge {
    display: inline-block;
    font-size: 12px;
    font-weight: 800;
    padding: 6px 10px;
    border-radius: 8px;
    line-height: 1.4;
    letter-spacing: 0.02em;
}
.sf-pcard-badge.sale {
    background: #ff5a1f;
    color: #fff;
}
.sf-pcard-badge.low {
    background: #fff5df;
    color: #9a5b00;
}

/* ── Out of stock overlay ── */
.sf-pcard-oos {
    position: absolute;
    inset: 0;
    display: flex;
    align-items: center;
    justify-content: center;
    background: rgba(255, 255, 255, 0.8);
    -webkit-backdrop-filter: blur(3px);
    backdrop-filter: blur(3px);
    z-index: 2;
}
.sf-pcard-oos span {
    background: #f1f3f2;
    color: #666;
    font-size: 12px;
    font-weight: 700;
    padding: 8px 14px;
    border-radius: 20px;
}

/* ── Body content ── */
.sf-pcard-body {
    display: flex;
    flex-direction: column-reverse;
    display: flex;
    flex: 1;
    gap: 8px;
    padding: 8px 16px 16px;
}
.sf-pcard-brand {
    font-size: 10px;
    font-weight: 700;
    color: #111111;
    text-transform: uppercase;
    letter-spacing: 0.08em;
    opacity: 0.55;
}
.sf-pcard-title {
    font-size: 13px;
    font-weight: 700;
    color: #111111;
    line-height: 1.35;
    margin: 0;
    display: -webkit-box;
    -webkit-line-clamp: 3;
    -webkit-box-orient: vertical;
    overflow: hidden;
    flex: 1;
    min-height: 52px;
}
.sf-pcard-price-row {
    display: flex;
    align-items: baseline;
    gap: 10px;
    flex-wrap: wrap;
    margin-top: 0;
}
.sf-pcard-price {
    display: flex;
    align-items: flex-start;
}
.sf-pcard-dollar {
    font-size: 14px;
    font-weight: 900;
    color: #1a5c38;
    margin-top: 2px;
}
.sf-pcard-amount {
    font-size: 22px;
    font-weight: 900;
    color: #1a5c38;
    line-height: 1;
    letter-spacing: -0.02em;
}
.sf-pcard-cents {
    font-size: 12px;
    font-weight: 900;
    color: #1a5c38;
    line-height: 1;
    margin-top: 3px;
}
.sf-pcard-old {
    font-size: 12px;
    color: #b7c1cd;
    text-decoration: line-through;
    font-weight: 700;
}

/* ── Add to cart FAB ── */
.sf-pcard-cart {
    position: absolute;
    top: 14px;
    right: 14px;
    border: none;
    background: #1a5c38;
    color: #fff;
    cursor: pointer;
    display: inline-flex;
    align-items: center;
    gap: 8px;
    padding: 10px 14px;
    border-radius: 999px;
    font-size: 14px;
    font-weight: 800;
    line-height: 1;
    letter-spacing: -0.02em;
    z-index: 4;
    transition: transform 0.2s ease, box-shadow 0.2s ease, background 0.2s ease;
    box-shadow: 0 10px 24px rgba(26, 92, 56, 0.24);
}
.sf-pcard-cart span {
    display: flex;
    align-items: center;
}
.sf-pcard-cart:hover {
    background: #15492c;
    transform: translateY(-1px);
    box-shadow: 0 12px 28px rgba(26, 92, 56, 0.28);
}
.sf-pcard-cart.added {
    background: #27ae60;
    animation: sf-pcard-pop 0.3s ease;
}
@keyframes sf-pcard-pop {
    0% { transform: scale(1); }
    50% { transform: scale(1.2); }
    100% { transform: scale(1); }
}

@media (max-width: 767px) {
    .sf-pcard { border-radius: 18px; }
    .sf-pcard-img-wrap { min-height: 170px; padding: 16px 12px 6px; }
    .sf-pcard-img-inner { height: 130px; }
    .sf-pcard-body { padding: 8px 12px 14px; gap: 6px; }
    .sf-pcard-title { font-size: 12px; min-height: 46px; }
    .sf-pcard-dollar { font-size: 13px; margin-top: 1px; }
    .sf-pcard-amount { font-size: 20px; }
    .sf-pcard-cents { font-size: 11px; margin-top: 3px; }
    .sf-pcard-old { font-size: 13px; }
    .sf-pcard-badges { left: 14px; bottom: 4px; }
    .sf-pcard-badge { font-size: 10px; padding: 5px 8px; }
    .sf-pcard-cart { top: 10px; right: 10px; padding: 8px 12px; gap: 6px; font-size: 12px; }
    .sf-pcard-cart svg { width: 16px; height: 16px; }
}

/* === FORMAL MOBILE REDESIGN: Mobile Header Bar === */
@media (max-width: 991px) {
    .sf-mobile-bar {
        background: #FFFFFF !important;
        border-bottom: 1px solid #E5E5E5;
        box-shadow: none !important;
    }
    .sf-mobile-bar svg,
    .sf-mobile-bar .sf-icon,
    .sf-hamburger span {
        background: #1A1A1A !important;
    }
    .sf-mobile-bar img {
        filter: none !important;
    }
    .sf-cart-badge {
        background: #1A1A1A !important;
        color: #FFFFFF !important;
    }
}

/* === CAROUSEL ARROWS - Professional Design === */
.s60-carousel-arrow {
    position: absolute;
    top: 50%;
    transform: translateY(-50%);
    z-index: 10;
    width: 44px;
    height: 44px;
    border-radius: 8px;
    border: 1px solid #E5E5E5;
    background: #FFFFFF;
    color: #1A1A1A;
    cursor: pointer;
    display: flex;
    align-items: center;
    justify-content: center;
    transition: all 0.3s cubic-bezier(0.4, 0, 0.2, 1);
    padding: 0;
    box-shadow: 0 2px 8px rgba(0, 0, 0, 0.08);
}

.s60-carousel-arrow:hover {
    background: #1A1A1A;
    color: #FFFFFF;
    border-color: #1A1A1A;
    box-shadow: 0 4px 16px rgba(0, 0, 0, 0.16);
    transform: translateY(-50%) scale(1.05);
}

.s60-carousel-arrow:active {
    transform: translateY(-50%) scale(0.98);
}

.s60-carousel-arrow--prev {
    left: -60px;
}

.s60-carousel-arrow--next {
    right: -60px;
}

.s60-carousel-arrow svg {
    width: 20px;
    height: 20px;
    stroke-width: 2.5;
}

@media (max-width: 991px) {
    .s60-carousel-arrow {
        width: 40px;
        height: 40px;
        box-shadow: 0 2px 6px rgba(0, 0, 0, 0.1);
    }

    .s60-carousel-arrow--prev {
        left: -50px;
    }

    .s60-carousel-arrow--next {
        right: -50px;
    }

    .s60-carousel-arrow svg {
        width: 18px;
        height: 18px;
    }
}

@media (max-width: 768px) {
    .s60-carousel-arrow {
        width: 36px;
        height: 36px;
        box-shadow: 0 1px 4px rgba(0, 0, 0, 0.08);
    }

    .s60-carousel-arrow--prev {
        left: -44px;
    }

    .s60-carousel-arrow--next {
        right: -44px;
    }

    .s60-carousel-arrow svg {
        width: 16px;
        height: 16px;
    }
}

.s60-carousel-wrap {
    position: relative;
    padding: 0 80px;
}

@media (max-width: 991px) {
    .s60-carousel-wrap {
        padding: 0 70px;
    }
}

@media (max-width: 768px) {
    .s60-carousel-wrap {
        padding: 0 60px;
    }
}

/* ── Product Gallery & Lightbox ── */

.sf-gallery-main-img {
    aspect-ratio: 1 / 1;
    display: flex;
    align-items: center;
    justify-content: center;
    background: #fff;
    border: 1px solid #e8e8e8;
    border-radius: 12px;
}

/* Thumbnail active state */
.mySwiper .swiper-slide-thumb-active {
    border: 2px solid var(--snappy-green);
    border-radius: 8px;
    opacity: 1;
}

.mySwiper .swiper-slide {
    opacity: 0.6;
    border: 2px solid transparent;
    border-radius: 8px;
    cursor: pointer;
    transition: opacity 0.2s, border-color 0.2s;
}

.mySwiper .swiper-slide:hover {
    opacity: 0.85;
}

/* Zoom icon overlay */
.detail-gallery {
    position: relative;
}

.detail-gallery .zoom-icon {
    position: absolute;
    top: 12px;
    right: 12px;
    z-index: 10;
    width: 36px;
    height: 36px;
    background: rgba(255,255,255,0.9);
    border-radius: 50%;
    display: flex;
    align-items: center;
    justify-content: center;
    cursor: pointer;
    box-shadow: 0 2px 8px rgba(0,0,0,0.1);
    transition: background 0.2s;
}

.detail-gallery .zoom-icon:hover {
    background: #fff;
}

/* Lightbox modal */
.sf-lightbox-overlay {
    background: rgba(0, 0, 0, 0.85) !important;
}

.sf-lightbox-modal {
    max-width: 90vw !important;
    max-height: 90vh !important;
    width: 90vw !important;
    padding: 0 !important;
    background: transparent !important;
    box-shadow: none !important;
}

.sf-lightbox-modal .swiper-button-prev,
.sf-lightbox-modal .swiper-button-next {
    color: #fff;
}

.sf-lightbox-modal .swiper-zoom-container {
    display: flex;
    align-items: center;
    justify-content: center;
    height: 85vh;
    cursor: grab;
}

.sf-lightbox-modal .swiper-zoom-container:active {
    cursor: grabbing;
}
