/* 
 * Main CSS for Hijab App - DC Collection
 * Denim23 Store
 */

:root {
  --primary: #ff0090;
  --primary-dark: #d1007a;
  --primary-light: #ff4da6;
  --white: #ffffff;
  --soft-gray: #f5f5f5;
  --dark-gray: #333333;
  --light-gray: #e9ecef;
  --success: #28a745;
  --warning: #ffc107;
  --danger: #dc3545;
  --info: #17a2b8;
}

/* Typography */
body {
  font-family: "Roboto", sans-serif;
  line-height: 1.6;
  color: var(--dark-gray);
  background-color: var(--soft-gray);
}

h1,
h2,
h3,
h4,
h5,
h6 {
  font-family: "Poppins", sans-serif;
  font-weight: 600;
}

.text-primary {
  color: var(--primary) !important;
}

.bg-primary {
  background-color: var(--primary) !important;
}

.btn-primary {
  background-color: var(--primary);
  border-color: var(--primary);
  color: var(--white);
  border-radius: 25px;
  padding: 10px 25px;
  font-weight: 500;
  transition: all 0.3s ease;
}

.btn-primary:hover,
.btn-primary:focus {
  background-color: var(--primary-dark);
  border-color: var(--primary-dark);
  transform: translateY(-2px);
  box-shadow: 0 4px 8px rgba(255, 0, 144, 0.3);
}

.btn-outline-primary {
  color: var(--primary);
  border-color: var(--primary);
  border-radius: 25px;
  padding: 10px 25px;
  font-weight: 500;
}

.btn-outline-primary:hover {
  background-color: var(--primary);
  border-color: var(--primary);
  color: var(--white);
}

/* Loading Spinner */
.loading-spinner {
  position: fixed;
  top: 0;
  left: 0;
  width: 100%;
  height: 100%;
  background-color: rgba(255, 255, 255, 0.9);
  display: flex;
  justify-content: center;
  align-items: center;
  z-index: 9999;
}

/* WhatsApp Floating Button */
.whatsapp-float {
  position: fixed;
  bottom: 30px;
  right: 30px;
  z-index: 1000;
}

.whatsapp-float .btn {
  width: 60px;
  height: 60px;
  display: flex;
  align-items: center;
  justify-content: center;
  transition: all 0.3s ease;
}

.whatsapp-float .btn:hover {
  transform: scale(1.1);
}

/* Mobile Touch Improvements */
@media (max-width: 768px) {
  /* Touch-friendly buttons */
  .btn {
    min-height: 44px;
    touch-action: manipulation;
  }

  /* Touch-friendly navigation */
  .navbar-nav .nav-link {
    min-height: 44px;
    display: flex;
    align-items: center;
    justify-content: center;
  }

  /* Touch-friendly carousel controls */
  .carousel-control-prev,
  .carousel-control-next {
    min-height: 44px;
    min-width: 44px;
  }

  /* Touch-friendly category pills */
  .category-pill {
    min-height: 44px;
    display: flex;
    align-items: center;
    justify-content: center;
  }

  /* Touch-friendly product cards */
  .product-card {
    cursor: pointer;
  }

  .product-card .btn {
    min-height: 44px;
  }

  /* Smooth scrolling for mobile */
  html {
    scroll-behavior: smooth;
  }

  /* Better mobile spacing */
  .section {
    padding: 2rem 0;
  }

  /* Mobile-optimized grid */
  .row {
    margin-left: -10px;
    margin-right: -10px;
  }

  .row > [class*="col-"] {
    padding-left: 10px;
    padding-right: 10px;
  }

  /* Mobile card shadows */
  .card {
    border: none;
    box-shadow: 0 2px 8px rgba(0, 0, 0, 0.1);
  }

  /* Mobile button groups */
  .btn-group {
    flex-direction: column;
    width: 100%;
  }

  .btn-group .btn {
    border-radius: 8px !important;
    margin-bottom: 0.5rem;
  }

  /* Mobile form improvements */
  .form-control,
  .form-select {
    min-height: 44px;
    font-size: 16px; /* Prevents zoom on iOS */
  }

  /* Mobile table improvements */
  .table-responsive {
    border-radius: 8px;
    overflow: hidden;
  }

  /* Mobile modal improvements */
  .modal-dialog {
    margin: 1rem;
  }

  .modal-content {
    border-radius: 12px;
  }

  /* Mobile footer improvements */
  footer .row > div {
    margin-bottom: 2rem;
  }

  /* Mobile social links */
  .social-links a {
    display: inline-block;
    width: 44px;
    height: 44px;
    line-height: 44px;
    text-align: center;
    margin: 0 0.5rem;
  }
}

/* Hero Section */
.hero-section {
  background: linear-gradient(
    135deg,
    var(--primary) 0%,
    var(--primary-dark) 100%
  );
  color: var(--white);
  padding: 80px 0;
  position: relative;
  overflow: hidden;
}

/* Hero Carousel */
.hero-section .carousel {
  border-radius: 20px;
  overflow: hidden;
  box-shadow: 0 8px 30px rgba(0, 0, 0, 0.2);
}

.hero-section .carousel-item {
  height: 400px;
}

.hero-section .carousel-item img {
  height: 100%;
  object-fit: cover;
  border-radius: 20px;
}

.hero-section .carousel-control-prev,
.hero-section .carousel-control-next {
  width: 50px;
  height: 50px;
  background: rgba(0, 0, 0, 0.4);
  border-radius: 50%;
  top: 50%;
  transform: translateY(-50%);
  margin: 0 15px;
}

.hero-section .carousel-control-prev:hover,
.hero-section .carousel-control-next:hover {
  background: rgba(0, 0, 0, 0.6);
}

/* Feature Items */
.feature-item {
  padding: 20px;
  transition: all 0.3s ease;
}

.feature-item:hover {
  transform: translateY(-5px);
}

.feature-icon {
  color: var(--primary);
  transition: all 0.3s ease;
}

.feature-item:hover .feature-icon {
  transform: scale(1.1);
}

.hero-section::before {
  content: "";
  position: absolute;
  top: 0;
  left: 0;
  right: 0;
  bottom: 0;
  background: url('data:image/svg+xml,<svg xmlns="http://www.w3.org/2000/svg" viewBox="0 0 100 100"><defs><pattern id="grain" width="100" height="100" patternUnits="userSpaceOnUse"><circle cx="25" cy="25" r="1" fill="white" opacity="0.1"/><circle cx="75" cy="75" r="1" fill="white" opacity="0.1"/></pattern></defs><rect width="100" height="100" fill="url(%23grain)"/></svg>');
  opacity: 0.3;
}

.hero-content {
  position: relative;
  z-index: 2;
}

/* Product Cards */
.product-card {
  background: var(--white);
  border-radius: 15px;
  overflow: hidden;
  box-shadow: 0 2px 10px rgba(0, 0, 0, 0.1);
  transition: all 0.3s ease;
  height: 100%;
}

.product-card:hover {
  transform: translateY(-5px);
  box-shadow: 0 8px 25px rgba(0, 0, 0, 0.15);
}

.product-card .card-img-top {
  height: 250px;
  object-fit: cover;
  transition: transform 0.3s ease;
}

.product-card:hover .card-img-top {
  transform: scale(1.05);
}

.product-card .card-body {
  padding: 1.5rem;
}

.product-price {
  font-size: 1.25rem;
  font-weight: 600;
  color: var(--primary);
}

/* Mobile Product Cards */
@media (max-width: 768px) {
  .product-card {
    margin-bottom: 1rem;
  }

  .product-card .card-img-top {
    height: 200px;
  }

  .product-card .card-body {
    padding: 1rem;
  }

  .product-card .card-title {
    font-size: 1rem !important;
    line-height: 1.3;
    min-height: 2.6rem;
    display: -webkit-box;
    -webkit-line-clamp: 2;
    -webkit-box-orient: vertical;
    overflow: hidden;
  }

  .product-card .text-muted {
    font-size: 0.8rem !important;
    margin-bottom: 0.5rem !important;
  }

  .product-price {
    font-size: 1rem !important;
    margin-bottom: 1rem !important;
    line-height: 1.2;
  }

  .product-card .btn {
    padding: 8px 16px;
    font-size: 0.85rem;
    margin-bottom: 0.5rem;
  }

  .product-card .btn i {
    font-size: 0.8rem;
  }

  /* Mobile Grid Adjustments */
  .col-6 {
    padding: 0 5px;
  }

  .col-md-4 {
    margin-bottom: 1rem;
  }

  /* Mobile Product Grid */
  .row .col-6:nth-child(odd) {
    padding-left: 0;
  }

  .row .col-6:nth-child(even) {
    padding-right: 0;
  }

  /* Mobile Card Shadows */
  .product-card {
    box-shadow: 0 2px 8px rgba(0, 0, 0, 0.08);
  }

  .product-card:active {
    transform: scale(0.98);
  }
}

/* Extra Small Mobile */
@media (max-width: 576px) {
  .product-card .card-img-top {
    height: 180px;
  }

  .product-card .card-body {
    padding: 0.75rem;
  }

  .product-card .card-title {
    font-size: 0.9rem !important;
    min-height: 2.4rem;
  }

  .product-price {
    font-size: 0.9rem !important;
  }

  .product-card .btn {
    padding: 6px 12px;
    font-size: 0.8rem;
  }

  /* Mobile Grid Spacing */
  .row {
    margin-left: -5px;
    margin-right: -5px;
  }

  .col-6 {
    padding: 0 5px;
  }

  /* Mobile Section Spacing */
  .py-5 {
    padding-top: 2rem !important;
    padding-bottom: 2rem !important;
  }

  .mb-5 {
    margin-bottom: 1.5rem !important;
  }

  /* Mobile Section Title */
  h2.text-center.mb-5 {
    font-size: 1.5rem !important;
    margin-bottom: 1.5rem !important;
  }

  /* Mobile Category Pills */
  .category-pill {
    padding: 10px 16px;
    margin: 5px;
    font-size: 0.85rem;
  }

  /* Mobile Section Layout */
  @media (max-width: 768px) {
    .container {
      padding-left: 15px;
      padding-right: 15px;
    }

    /* Mobile Product Section */
    .product-section {
      padding: 2rem 0;
    }

    .product-section .row {
      margin-left: -5px;
      margin-right: -5px;
    }

    .product-section .col-6 {
      padding: 0 5px;
    }

    /* Mobile Section Headers */
    .section-header {
      text-align: center;
      margin-bottom: 2rem;
    }

    .section-header h2 {
      font-size: 1.5rem !important;
      margin-bottom: 1rem !important;
    }

    .section-header p {
      font-size: 0.9rem !important;
      margin-bottom: 0 !important;
    }

    /* Mobile Product Grid Optimization */
    .product-grid {
      display: grid;
      grid-template-columns: repeat(2, 1fr);
      gap: 10px;
      margin: 0;
    }

    .product-grid .col-6 {
      padding: 0;
      margin: 0;
    }

    /* Mobile Card Improvements */
    .product-card {
      border-radius: 12px;
      overflow: hidden;
    }

    .product-card .card-img-top {
      border-radius: 12px 12px 0 0;
    }

    /* Mobile Button Improvements */
    .product-card .btn-group {
      display: flex;
      flex-direction: column;
      gap: 0.5rem;
    }

    .product-card .btn {
      border-radius: 8px;
      font-weight: 500;
    }

    /* Mobile Price Display */
    .product-price {
      background: linear-gradient(135deg, var(--primary), var(--primary-dark));
      color: white;
      padding: 0.5rem;
      border-radius: 8px;
      text-align: center;
      margin: 0.5rem 0;
      font-size: 0.9rem !important;
    }

    /* Mobile Category Badge */
    .product-card .text-muted {
      background: var(--light-gray);
      color: var(--dark-gray) !important;
      padding: 0.25rem 0.5rem;
      border-radius: 12px;
      display: inline-block;
      font-size: 0.75rem !important;
      font-weight: 500;
    }
  }
}

/* Mobile Landscape */
@media (max-width: 768px) and (orientation: landscape) {
  .product-card .card-img-top {
    height: 150px;
  }

  .product-card .card-body {
    padding: 0.75rem;
  }

  .product-card .card-title {
    font-size: 0.9rem !important;
    min-height: 2.2rem;
  }
}

.product-variants {
  margin: 15px 0;
}

.variant-option {
  display: inline-block;
  margin: 5px;
  padding: 8px 15px;
  border: 2px solid var(--light-gray);
  border-radius: 20px;
  cursor: pointer;
  transition: all 0.3s ease;
  font-size: 0.9rem;
}

.variant-option:hover,
.variant-option.active {
  border-color: var(--primary);
  background-color: var(--primary);
  color: var(--white);
}

/* Category Pills */
.category-pill {
  display: inline-block;
  padding: 8px 20px;
  margin: 5px;
  background-color: var(--white);
  color: var(--primary);
  border: 2px solid var(--primary);
  border-radius: 25px;
  text-decoration: none;
  transition: all 0.3s ease;
  font-weight: 500;
}

.category-pill:hover,
.category-pill.active {
  background-color: var(--primary);
  color: var(--white);
  text-decoration: none;
}

/* Cart & Checkout */
.cart-item {
  background: var(--white);
  border-radius: 10px;
  padding: 20px;
  margin-bottom: 15px;
  box-shadow: 0 2px 5px rgba(0, 0, 0, 0.1);
}

.cart-item img {
  width: 80px;
  height: 80px;
  object-fit: cover;
  border-radius: 8px;
}

.quantity-control {
  display: flex;
  align-items: center;
  gap: 10px;
}

.quantity-btn {
  width: 35px;
  height: 35px;
  border: 1px solid var(--light-gray);
  background: var(--white);
  border-radius: 50%;
  display: flex;
  align-items: center;
  justify-content: center;
  cursor: pointer;
  transition: all 0.3s ease;
}

.quantity-btn:hover {
  background: var(--primary);
  color: var(--white);
  border-color: var(--primary);
}

.quantity-btn:disabled {
  opacity: 0.5;
  cursor: not-allowed;
}

.quantity-btn:disabled:hover {
  background: var(--white);
  color: var(--dark-gray);
  border-color: var(--light-gray);
}

.quantity-display {
  min-width: 30px;
  text-align: center;
  font-weight: 600;
  font-size: 16px;
}

/* Mobile Navigation Improvements */
@media (max-width: 768px) {
  .navbar {
    padding: 0.5rem 1rem;
  }

  .navbar-brand {
    font-size: 1.25rem;
  }

  .navbar-toggler {
    border: none;
    padding: 0.5rem;
  }

  .navbar-toggler:focus {
    box-shadow: none;
  }

  .navbar-collapse {
    background: rgba(255, 255, 255, 0.95);
    backdrop-filter: blur(10px);
    border-radius: 12px;
    margin-top: 1rem;
    padding: 1rem;
    box-shadow: 0 4px 20px rgba(0, 0, 0, 0.1);
  }

  .navbar-nav {
    gap: 0.5rem;
  }

  .navbar-nav .nav-link {
    border-radius: 8px;
    transition: all 0.3s ease;
  }

  .navbar-nav .nav-link:hover {
    background-color: var(--primary);
    color: var(--white) !important;
  }

  /* Mobile search bar */
  .navbar .form-control {
    border-radius: 20px;
    border: 2px solid var(--light-gray);
  }

  .navbar .form-control:focus {
    border-color: var(--primary);
    box-shadow: 0 0 0 0.2rem rgba(255, 0, 144, 0.25);
  }

  /* Mobile cart badge */
  .navbar .badge {
    position: absolute;
    top: -5px;
    right: -5px;
    font-size: 0.7rem;
    padding: 0.25rem 0.5rem;
  }
}

/* Admin Dashboard */
.admin-sidebar {
  background: var(--white);
  min-height: 100vh;
  box-shadow: 2px 0 10px rgba(0, 0, 0, 0.1);
}

.admin-sidebar .nav-link {
  color: var(--dark-gray);
  padding: 12px 20px;
  border-radius: 8px;
  margin: 5px 10px;
  transition: all 0.3s ease;
}

.admin-sidebar .nav-link:hover,
.admin-sidebar .nav-link.active {
  background-color: var(--primary);
  color: var(--white);
}

.admin-sidebar .nav-link i {
  width: 20px;
  margin-right: 10px;
}

.dashboard-card {
  background: var(--white);
  border-radius: 15px;
  padding: 25px;
  box-shadow: 0 2px 10px rgba(0, 0, 0, 0.1);
  transition: all 0.3s ease;
}

.dashboard-card:hover {
  transform: translateY(-2px);
  box-shadow: 0 8px 25px rgba(0, 0, 0, 0.15);
}

.dashboard-card .card-icon {
  width: 60px;
  height: 60px;
  border-radius: 15px;
  display: flex;
  align-items: center;
  justify-content: center;
  font-size: 1.5rem;
  color: var(--white);
  margin-bottom: 20px;
}

.dashboard-card .card-icon.primary {
  background: var(--primary);
}

.dashboard-card .card-icon.success {
  background: var(--success);
}

.dashboard-card .card-icon.warning {
  background: var(--warning);
}

.dashboard-card .card-icon.info {
  background: var(--info);
}

/* Forms */
.form-control,
.form-select {
  border-radius: 10px;
  border: 2px solid var(--light-gray);
  padding: 12px 15px;
  transition: all 0.3s ease;
}

.form-control:focus,
.form-select:focus {
  border-color: var(--primary);
  box-shadow: 0 0 0 0.2rem rgba(255, 0, 144, 0.25);
}

.form-label {
  font-weight: 500;
  color: var(--dark-gray);
  margin-bottom: 8px;
}

/* Tables */
.table {
  background: var(--white);
  border-radius: 10px;
  overflow: hidden;
  box-shadow: 0 2px 10px rgba(0, 0, 0, 0.1);
}

.table thead th {
  background-color: var(--primary);
  color: var(--white);
  border: none;
  padding: 15px;
  font-weight: 600;
}

.table tbody td {
  padding: 15px;
  vertical-align: middle;
  border-color: var(--light-gray);
}

/* Status Badges */
.badge {
  padding: 8px 12px;
  border-radius: 20px;
  font-weight: 500;
}

.badge-pending {
  background-color: var(--warning);
  color: var(--dark-gray);
}

.badge-paid {
  background-color: var(--success);
  color: var(--white);
}

.badge-shipped {
  background-color: var(--info);
  color: var(--white);
}

.badge-delivered {
  background-color: var(--success);
  color: var(--white);
}

.badge-cancelled {
  background-color: var(--danger);
  color: var(--white);
}

/* Responsive Design */
@media (max-width: 768px) {
  .hero-section {
    padding: 40px 0;
  }

  .hero-section h1 {
    font-size: 2rem !important;
    margin-bottom: 1rem !important;
  }

  .hero-section .lead {
    font-size: 1rem !important;
    margin-bottom: 1.5rem !important;
  }

  .hero-section .btn {
    padding: 10px 20px !important;
    font-size: 0.9rem !important;
  }

  .hero-section .d-flex.gap-3 {
    flex-direction: column;
    gap: 0.75rem !important;
  }

  .hero-section .carousel {
    margin-top: 2rem;
  }

  .hero-section .carousel-item {
    height: 300px;
  }

  .product-card .card-img-top {
    height: 200px;
  }

  .dashboard-card {
    margin-bottom: 20px;
  }

  .whatsapp-float {
    bottom: 20px;
    right: 20px;
  }

  .whatsapp-float .btn {
    width: 50px;
    height: 50px;
  }

  /* Mobile Navigation */
  .navbar-nav {
    text-align: center;
  }

  .navbar-nav .nav-link {
    padding: 12px 20px;
    border-bottom: 1px solid rgba(255, 255, 255, 0.1);
  }

  /* Mobile Categories */
  .category-pill {
    padding: 15px 20px;
    margin: 8px;
    font-size: 0.9rem;
  }

  /* Mobile Features */
  .feature-item {
    padding: 25px 15px;
    margin-bottom: 1rem;
  }

  .feature-icon {
    font-size: 2.5rem !important;
  }

  /* Mobile Testimonials */
  .card-body {
    padding: 1.5rem !important;
  }

  /* Mobile CTA */
  .d-flex.gap-3.justify-content-center {
    flex-direction: column;
    gap: 1rem !important;
  }
}

/* Extra Small Devices */
@media (max-width: 576px) {
  .hero-section {
    padding: 30px 0;
  }

  .hero-section h1 {
    font-size: 1.75rem !important;
  }

  .hero-section .carousel-item {
    height: 250px;
  }

  .hero-section .carousel-control-prev,
  .hero-section .carousel-control-next {
    width: 40px;
    height: 40px;
    margin: 0 10px;
  }

  .container {
    padding-left: 15px;
    padding-right: 15px;
  }

  .product-card .card-img-top {
    height: 180px;
  }

  .btn-lg {
    padding: 12px 20px;
    font-size: 0.9rem;
  }

  .py-5 {
    padding-top: 3rem !important;
    padding-bottom: 3rem !important;
  }

  .mb-5 {
    margin-bottom: 2rem !important;
  }

  .mb-4 {
    margin-bottom: 1.5rem !important;
  }

  /* Mobile Grid Adjustments */
  .col-6 {
    padding: 0 5px;
  }

  .col-md-4 {
    margin-bottom: 1rem;
  }

  /* Mobile Typography */
  h2 {
    font-size: 1.5rem !important;
  }

  h3 {
    font-size: 1.25rem !important;
  }

  .lead {
    font-size: 1rem !important;
  }

  /* Mobile Spacing */
  .row > [class*="col-"] {
    margin-bottom: 1rem;
  }

  /* Mobile Buttons */
  .btn {
    width: 100%;
    margin-bottom: 0.5rem;
  }

  .btn + .btn {
    margin-left: 0 !important;
  }

  /* Mobile Cards */
  .card {
    margin-bottom: 1rem;
  }

  /* Mobile WhatsApp Float */
  .whatsapp-float {
    bottom: 15px;
    right: 15px;
  }

  .whatsapp-float .btn {
    width: 45px;
    height: 45px;
  }

  .whatsapp-float .btn i {
    font-size: 1.5rem !important;
  }
}

/* Landscape Mobile */
@media (max-width: 768px) and (orientation: landscape) {
  .hero-section {
    padding: 30px 0;
  }

  .hero-section .carousel-item {
    height: 200px;
  }

  .py-5 {
    padding-top: 2rem !important;
    padding-bottom: 2rem !important;
  }
}

/* Tablet Portrait */
@media (min-width: 769px) and (max-width: 1024px) {
  .hero-section {
    padding: 60px 0;
  }

  .hero-section .carousel-item {
    height: 350px;
  }

  .container {
    max-width: 95%;
  }
}

/* Animation Classes */
.fade-in {
  animation: fadeIn 0.5s ease-in;
}

@keyframes fadeIn {
  from {
    opacity: 0;
    transform: translateY(20px);
  }
  to {
    opacity: 1;
    transform: translateY(0);
  }
}

.slide-in-left {
  animation: slideInLeft 0.5s ease-out;
}

@keyframes slideInLeft {
  from {
    opacity: 0;
    transform: translateX(-30px);
  }
  to {
    opacity: 1;
    transform: translateX(0);
  }
}

/* Mobile-First Animations */
@media (max-width: 768px) {
  .fade-in {
    animation: fadeInMobile 0.3s ease-in;
  }

  @keyframes fadeInMobile {
    from {
      opacity: 0;
      transform: translateY(15px);
    }
    to {
      opacity: 1;
      transform: translateY(0);
    }
  }

  .slide-in-left {
    animation: slideInLeftMobile 0.3s ease-out;
  }

  @keyframes slideInLeftMobile {
    from {
      opacity: 0;
      transform: translateX(-20px);
    }
    to {
      opacity: 1;
      transform: translateX(0);
    }
  }

  /* Mobile hover effects */
  .product-card:hover {
    transform: translateY(-3px);
  }

  .category-pill:hover {
    transform: scale(1.05);
  }

  .feature-item:hover {
    transform: translateY(-3px);
  }

  /* Mobile loading states */
  .btn:active {
    transform: scale(0.98);
  }

  /* Mobile scroll animations */
  .scroll-reveal {
    opacity: 0;
    transform: translateY(20px);
    transition: all 0.6s ease;
  }

  .scroll-reveal.revealed {
    opacity: 1;
    transform: translateY(0);
  }
}

/* Mobile Performance Optimizations */
@media (max-width: 768px) {
  /* Reduce motion for better performance */
  * {
    animation-duration: 0.3s !important;
    transition-duration: 0.3s !important;
  }

  /* Optimize transforms */
  .product-card,
  .category-pill,
  .feature-item {
    will-change: transform;
  }

  /* Smooth mobile scrolling */
  .carousel {
    -webkit-overflow-scrolling: touch;
  }

  /* Mobile gesture support */
  .carousel-item {
    touch-action: pan-y pinch-zoom;
  }

  /* Mobile Product Card Touch */
  .product-card {
    touch-action: manipulation;
    cursor: pointer;
  }

  .product-card:active {
    transform: scale(0.98);
  }

  /* Mobile Button Touch */
  .product-card .btn {
    touch-action: manipulation;
    user-select: none;
  }

  .product-card .btn:active {
    transform: scale(0.95);
  }

  /* Mobile Image Touch */
  .product-card .card-img-top {
    touch-action: manipulation;
  }

  /* Mobile Grid Touch */
  .col-6 {
    touch-action: manipulation;
  }

  /* Mobile Section Touch */
  .product-section {
    touch-action: pan-y;
  }
}

/* Utility Classes */
.shadow-custom {
  box-shadow: 0 4px 15px rgba(255, 0, 144, 0.15);
}

.border-primary-custom {
  border-color: var(--primary) !important;
}

.text-muted-custom {
  color: #6c757d !important;
}

/* Print Styles */
@media print {
  .no-print {
    display: none !important;
  }

  .print-only {
    display: block !important;
  }
}

/* Carousel Styles */
.carousel-section {
  margin-top: -1rem;
}

.carousel {
  border-radius: 0;
  overflow: hidden;
  box-shadow: 0 4px 20px rgba(0, 0, 0, 0.1);
}

.carousel-item {
  height: 500px;
}

.carousel-item img {
  height: 100%;
  object-fit: cover;
}

.carousel-caption {
  background: rgba(0, 0, 0, 0.4);
  border-radius: 15px;
  padding: 30px;
  max-width: 600px;
  margin: 0 auto;
  backdrop-filter: blur(10px);
}

.carousel-caption h1 {
  font-size: 2.5rem;
  font-weight: 700;
  margin-bottom: 1rem;
  text-shadow: 2px 2px 4px rgba(0, 0, 0, 0.5);
}

.carousel-caption p {
  font-size: 1.1rem;
  margin-bottom: 1.5rem;
  text-shadow: 1px 1px 2px rgba(0, 0, 0, 0.5);
}

.carousel-caption .btn {
  font-weight: 600;
  padding: 12px 30px;
  border-radius: 25px;
  text-transform: uppercase;
  letter-spacing: 0.5px;
  transition: all 0.3s ease;
}

.carousel-caption .btn:hover {
  transform: translateY(-3px);
  box-shadow: 0 8px 25px rgba(0, 0, 0, 0.3);
}

.carousel-indicators {
  bottom: 30px;
}

.carousel-indicators button {
  width: 12px;
  height: 12px;
  border-radius: 50%;
  background-color: rgba(255, 255, 255, 0.5);
  border: 2px solid transparent;
  transition: all 0.3s ease;
}

.carousel-indicators button.active {
  background-color: var(--primary);
  border-color: var(--white);
  transform: scale(1.2);
}

.carousel-control-prev,
.carousel-control-next {
  width: 60px;
  height: 60px;
  background: rgba(0, 0, 0, 0.3);
  border-radius: 50%;
  top: 50%;
  transform: translateY(-50%);
  margin: 0 20px;
  transition: all 0.3s ease;
}

.carousel-control-prev:hover,
.carousel-control-next:hover {
  background: rgba(0, 0, 0, 0.6);
  transform: translateY(-50%) scale(1.1);
}

.carousel-control-prev-icon,
.carousel-control-next-icon {
  width: 24px;
  height: 24px;
}

/* Responsive Carousel */
@media (max-width: 768px) {
  .carousel-item {
    height: 400px;
  }

  .carousel-caption {
    padding: 20px;
    max-width: 90%;
  }

  .carousel-caption h1 {
    font-size: 1.8rem;
  }

  .carousel-caption p {
    font-size: 1rem;
  }

  .carousel-control-prev,
  .carousel-control-next {
    width: 50px;
    height: 50px;
    margin: 0 10px;
  }
}

/* Featured Products Carousel */
#featuredProductsCarousel {
  position: relative;
  padding: 0 20px;
}

#featuredProductsCarousel .carousel-item {
  height: auto;
  padding: 20px 0;
}

#featuredProductsCarousel .carousel-control-prev,
#featuredProductsCarousel .carousel-control-next {
  width: 50px;
  height: 50px;
  background: rgba(255, 0, 144, 0.8);
  border-radius: 50%;
  top: 50%;
  transform: translateY(-50%);
  margin: 0;
}

#featuredProductsCarousel .carousel-control-prev {
  left: -25px;
}

#featuredProductsCarousel .carousel-control-next {
  right: -25px;
}

#featuredProductsCarousel .carousel-control-prev:hover,
#featuredProductsCarousel .carousel-control-next:hover {
  background: rgba(255, 0, 144, 1);
  transform: translateY(-50%) scale(1.1);
}

#featuredProductsCarousel .carousel-indicators {
  bottom: -40px;
}

#featuredProductsCarousel .carousel-indicators button {
  width: 12px;
  height: 12px;
  border-radius: 50%;
  background-color: rgba(255, 0, 144, 0.3);
  border: 2px solid transparent;
  transition: all 0.3s ease;
}

#featuredProductsCarousel .carousel-indicators button.active {
  background-color: var(--primary);
  border-color: var(--primary);
  transform: scale(1.2);
}

/* Mobile Products Carousel */
@media (max-width: 768px) {
  #featuredProductsCarousel {
    padding: 0 10px;
  }

  #featuredProductsCarousel .carousel-item {
    padding: 15px 0;
  }

  #featuredProductsCarousel .carousel-control-prev,
  #featuredProductsCarousel .carousel-control-next {
    width: 40px;
    height: 40px;
  }

  #featuredProductsCarousel .carousel-control-prev {
    left: -20px;
  }

  #featuredProductsCarousel .carousel-control-next {
    right: -20px;
  }

  /* Mobile Grid Adjustments */
  #featuredProductsCarousel .col-6 {
    padding: 0 5px;
  }

  #featuredProductsCarousel .product-card {
    margin-bottom: 0.5rem;
  }

  #featuredProductsCarousel .product-card .card-img-top {
    height: 150px;
  }

  #featuredProductsCarousel .product-card .card-body {
    padding: 0.75rem;
  }

  #featuredProductsCarousel .product-card .card-title {
    font-size: 0.9rem !important;
    min-height: 2.2rem;
  }

  #featuredProductsCarousel .product-price {
    font-size: 0.85rem !important;
    margin-bottom: 0.75rem !important;
  }

  #featuredProductsCarousel .product-card .btn {
    padding: 6px 10px;
    font-size: 0.8rem;
    margin-bottom: 0.4rem;
  }

  #featuredProductsCarousel .product-card .btn i {
    font-size: 0.7rem;
  }
}

/* Extra Small Mobile */
@media (max-width: 576px) {
  #featuredProductsCarousel {
    padding: 0 5px;
  }

  #featuredProductsCarousel .carousel-control-prev,
  #featuredProductsCarousel .carousel-control-next {
    width: 35px;
    height: 35px;
  }

  #featuredProductsCarousel .carousel-control-prev {
    left: -17px;
  }

  #featuredProductsCarousel .carousel-control-next {
    right: -17px;
  }

  #featuredProductsCarousel .product-card .card-img-top {
    height: 120px;
  }

  #featuredProductsCarousel .product-card .card-body {
    padding: 0.5rem;
  }

  #featuredProductsCarousel .product-card .card-title {
    font-size: 0.8rem !important;
    min-height: 2rem;
  }

  #featuredProductsCarousel .product-price {
    font-size: 0.8rem !important;
  }

  #featuredProductsCarousel .product-card .btn {
    padding: 5px 8px;
    font-size: 0.75rem;
  }
}

/* Landscape Mobile */
@media (max-width: 768px) and (orientation: landscape) {
  #featuredProductsCarousel .carousel-item {
    padding: 10px 0;
  }

  #featuredProductsCarousel .product-card .card-img-top {
    height: 100px;
  }

  #featuredProductsCarousel .product-card .card-body {
    padding: 0.5rem;
  }
}

/* Categories Carousel */
#categoriesCarousel {
  position: relative;
  padding: 0 20px;
  margin: 0 auto;
  max-width: 100%;
  overflow: hidden;
}

#categoriesCarousel .carousel-item {
  height: auto;
  padding: 20px 0;
  display: block;
}

#categoriesCarousel .carousel-item.active {
  display: block;
}

#categoriesCarousel .carousel-control-prev,
#categoriesCarousel .carousel-control-next {
  width: 50px;
  height: 50px;
  background: rgba(255, 0, 144, 0.8);
  border-radius: 50%;
  top: 50%;
  transform: translateY(-50%);
  margin: 0;
  z-index: 10;
}

#categoriesCarousel .carousel-control-prev {
  left: -25px;
}

#categoriesCarousel .carousel-control-next {
  right: -25px;
}

#categoriesCarousel .carousel-control-prev:hover,
#categoriesCarousel .carousel-control-next:hover {
  background: rgba(255, 0, 144, 1);
  transform: translateY(-50%) scale(1.1);
}

#categoriesCarousel .carousel-indicators {
  bottom: -40px;
  z-index: 5;
}

#categoriesCarousel .carousel-indicators button {
  width: 12px;
  height: 12px;
  border-radius: 50%;
  background-color: rgba(255, 0, 144, 0.3);
  border: 2px solid transparent;
  transition: all 0.3s ease;
}

#categoriesCarousel .carousel-indicators button.active {
  background-color: var(--primary);
  border-color: var(--primary);
  transform: scale(1.2);
}

/* Ensure category pills are visible */
#categoriesCarousel .category-pill {
  display: block !important;
  visibility: visible !important;
  opacity: 1 !important;
}

/* Mobile Categories Carousel */
@media (max-width: 768px) {
  #categoriesCarousel {
    padding: 0 10px;
  }

  #categoriesCarousel .carousel-item {
    padding: 15px 0;
  }

  #categoriesCarousel .carousel-control-prev,
  #categoriesCarousel .carousel-control-next {
    width: 40px;
    height: 40px;
  }

  #categoriesCarousel .carousel-control-prev {
    left: -20px;
  }

  #categoriesCarousel .carousel-control-next {
    right: -20px;
  }

  /* Mobile Grid Adjustments */
  #categoriesCarousel .col-6 {
    padding: 0 5px;
  }

  #categoriesCarousel .category-pill {
    margin-bottom: 0.5rem;
    padding: 15px 10px;
    font-size: 0.9rem;
  }

  #categoriesCarousel .category-pill i {
    font-size: 1.5rem !important;
    margin-bottom: 0.5rem !important;
  }
}

/* Extra Small Mobile */
@media (max-width: 576px) {
  #categoriesCarousel {
    padding: 0 5px;
  }

  #categoriesCarousel .carousel-control-prev,
  #categoriesCarousel .carousel-control-next {
    width: 35px;
    height: 35px;
  }

  #categoriesCarousel .carousel-control-prev {
    left: -17px;
  }

  #categoriesCarousel .carousel-control-next {
    right: -17px;
  }

  #categoriesCarousel .category-pill {
    padding: 12px 8px;
    font-size: 0.8rem;
  }

  #categoriesCarousel .category-pill i {
    font-size: 1.3rem !important;
    margin-bottom: 0.4rem !important;
  }
}

/* Landscape Mobile */
@media (max-width: 768px) and (orientation: landscape) {
  #categoriesCarousel .carousel-item {
    padding: 10px 0;
  }

  #categoriesCarousel .category-pill {
    padding: 10px 8px;
    font-size: 0.8rem;
  }

  #categoriesCarousel .category-pill i {
    font-size: 1.2rem !important;
    margin-bottom: 0.3rem !important;
  }
}

@media (max-width: 576px) {
  .carousel-item {
    height: 350px;
  }

  .carousel-caption h1 {
    font-size: 1.5rem;
  }

  .carousel-caption .btn {
    padding: 10px 20px;
    font-size: 0.9rem;
  }
}

/* Extra Small Mobile */
@media (max-width: 576px) {
  .category-scroll-item {
    min-width: 100px;
    max-width: 100px;
  }

  .category-pill-mobile {
    height: 90px;
    padding: 12px 8px;
  }

  .category-pill-mobile .category-name {
    font-size: 0.75rem;
  }

  .category-pill-mobile i {
    font-size: 1.5rem !important;
  }

  .categories-scroll-container {
    gap: 10px;
    padding: 0 5px;
  }
}

/* Landscape Mobile */
@media (max-width: 768px) and (orientation: landscape) {
  .category-scroll-item {
    min-width: 110px;
    max-width: 110px;
  }

  .category-pill-mobile {
    height: 80px;
    padding: 10px 8px;
  }

  .category-pill-mobile .category-name {
    font-size: 0.7rem;
  }

  .category-pill-mobile i {
    font-size: 1.3rem !important;
  }
}

/* Mobile Horizontal Scroll Categories */
.mobile-categories-scroll {
  display: none;
  margin-top: 1rem;
}

.categories-scroll-container {
  display: flex;
  overflow-x: auto;
  scroll-behavior: smooth;
  -webkit-overflow-scrolling: touch;
  scrollbar-width: none; /* Firefox */
  -ms-overflow-style: none; /* IE and Edge */
  gap: 15px;
  padding: 0 10px;
}

.categories-scroll-container::-webkit-scrollbar {
  display: none; /* Chrome, Safari, Opera */
}

.category-scroll-item {
  flex: 0 0 auto;
  min-width: 120px;
  max-width: 120px;
}

.category-pill-mobile {
  background: var(--white);
  color: var(--primary);
  border: 2px solid var(--primary);
  border-radius: 20px;
  padding: 15px 10px;
  text-decoration: none;
  transition: all 0.3s ease;
  display: flex;
  flex-direction: column;
  align-items: center;
  justify-content: center;
  height: 100px;
  box-shadow: 0 2px 8px rgba(0, 0, 0, 0.1);
}

.category-pill-mobile:hover,
.category-pill-mobile:focus {
  background: var(--primary);
  color: var(--white);
  text-decoration: none;
  transform: translateY(-2px);
  box-shadow: 0 4px 15px rgba(255, 0, 144, 0.3);
}

.category-pill-mobile .category-name {
  font-size: 0.8rem;
  font-weight: 500;
  line-height: 1.2;
  margin-top: 0.5rem;
}

.category-pill-mobile i {
  color: inherit;
  margin-bottom: 0.5rem;
}

/* Category Logo Styling */
.category-logo-container {
  position: relative;
  display: inline-block;
  width: 60px;
  height: 60px;
  margin: 0 auto 10px;
}

.category-logo-image {
  width: 100%;
  height: 100%;
  object-fit: cover;
  border-radius: 50%;
  border: 3px solid var(--primary);
  transition: all 0.3s ease;
}

.category-logo-image-mobile {
  width: 100%;
  height: 100%;
  object-fit: cover;
  border-radius: 50%;
  border: 2px solid var(--primary);
  transition: all 0.3s ease;
}

.category-pill:hover .category-logo-image,
.category-pill-mobile:hover .category-logo-image-mobile {
  transform: scale(1.1);
  border-color: var(--white);
  box-shadow: 0 4px 15px rgba(255, 0, 144, 0.3);
}

/* Fallback icon styling */
.category-logo-container i {
  position: absolute;
  top: 50%;
  left: 50%;
  transform: translate(-50%, -50%);
  font-size: 2rem;
  color: var(--primary);
}

/* Small category logo for catalog page */
.category-logo-small {
  position: relative;
  display: inline-block;
  width: 30px;
  height: 30px;
}

.category-logo-small-image {
  width: 100%;
  height: 100%;
  object-fit: cover;
  border-radius: 50%;
  border: 2px solid var(--primary);
  transition: all 0.3s ease;
}

.category-logo-small i {
  position: absolute;
  top: 50%;
  left: 50%;
  transform: translate(-50%, -50%);
  font-size: 1.2rem;
  color: var(--primary);
}

/* Hide desktop carousel on mobile */
@media (max-width: 767px) {
  #categoriesCarousel {
    display: none !important;
  }

  .mobile-categories-scroll {
    display: block !important;
  }
}

/* Show desktop carousel on larger screens */
@media (min-width: 768px) {
  .mobile-categories-scroll {
    display: none !important;
  }

  #categoriesCarousel {
    display: block !important;
  }
}

/* Mobile Horizontal Scroll Products */
.mobile-products-scroll {
  display: none;
  margin-top: 1rem;
}

.products-scroll-container {
  display: flex;
  overflow-x: auto;
  scroll-behavior: smooth;
  -webkit-overflow-scrolling: touch;
  scrollbar-width: none; /* Firefox */
  -ms-overflow-style: none; /* IE and Edge */
  gap: 15px;
  padding: 0 10px;
}

.products-scroll-container::-webkit-scrollbar {
  display: none; /* Chrome, Safari, Opera */
}

.product-scroll-item {
  flex: 0 0 auto;
  min-width: 200px;
  max-width: 200px;
}

.product-card-mobile {
  background: var(--white);
  border-radius: 15px;
  overflow: hidden;
  box-shadow: 0 2px 10px rgba(0, 0, 0, 0.1);
  transition: all 0.3s ease;
  height: 100%;
  border: none;
}

.product-card-mobile:hover {
  transform: translateY(-3px);
  box-shadow: 0 8px 25px rgba(0, 0, 0, 0.15);
}

.card-img-top-mobile {
  height: 150px;
  object-fit: cover;
  transition: transform 0.3s ease;
  width: 100%;
}

.product-card-mobile:hover .card-img-top-mobile {
  transform: scale(1.05);
}

.card-body-mobile {
  padding: 1rem;
}

.card-title-mobile {
  font-size: 0.9rem;
  line-height: 1.3;
  min-height: 2.4rem;
  display: -webkit-box;
  -webkit-line-clamp: 2;
  -webkit-box-orient: vertical;
  overflow: hidden;
  margin-bottom: 0.5rem;
}

.text-muted-mobile {
  font-size: 0.75rem;
  margin-bottom: 0.5rem;
  background: var(--light-gray);
  color: var(--dark-gray) !important;
  padding: 0.25rem 0.5rem;
  border-radius: 12px;
  display: inline-block;
  font-weight: 500;
}

.product-price-mobile {
  font-size: 0.9rem;
  font-weight: 600;
  color: var(--primary);
  margin-bottom: 0.75rem;
  line-height: 1.2;
}

.product-card-mobile .btn {
  padding: 6px 10px;
  font-size: 0.75rem;
  margin-bottom: 0.4rem;
  min-height: 32px;
}

.product-card-mobile .btn i {
  font-size: 0.7rem;
}

/* Hide desktop carousel on mobile */
@media (max-width: 767px) {
  #featuredProductsCarousel {
    display: none !important;
  }

  .mobile-products-scroll {
    display: block !important;
  }
}

/* Show desktop carousel on larger screens */
@media (min-width: 768px) {
  .mobile-products-scroll {
    display: none !important;
  }

  #featuredProductsCarousel {
    display: block !important;
  }
}

/* Extra Small Mobile */
@media (max-width: 576px) {
  .product-scroll-item {
    min-width: 180px;
    max-width: 180px;
  }

  .card-img-top-mobile {
    height: 130px;
  }

  .card-body-mobile {
    padding: 0.75rem;
  }

  .card-title-mobile {
    font-size: 0.85rem;
    min-height: 2.2rem;
  }

  .product-price-mobile {
    font-size: 0.85rem;
  }

  .products-scroll-container {
    gap: 10px;
    padding: 0 5px;
  }
}

/* Landscape Mobile */
@media (max-width: 768px) and (orientation: landscape) {
  .product-scroll-item {
    min-width: 170px;
    max-width: 170px;
  }

  .card-img-top-mobile {
    height: 120px;
  }

  .card-body-mobile {
    padding: 0.75rem;
  }

  .card-title-mobile {
    font-size: 0.8rem;
    min-height: 2rem;
  }
}

/* New Arrival Carousel Styling */
#newArrivalCarousel {
  position: relative;
  margin-bottom: 2rem;
}

#newArrivalCarousel .carousel-control-prev,
#newArrivalCarousel .carousel-control-next {
  width: 50px;
  height: 50px;
  background: rgba(255, 255, 255, 0.9);
  border-radius: 50%;
  top: 50%;
  transform: translateY(-50%);
  border: none;
  box-shadow: 0 2px 10px rgba(0, 0, 0, 0.1);
}

#newArrivalCarousel .carousel-control-prev {
  left: -25px;
}

#newArrivalCarousel .carousel-control-next {
  right: -25px;
}

#newArrivalCarousel .carousel-control-prev-icon,
#newArrivalCarousel .carousel-control-next-icon {
  filter: invert(1);
  width: 20px;
  height: 20px;
}

#newArrivalCarousel .carousel-indicators {
  bottom: -40px;
}

#newArrivalCarousel .carousel-indicators button {
  width: 12px;
  height: 12px;
  border-radius: 50%;
  background-color: var(--light-gray);
  border: none;
  margin: 0 4px;
  transition: all 0.3s ease;
}

#newArrivalCarousel .carousel-indicators button.active {
  background-color: var(--primary);
  transform: scale(1.2);
}

/* Mobile Horizontal Scroll New Arrival */
.mobile-newarrival-scroll {
  display: none;
  margin-top: 1rem;
}

.newarrival-scroll-container {
  display: flex;
  overflow-x: auto;
  scroll-behavior: smooth;
  -webkit-overflow-scrolling: touch;
  scrollbar-width: none; /* Firefox */
  -ms-overflow-style: none; /* IE and Edge */
  gap: 15px;
  padding: 0 10px;
}

.newarrival-scroll-container::-webkit-scrollbar {
  display: none; /* Chrome, Safari, Opera */
}

/* Hide desktop carousel on mobile */
@media (max-width: 767px) {
  #newArrivalCarousel {
    display: none !important;
  }

  .mobile-newarrival-scroll {
    display: block !important;
  }
}

/* Show desktop carousel on larger screens */
@media (min-width: 768px) {
  .mobile-newarrival-scroll {
    display: none !important;
  }

  #newArrivalCarousel {
    display: block !important;
  }
}

/* Extra Small Mobile */
@media (max-width: 576px) {
  .newarrival-scroll-container {
    gap: 10px;
    padding: 0 5px;
  }
}

/* Landscape Mobile */
@media (max-width: 768px) and (orientation: landscape) {
  .newarrival-scroll-container {
    gap: 12px;
    padding: 0 8px;
  }
}

/* Mobile Price Styling */
@media (max-width: 768px) {
  .text-primary.fw-bold,
  h3.text-primary.fw-bold,
  .product-card .text-primary.fw-bold,
  .product-detail-mobile .text-primary.fw-bold,
  .product-price .text-primary.fw-bold,
  .price-display.text-primary.fw-bold {
    color: white !important;
  }

  /* More specific selectors for mobile */
  @media (max-width: 576px) {
    .text-primary.fw-bold,
    h3.text-primary.fw-bold,
    .product-card .text-primary.fw-bold,
    .product-detail-mobile .text-primary.fw-bold,
    .product-price .text-primary.fw-bold,
    .price-display.text-primary.fw-bold {
      color: white !important;
    }
  }
}
