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%;
}

body {
  margin-bottom: 60px;
}

/* Floating Cart Styles */
.floating-cart-wrapper {
    position: fixed;
    bottom: 30px;
    left: 30px;
    z-index: 1050;
    transition: transform 0.3s cubic-bezier(0.175, 0.885, 0.32, 1.275);
}

.floating-cart-wrapper:hover {
    transform: scale(1.05);
}

.floating-cart-wrapper .btn {
    width: 60px;
    height: 60px;
    border-radius: 50%;
    display: flex;
    align-items: center;
    justify-content: center;
    box-shadow: 0 4px 12px rgba(0, 0, 0, 0.08) !important;
    font-size: 1.2rem;
    padding: 0;
    background-color: #111;
    border: none;
}

.floating-cart-wrapper .badge {
    position: absolute;
    top: 0;
    right: 0;
    transform: translate(25%, -25%);
}

/* Sticky Navbar Enhancements */
.custom-navbar {
    background-color: rgba(255, 255, 255, 0.98) !important;
    backdrop-filter: blur(15px);
    transition: all 0.3s ease;
    box-shadow: none !important;
}

.brand-text {
    letter-spacing: -1px;
}

.nav-hover {
    position: relative;
    transition: color 0.3s ease;
}

.nav-hover::after {
    content: '';
    position: absolute;
    width: 0;
    height: 2px;
    bottom: 0;
    right: 0;
    background-color: #212529;
    transition: width 0.3s ease;
}

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

/* Animations */
@keyframes slideUpFade {
    0% { opacity: 0; transform: translateY(30px); }
    100% { opacity: 1; transform: translateY(0); }
}

.slide-up-fade { animation: slideUpFade 0.8s cubic-bezier(0.16, 1, 0.3, 1) forwards; }
.slide-up-fade-delayed { animation: slideUpFade 0.8s cubic-bezier(0.16, 1, 0.3, 1) 0.15s forwards; opacity: 0; }
.slide-up-fade-delayed-2 { animation: slideUpFade 0.8s cubic-bezier(0.16, 1, 0.3, 1) 0.3s forwards; opacity: 0; }

.fade-in-up {
    animation: slideUpFade 0.6s cubic-bezier(0.16, 1, 0.3, 1) forwards;
    opacity: 0;
}

/* Delay grid items slightly for a staggered effect */
.row > .col:nth-child(1) { animation-delay: 0.1s; }
.row > .col:nth-child(2) { animation-delay: 0.2s; }
.row > .col:nth-child(3) { animation-delay: 0.3s; }
.row > .col:nth-child(4) { animation-delay: 0.4s; }

/* Product Card Hover Effects */
.product-card {
    transition: opacity 0.3s ease, transform 0.3s ease;
    border: none !important;
    box-shadow: none !important;
    background-color: transparent !important;
}

.product-card:hover {
    transform: translateY(-4px);
    box-shadow: none !important;
}

.product-img {
    transition: transform 0.8s ease;
}

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

.product-overlay {
    background: rgba(255, 255, 255, 0.4);
    backdrop-filter: blur(2px);
    opacity: 0;
    transition: opacity 0.4s ease;
}

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

.quick-view-btn {
    transform: translateY(15px);
    transition: transform 0.4s cubic-bezier(0.16, 1, 0.3, 1), opacity 0.4s ease, background-color 0.2s ease, color 0.2s ease;
    opacity: 0;
    background-color: #ffffff;
    color: #111111;
    border: 1px solid #111111;
    font-weight: 500;
}

.quick-view-btn:hover {
    background-color: #111111;
    color: #ffffff;
}

.product-card:hover .quick-view-btn {
    transform: translateY(0);
    opacity: 1;
}

/* Button & Card general lifts */
.hover-lift {
    transition: transform 0.3s ease, box-shadow 0.3s ease;
}

.hover-lift:hover {
    transform: translateY(-2px);
    box-shadow: 0 4px 12px rgba(0,0,0,0.05) !important;
}

.cart-item-card {
    transition: transform 0.2s ease;
}

.cart-item-card:hover {
    transform: translateX(-5px);
}

/* Modals */
.custom-modal .modal-content {
    animation: slideUpFade 0.4s cubic-bezier(0.16, 1, 0.3, 1);
}

.hero-logo {
    margin-top: -120px;
}

@media (min-width: 768px) {
    .hero-logo {
        margin-top: -80px;
    }
}

@media (min-width: 1200px) {
    .hero-logo {
        margin-top: -40px;
    }
}
