html {
  font-size: 14px;
}

@media (min-width: 768px) {
  html {
    font-size: 16px;
  }
}

.btn:focus, .btn:active:focus, .btn-link.nav-link:focus, .form-control:focus, .form-check-input:focus {
  box-shadow: 0 0 0 0.1rem white, 0 0 0 0.25rem #258cfb;
}

html {
  position: relative;
  min-height: 100%;
}

.navbar.sticky-top {
  position: sticky;
  top: 0;
  width: 100%;
  z-index: 1030;
  background-color: #ffffff;
}

.tech-header {
  position: sticky;
  top: 0;
  width: 100%;
  z-index: 1040;
}

.tech-header .top-bar {
  gap: 1rem;
}

.tech-header .top-bar .search {
  flex: 1;
  min-width: 0;
  position: relative;
}

.tech-header .top-bar .search .form-control {
  width: 100%;
}

.tech-header .top-bar button.btn.btn-link {
  padding: 0;
}

.category-collapse .nav {
  justify-content: center;
}

.category-collapse .nav-link {
  font-weight: 600;
  transition: all 0.3s ease;
  border-radius: 8px;
  padding: 0.5rem 1rem !important;
  color: #1f2937 !important;
}

.category-collapse .nav-link:hover {
  background-color: rgba(255, 107, 53, 0.1);
  color: #ff6b35 !important;
  transform: translateX(4px);
  box-shadow: 0 2px 8px rgba(255, 107, 53, 0.15);
}

@media (max-width: 991px) {
  .tech-header .top-bar {
    flex-direction: column;
    align-items: stretch;
  }

  .tech-header .top-bar .search {
    order: 2;
  }

  .tech-header .top-bar .d-flex.align-items-center.gap-4 {
    order: 3;
    justify-content: flex-start;
    flex-wrap: wrap;
  }

  .category-collapse .nav {
    flex-direction: column;
    gap: 0.5rem;
  }
}

@media (min-width: 992px) {
  .category-collapse.collapse {
    display: block !important;
    height: auto !important;
    visibility: visible !important;
  }
}

body {
  margin-bottom: 60px;
  font-family: "Trebuchet MS", sans-serif;
}

/* ===================================
   FEATURES BAR STYLES
   =================================== */
.features-bar {
    padding: 3rem 0;
    background: linear-gradient(135deg, #f8f9fa 0%, #ffffff 50%, #f8f9fa 100%);
    position: relative;
    overflow: hidden;
}

.features-bar::before {
    content: '';
    position: absolute;
    top: 0;
    left: 0;
    right: 0;
    bottom: 0;
    background: 
        radial-gradient(circle at 20% 50%, rgba(102, 126, 234, 0.05) 0%, transparent 50%),
        radial-gradient(circle at 80% 80%, rgba(118, 75, 162, 0.05) 0%, transparent 50%);
    pointer-events: none;
}

.features-grid {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(250px, 1fr));
    gap: 2rem;
    position: relative;
    z-index: 1;
}

.feature-card {
    display: flex;
    align-items: center;
    gap: 1.5rem;
    padding: 1.75rem 1.5rem;
    background: #ffffff;
    border-radius: 16px;
    box-shadow: 0 4px 12px rgba(0, 0, 0, 0.08);
    border: 1px solid rgba(0, 0, 0, 0.04);
    transition: all 0.3s cubic-bezier(0.4, 0, 0.2, 1);
    position: relative;
    overflow: hidden;
}

.feature-card::before {
    content: '';
    position: absolute;
    top: 0;
    left: 0;
    right: 0;
    bottom: 0;
    background: linear-gradient(135deg, rgba(255, 255, 255, 0.5) 0%, transparent 100%);
    opacity: 0;
    transition: opacity 0.3s ease;
    z-index: -1;
}

.feature-card:nth-child(1) {
    --card-color: #fff8e6;
    --icon-color: #f4b860;
}

.feature-card:nth-child(2) {
    --card-color: #e6f2ff;
    --icon-color: #5dade2;
}

.feature-card:nth-child(3) {
    --card-color: #e6f5f0;
    --icon-color: #27ae60;
}

.feature-card:nth-child(4) {
    --card-color: #e6f0f5;
    --icon-color: #1abc9c;
}

.feature-card:hover {
    transform: translateY(-6px);
    box-shadow: 0 12px 28px rgba(0, 0, 0, 0.12);
    border-color: rgba(0, 0, 0, 0.08);
}

.feature-card:hover::before {
    opacity: 1;
}

.feature-icon-wrapper {
    flex-shrink: 0;
    width: 64px;
    height: 64px;
    border-radius: 14px;
    background: var(--card-color);
    display: flex;
    align-items: center;
    justify-content: center;
    transition: all 0.3s ease;
}

.feature-card:hover .feature-icon-wrapper {
    transform: scale(1.12) rotate(5deg);
    box-shadow: 0 8px 16px rgba(0, 0, 0, 0.1);
}

.feature-icon {
    width: 32px;
    height: 32px;
    color: var(--icon-color);
    transition: all 0.3s ease;
    stroke-width: 2.5;
}

.feature-card:hover .feature-icon {
    transform: scale(1.15);
}

.feature-content {
    flex: 1;
    min-width: 0;
}

.feature-title {
    font-size: 1.1rem;
    font-weight: 700;
    color: #1a1a1a;
    margin: 0 0 0.25rem 0;
    letter-spacing: -0.02em;
}

.feature-subtitle {
    font-size: 0.875rem;
    color: #6c757d;
    margin: 0;
    font-weight: 500;
}

/* Responsive Design */
@media (max-width: 1024px) {
    .features-grid {
        grid-template-columns: repeat(auto-fit, minmax(220px, 1fr));
        gap: 1.5rem;
    }
    
    .feature-card {
        padding: 1.5rem 1.25rem;
    }
    
    .feature-icon-wrapper {
        width: 56px;
        height: 56px;
    }
    
    .feature-icon {
        width: 28px;
        height: 28px;
    }
    
    .feature-title {
        font-size: 1rem;
    }
}

@media (max-width: 768px) {
    .features-bar {
        padding: 2.5rem 0;
    }
    
    .features-grid {
        grid-template-columns: repeat(2, 1fr);
        gap: 1.25rem;
    }
    
    .feature-card {
        padding: 1.25rem 1rem;
        gap: 1rem;
    }
    
    .feature-icon-wrapper {
        width: 52px;
        height: 52px;
    }
    
    .feature-icon {
        width: 26px;
        height: 26px;
    }
    
    .feature-title {
        font-size: 0.95rem;
    }
    
    .feature-subtitle {
        font-size: 0.8rem;
    }
}

@media (max-width: 576px) {
    .features-bar {
        padding: 2rem 0;
    }
    
    .features-grid {
        grid-template-columns: 1fr;
        gap: 1rem;
    }
    
    .feature-card {
        padding: 1rem;
        gap: 0.75rem;
    }
    
    .feature-icon-wrapper {
        width: 48px;
        height: 48px;
        border-radius: 12px;
    }
    
    .feature-icon {
        width: 24px;
        height: 24px;
    }
    
    .feature-title {
        font-size: 0.9rem;
    }
    
    .feature-subtitle {
        font-size: 0.75rem;
    }
    
    .feature-card:hover {
        transform: translateY(-4px);
    }
}

/* ===================================
   HERO BANNER STYLES
   =================================== */
.hero-banner {
    background: linear-gradient(135deg, #667eea 0%, #764ba2 100%);
    border-radius: 0 0 48px 48px;
    position: relative;
    min-height: 500px;
}

.hero-pattern {
    background-image: 
        radial-gradient(circle at 25% 25%, rgba(255,255,255,0.1) 1px, transparent 1px),
        radial-gradient(circle at 75% 75%, rgba(255,255,255,0.1) 1px, transparent 1px);
    background-size: 50px 50px;
    opacity: 0.3;
}

.hero-feature-card {
    transition: all 0.3s ease;
    border: none;
}

.hero-feature-card:hover {
    transform: translateY(-5px);
    box-shadow: 0 12px 24px rgba(0,0,0,0.15) !important;
}

.feature-icon {
    transition: all 0.3s ease;
}

.hero-feature-card:hover .feature-icon {
    transform: scale(1.1);
}

/* ===================================
   FILTER SIDEBAR STYLES
   =================================== */
.filter-sidebar {
    z-index: 10;
}

.filter-panel {
    background: #ffffff;
    border-radius: 16px;
    padding: 1.75rem;
    box-shadow: 0 4px 12px rgba(0,0,0,0.08);
    border: 1px solid rgba(0,0,0,0.05);
}

.filter-header {
    padding-bottom: 1rem;
    border-bottom: 2px solid #f0f0f0;
}

.filter-group {
    transition: all 0.2s ease;
}

.filter-group label {
    font-size: 0.95rem;
}

.filter-group .form-select,
.filter-group .form-control {
    border-radius: 10px;
    border: 1.5px solid #e0e0e0;
    transition: all 0.2s ease;
}

.filter-group .form-select:focus,
.filter-group .form-control:focus {
    border-color: #0d6efd;
    box-shadow: 0 0 0 0.25rem rgba(13, 110, 253, 0.1);
}

.filter-group .input-group-text {
    background: #f8f9fa;
    border: 1.5px solid #e0e0e0;
    border-right: none;
    border-radius: 10px 0 0 10px;
}

.filter-group .input-group .form-control {
    border-left: none;
    border-radius: 0 10px 10px 0;
}

/* ===================================
   PRODUCTS HEADER STYLES
   =================================== */
.products-header {
    border: 1px solid rgba(0,0,0,0.05);
}

.products-header .form-select {
    border-radius: 10px;
    border: 1.5px solid #e0e0e0;
    transition: all 0.2s ease;
}

.products-header .form-select:focus {
    border-color: #0d6efd;
    box-shadow: 0 0 0 0.25rem rgba(13, 110, 253, 0.1);
}

/* ===================================
   PRODUCT CARD STYLES
   =================================== */
.product-card {
    border-radius: 16px;
    transition: all 0.3s cubic-bezier(0.4, 0, 0.2, 1);
    overflow: hidden;
    background: #ffffff;
}

.product-card:hover {
    box-shadow: 0 12px 28px rgba(0,0,0,0.12) !important;
    transform: translateY(-8px);
}

.product-image-wrapper {
    position: relative;
    background: #f8f9fa;
    border-radius: 16px 16px 0 0;
}

.product-card .card-img-top {
    height: 240px;
    object-fit: cover;
    transition: transform 0.4s ease;
}

.product-card:hover .card-img-top {
    transform: scale(1.08);
}

.product-title {
    font-size: 1.1rem;
    line-height: 1.4;
    min-height: 2.8rem;
    display: -webkit-box;
    -webkit-line-clamp: 2;
/*    -webkit-box-orient: vertical;*/
    overflow: hidden;
    transition: color 0.2s ease;
}

.product-title:hover {
    color: #0d6efd !important;
}

.product-description {
    line-height: 1.5;
    min-height: 3rem;
    display: -webkit-box;
    -webkit-line-clamp: 2;
    -webkit-box-orient: vertical;
    overflow: hidden;
}

.price-section {
    background: linear-gradient(135deg, #f8f9fa 0%, #e9ecef 100%);
    border: 1px solid #dee2e6;
}

.product-card .btn {
    border-radius: 10px;
    font-weight: 600;
    transition: all 0.2s ease;
}

.product-card .btn:hover:not(:disabled) {
    transform: translateY(-2px);
}

.product-card .btn-primary {
    background: linear-gradient(135deg, #0d6efd 0%, #0b5ed7 100%);
    border: none;
}

.product-card .btn-primary:hover:not(:disabled) {
    box-shadow: 0 4px 12px rgba(13, 110, 253, 0.4);
}

.add-to-cart:disabled {
    cursor: not-allowed;
    opacity: 0.5;
}

/* ===================================
   PRODUCTS SECTION
   =================================== */
.products-section {
    padding: 4rem 0 5rem;
    background: #fafbfc;
}

/* ===================================
   BADGE STYLES
   =================================== */
.badge {
    font-weight: 600;
    letter-spacing: 0.02em;
}

/* Badge Styling */
.badge {
    font-size: 0.75rem;
    padding: 0.25rem 0.5rem;
}

/* Cart Page Styles */
.cart-item {
    transition: all 0.2s;
    border-radius: 12px;
}

.cart-item:hover {
    box-shadow: 0 6px 16px rgba(0,0,0,0.08);
    transform: translateY(-2px);
}

.cart-product-image {
    width: 100%;
    aspect-ratio: 1;
    display: flex;
    align-items: center;
    justify-content: center;
}

.cart-product-image img {
    width: 100%;
    height: 100%;
    object-fit: cover;
}

.cart-product-title {
    word-break: break-word;
    line-height: 1.3;
}

.cart-qty-container {
    display: flex;
    align-items: center;
    justify-content: space-between;
}

.cart-qty-input {
    text-align: center;
    font-weight: 600;
}

.qty-minus, .qty-plus {
    width: 35px;
}

.order-summary {
    position: sticky;
    top: 20px;
    border-radius: 16px;
    box-shadow: 0 8px 24px rgba(13, 110, 253, 0.12);
    border: none;
}

.order-summary .card-title {
    font-weight: 700;
    color: #1a1a1a;
}

.order-details .d-flex {
    padding: 0.75rem 0;
    align-items: center;
    justify-content: space-between;
}

.order-details .text-muted {
    font-weight: 500;
    font-size: 0.95rem;
}

.order-summary .btn-lg {
    padding: 0.75rem 1.5rem;
    font-weight: 600;
    border-radius: 10px;
    transition: all 0.3s ease;
}

.order-summary .btn-primary {
    background: linear-gradient(135deg, #0d6efd 0%, #0b5ed7 100%);
    border: none;
    box-shadow: 0 4px 12px rgba(13, 110, 253, 0.3);
}

.order-summary .btn-primary:hover {
    transform: translateY(-2px);
    box-shadow: 0 6px 16px rgba(13, 110, 253, 0.4);
}

.order-summary .btn-outline-primary {
    color: #0d6efd;
    border-color: #0d6efd;
    transition: all 0.2s ease;
}

.order-summary .btn-outline-primary:hover {
    background-color: #0d6efd;
    transform: translateY(-2px);
}

.remove-item {
    font-size: 1.2rem;
    transition: all 0.2s ease;
}

.btn-remove-item {
    transition: all 0.2s ease;
}

.btn-remove-item:hover {
    transform: scale(1.15);
    background-color: #f8d7da !important;
    color: #dc3545 !important;
}

/* Breadcrumb Styling */
.breadcrumb {
    background-color: transparent;
    padding: 0;
    gap: 0.5rem;
}

.breadcrumb-item + .breadcrumb-item::before {
    color: #999;
}

.breadcrumb-item a {
    color: #0d6efd;
    font-weight: 500;
    transition: color 0.2s ease;
}

.breadcrumb-item a:hover {
    color: #0b5ed7;
    text-decoration: underline;
}

/* Empty Cart Styling */
.empty-cart-state {
    display: flex;
    flex-direction: column;
    align-items: center;
    justify-content: center;
    min-height: 450px;
    padding: 3rem 2rem;
}

.empty-cart-state i {
    animation: float 3s ease-in-out infinite;
}

@keyframes float {
    0%, 100% { transform: translateY(0px); }
    50% { transform: translateY(-10px); }
}

.empty-cart-state h2 {
    font-weight: 700;
    color: #1a1a1a;
}

.empty-cart-state p {
    font-size: 1.05rem;
    color: #6c757d;
    max-width: 400px;
}

.empty-cart-state .btn {
    box-shadow: 0 4px 12px rgba(13, 110, 253, 0.2);
    transition: all 0.3s ease;
}

.empty-cart-state .btn:hover {
    transform: translateY(-2px);
    box-shadow: 0 6px 16px rgba(13, 110, 253, 0.3);
}

/* Cart Item Badge */
.badge {
    font-weight: 600;
    letter-spacing: 0.02em;
    padding: 0.35rem 0.65rem;
}

.badge.bg-primary-light {
    background-color: #e7f1ff !important;
    color: #0d6efd !important;
}

.bg-light {
    background-color: #f8f9fa !important;
}

.rounded-lg {
    border-radius: 12px;
}

/* Quantity Controls */
.bg-light {
    border-radius: 10px;
}

.bg-light .btn-light {
    border: none;
    transition: all 0.2s ease;
    color: #495057;
}

.bg-light .btn-light:hover:not(:disabled) {
    background-color: #e2e6ea !important;
    color: #000;
}

.bg-light .btn-light:disabled {
    opacity: 0.4;
    cursor: not-allowed;
}

.bg-light .form-control {
    border: none;
    font-weight: 600;
    background-color: #fff;
}

/* Stock Status Icons */
.js-stock-status {
    display: inline-flex;
    align-items: center;
    gap: 0.25rem;
    font-weight: 500;
    font-size: 0.9rem;
}

.js-stock-status i {
    font-size: 0.85rem;
}

/* Page Header */
.display-5 {
    font-weight: 700;
    letter-spacing: -0.02em;
}

/* Mobile Responsive Adjustments */
@media (max-width: 991px) {
    .order-summary {
        position: static;
        top: auto;
        margin-top: 2rem;
    }
    
    .cart-item {
        margin-bottom: 1.5rem;
    }
}

@media (max-width: 768px) {
    .container {
        padding: 0 0.75rem;
    }
    
    .cart-item .card-body {
        padding: 1rem !important;
    }
    
    .empty-cart-state {
        min-height: 350px;
        padding: 2rem 1rem;
    }
    
    .order-summary {
        width: 100%;
    }
    
    .display-5 {
        font-size: 1.75rem;
    }
    
    .breadcrumb {
        font-size: 0.85rem;
    }
    
    .cart-product-image {
        max-width: 80px;
        margin: 0 auto;
    }
    
    .cart-product-title {
        font-size: 0.95rem;
    }
    
    .cart-qty-container {
        width: 100%;
        gap: 0.5rem;
    }
    
    .order-summary .btn {
        font-size: 0.95rem;
        padding: 0.625rem 1rem !important;
    }
    
    .order-summary .btn-lg {
        font-size: 0.95rem;
        padding: 0.625rem 1rem !important;
    }
    
    .order-details .d-flex {
        font-size: 0.9rem;
    }
    
    .order-summary .card-body {
        padding: 1.25rem !important;
    }
}

@media (max-width: 576px) {
    .container {
        padding: 0 0.5rem;
    }
    
    .mb-5 {
        margin-bottom: 1.5rem !important;
    }
    
    .display-5 {
        font-size: 1.5rem;
        margin-bottom: 0.5rem !important;
    }
    
    .cart-item .card-body {
        padding: 0.75rem !important;
    }
    
    .cart-product-image {
        max-width: 70px;
    }
    
    .cart-product-title {
        font-size: 0.875rem;
        line-height: 1.2;
    }
    
    .cart-qty-container {
        gap: 0.25rem;
        padding: 0.5rem !important;
    }
    
    .cart-qty-container button {
        width: 24px !important;
        height: 24px !important;
        padding: 0 !important;
        font-size: 0.75rem !important;
    }
    
    .cart-qty-input {
        font-size: 0.875rem;
        height: 24px !important;
    }
    
    .btn-remove-item {
        width: 28px !important;
        height: 28px !important;
        font-size: 0.75rem !important;
    }
    
    .order-summary {
        margin-top: 1.5rem;
    }
    
    .order-summary .card-body {
        padding: 1rem !important;
    }
    
    .order-summary .btn {
        font-size: 0.875rem;
        padding: 0.5rem 0.75rem !important;
    }
    
    .order-summary .card-title {
        font-size: 1rem;
        margin-bottom: 1rem !important;
    }
    
    .order-details .d-flex {
        font-size: 0.85rem;
        padding: 0.5rem 0 !important;
    }
    
    .empty-cart-state {
        min-height: 300px;
        padding: 1.5rem 1rem;
    }
    
    .empty-cart-state h2 {
        font-size: 1.25rem;
    }
    
    .empty-cart-state p {
        font-size: 0.95rem;
    }
    
    .badge {
        font-size: 0.7rem;
        padding: 0.25rem 0.5rem !important;
    }
    
    .js-stock-status {
        font-size: 0.8rem;
    }
}

/* Product Details Page Styles */
.product-detail-image {
    border-radius: 8px;
    object-fit: cover;
    max-height: 500px;
    background: #f8f9fa;
    box-shadow: 0 4px 12px rgba(0,0,0,0.1);
}

.carousel-item img {
    height: 500px;
    object-fit: contain;
}

.price-section {
    padding: 1.5rem;
    background: #f8f9fa;
    border-radius: 8px;
    border: 2px solid #e9ecef;
}

.stock-status .alert {
    margin-bottom: 0;
}

.breadcrumb {
    background-color: #f8f9fa;
    padding: 0.75rem 1rem;
    border-radius: 0.25rem;
}

/* Quantity Controls */
#quantity {
    -moz-appearance: textfield;
}

#quantity::-webkit-outer-spin-button,
#quantity::-webkit-inner-spin-button {
    -webkit-appearance: none;
    margin: 0;
}

/* ===================================
   CART DRAWER MODERN STYLES
   =================================== */

/* Cart Drawer Container */
#cartDrawer {
    width: 420px !important;
}

#cartDrawerBtn {
    position: relative;
    transition: all 0.2s ease;
}

#cartDrawerBtn:hover {
    transform: translateY(-1px);
    box-shadow: 0 2px 8px rgba(13, 110, 253, 0.2);
}

#cartBadge {
    font-size: 0.65rem;
    padding: 0.25em 0.5em;
    min-width: 1.5rem;
    animation: badge-pop 0.3s ease;
}

@keyframes badge-pop {
    0% { transform: scale(0.5); opacity: 0; }
    50% { transform: scale(1.2); }
    100% { transform: scale(1); opacity: 1; }
}

/* Empty Cart State */
.empty-cart-state {
    display: flex;
    flex-direction: column;
    align-items: center;
    justify-content: center;
    min-height: 400px;
    padding: 3rem 2rem;
}

.empty-cart-icon {
    animation: float 3s ease-in-out infinite;
}

@keyframes float {
    0%, 100% { transform: translateY(0px); }
    50% { transform: translateY(-10px); }
}

.empty-cart-state h5 {
    font-size: 1.5rem;
    font-weight: 600;
    color: #2c3e50;
}

.empty-cart-state p {
    font-size: 1rem;
    color: #6c757d;
}

.empty-cart-state .btn {
    box-shadow: 0 4px 12px rgba(13, 110, 253, 0.2);
    transition: all 0.3s ease;
}

.empty-cart-state .btn:hover {
    transform: translateY(-2px);
    box-shadow: 0 6px 16px rgba(13, 110, 253, 0.3);
}

/* Cart Drawer Items */
.cart-drawer-item {
    transition: all 0.3s ease;
    position: relative;
    padding: 1rem;
    border-radius: 8px;
    margin-bottom: 1rem !important;
}

.cart-drawer-item:hover {
    background-color: #f8f9fa;
    transform: translateX(4px);
}

.cart-item-image-wrapper {
    position: relative;
    border-radius: 8px;
    overflow: hidden;
    box-shadow: 0 2px 8px rgba(0,0,0,0.1);
}

.cart-drawer-item-image {
    width: 80px;
    height: 80px;
    object-fit: cover;
    border-radius: 8px;
    transition: transform 0.3s ease;
}

.cart-drawer-item:hover .cart-drawer-item-image {
    transform: scale(1.05);
}

/* Search suggestion overlay */
.search-suggestions {
    position: absolute;
    top: 100%;
    left: 0;
    width: 100%;
    background: #fff;
    border: 1px solid rgba(0, 0, 0, 0.1);
    border-radius: 0 0 0.75rem 0.75rem;
    box-shadow: 0 8px 24px rgba(0, 0, 0, 0.1);
    z-index: 1050;
    padding: 0.25rem 0;
    max-height: 320px;
    overflow-y: auto;
    display: none;
}

.search-suggestions.active {
    display: block;
}

.search-suggestion-item {
    display: grid;
    grid-template-columns: 64px 1fr;
    gap: 0.75rem;
    padding: 0.5rem 0.75rem;
    align-items: center;
    cursor: pointer;
    transition: background 0.2s ease;
}

.search-suggestion-item:hover {
    background: #f8f9ff;
}

.search-suggestion-item img {
    width: 56px;
    height: 56px;
    object-fit: cover;
    border-radius: 0.5rem;
    background: #f1f5f9;
}

.search-suggestion-item .meta {
    display: flex;
    flex-direction: column;
}

.search-suggestion-item .name {
    font-weight: 600;
    color: #111;
}

.search-suggestion-item .price {
    font-size: 0.9rem;
    color: #0d6efd;
}

/* Quantity Controls */
.cart-qty-controls {
    border-radius: 8px;
    overflow: hidden;
    box-shadow: 0 2px 4px rgba(0,0,0,0.05);
}

.cart-qty-controls .btn {
    border-radius: 0;
    padding: 0.25rem 0.5rem;
}

.cart-qty-input {
    width: 45px !important;
    border-left: 0;
    border-right: 0;
    pointer-events: none;
    background-color: #fff;
    font-weight: 600;
}

/* Remove Button */
.btn-remove-item {
    transition: all 0.2s ease;
}

.btn-remove-item:hover {
    transform: scale(1.1);
    background-color: #dc3545;
    border-color: #dc3545;
    color: white;
}

/* Cart Summary */
.cart-summary {
    box-shadow: 0 -4px 12px rgba(0,0,0,0.08);
    background: linear-gradient(to bottom, #ffffff 0%, #f8f9fa 100%);
}

.cart-summary hr {
    border-top: 2px dashed #dee2e6;
}

.cart-summary .btn-primary {
    background: linear-gradient(135deg, #0d6efd 0%, #0b5ed7 100%);
    border: none;
    box-shadow: 0 4px 12px rgba(13, 110, 253, 0.3);
    transition: all 0.3s ease;
}

.cart-summary .btn-primary:hover {
    transform: translateY(-2px);
    box-shadow: 0 6px 16px rgba(13, 110, 253, 0.4);
}

.cart-summary .btn-outline-secondary {
    transition: all 0.2s ease;
}

.cart-summary .btn-outline-secondary:hover {
    transform: translateY(-1px);
}

/* Animations */
@keyframes fadeIn {
    from {
        opacity: 0;
        transform: translateY(-10px);
    }
    to {
        opacity: 1;
        transform: translateY(0);
    }
}

.animate-fade-in {
    animation: fadeIn 0.3s ease-out;
}

/* Offcanvas Header */
.offcanvas-header {
    padding: 1rem 1.5rem;
}

.offcanvas-title {
    display: flex;
    align-items: center;
    font-size: 1.25rem;
}

/* Scrollbar Styling */
#cartItemsContainer::-webkit-scrollbar {
    width: 6px;
}

#cartItemsContainer::-webkit-scrollbar-track {
    background: #f1f1f1;
}

#cartItemsContainer::-webkit-scrollbar-thumb {
    background: #888;
    border-radius: 3px;
}

#cartItemsContainer::-webkit-scrollbar-thumb:hover {
    background: #555;
}

/* Responsive adjustments */
@media (max-width: 768px) {
    .hero-banner {
        min-height: 400px;
        border-radius: 0 0 32px 32px;
    }

    .hero-banner h1 {
        font-size: 2rem !important;
    }

    .hero-banner .lead {
        font-size: 1rem !important;
    }

    .filter-panel {
        margin-bottom: 1.5rem;
        position: relative !important;
    }

    .products-header {
        padding: 1.5rem !important;
    }

    .products-header h2 {
        font-size: 1.25rem !important;
    }

    .product-card .card-img-top {
        height: 200px;
    }

    .product-title {
        font-size: 1rem;
        min-height: 2.4rem;
    }

    .price-section {
        padding: 0.75rem !important;
    }

    .current-price {
        font-size: 1.25rem !important;
    }
    
    .carousel-item img {
        height: 300px;
    }
    
    .product-detail-image {
        max-height: 300px;
    }

    #cartDrawer {
        width: 100% !important;
    }

    .cart-drawer-item {
        padding: 0.75rem;
    }

    .cart-drawer-item-image {
        width: 60px;
        height: 60px;
    }

    .empty-cart-state {
        min-height: 300px;
        padding: 2rem 1rem;
    }

    .empty-cart-icon svg {
        width: 80px;
        height: 80px;
    }
}

@media (max-width: 576px) {
    .hero-banner h1 {
        font-size: 1.75rem !important;
    }

    .btn-lg {
        padding: 0.75rem 1.5rem !important;
        font-size: 1rem !important;
    }

    .filter-group .form-select,
    .filter-group .form-control {
        font-size: 0.95rem;
    }

    .product-card .btn {
        font-size: 0.875rem;
        padding: 0.5rem !important;
    }
}

/* Loading State */
.cart-loading {
    display: flex;
    align-items: center;
    justify-content: center;
    min-height: 400px;
}

.cart-loading .spinner-border {
    width: 3rem;
    height: 3rem;
}