/* static/css/main.css */
:root {
    --primary-black: #080808;
    --primary-white: #FFFFFF;
    --secondary-gray: #757575;
    --background-gray: #FAFAFA;
    --green-accent: #7CB342;
    --purple-accent: #8181F7;
    --dark-gray: #212121;
    --light-gray: #4ecdc6;
    --light-gray-2: #f0f0f0;
    /* shadows */
    --shadow-s:
    inset 0 1px 2px #080808, /* top highlight */
    0 2px 5px #393939, /* dark shadow */
    0 5px 10px #6a6a6a, /* softer shadow */
    0 10px 20px #9b9b9b, /* even softer shadow */
    0 20px 40px #cccccc; /* not even a shadow anymore */
}

@font-face {
    font-family: 'Blacklisted';
    src: url('../fonts/Blacklisted.ttf') format('truetype');
}

@font-face {
    font-family: 'Inlanders';
    src: url('../fonts/Inlanders Demo.otf') format('opentype');
}

html {
    scroll-behavior: smooth;
}

body {
    font-family: 'Manrope', sans-serif;
    background-color: white;
    /* Add these lines for the GIF background 
    background-image: url('../images/cat.gif');
    background-size: cover;
    background-position: center;
    background-repeat: no-repeat;
    background-attachment: fixed; */
}

.container-main {
    max-width: 1920px;
    margin: 0 auto;
}

.content-wrapper {
    max-width: 1330px;
    margin: 0 auto;
    padding: 0 15px;
}

/* Navigation styles - Mobile First */
.navbar {
    box-shadow: 0px 2px 5px rgba(0, 0, 0, 0);
    transition: all 0.3s ease;
}

/* Navbar responsive height */
.navbar {
    min-height: 20px;
    border-radius: 15px;
}

@media (min-width: 768px) {
    .navbar {
        min-height: 20px;
        border-radius: 20px;
    }
}

@media (min-width: 992px) {
    .navbar {
        min-height: 20px;
        border-radius: 25px;
    }
}

/* Hamburger icon styling */
.navbar-toggler {
    border: none;
    padding: 0;
    width: 30px;
    height: 30px;
}

.navbar-toggler:focus {
    box-shadow: none;
    outline: none;
}

.navbar-toggler-icon {
    width: 24px;
    height: 24px;
    background-image: url("data:image/svg+xml,%3csvg xmlns='http://www.w3.org/2000/svg' viewBox='0 0 30 30'%3e%3cpath stroke='rgba%28255, 255, 255, 1%29' stroke-linecap='round' stroke-miterlimit='10' stroke-width='2' d='M4 7h22M4 15h22M4 23h22'/%3e%3c/svg%3e");
}

/* Mobile menu collapse */
.navbar-collapse {
    background-color: #080808;
    border-radius: 15px;
    margin-top: 10px;
}

@media (min-width: 992px) {
    .navbar-collapse {
        background-color: transparent;
        border-radius: 0;
        margin-top: 0;
    }
}

/* Mobile menu items */
.navbar-nav .nav-item {
    border-bottom: 1px solid rgba(255, 255, 255, 0.1);
}

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

@media (min-width: 992px) {
    .navbar-nav .nav-item {
        border-bottom: none;
    }
}

/* Nav links hover effect */
.nav-link {
    transition: all 0.3s ease;
}

.nav-link:hover {
    color: #7CB342 !important;
    transform: translateX(5px);
}

@media (min-width: 992px) {
    .nav-link:hover {
        transform: translateY(-2px);
    }
}

/* Hero banner styles */
.hero-section {
    width: 1318px;
    border-radius: 50px;
    overflow: hidden;
    display: flex;
    justify-content: center;
    align-items: center;
}

.hero-banner {
    width: 1318px;
    height: 300px;
    object-fit: cover;
    border-radius: 0;
}

/* Product card styles */
.product-card {
    border: 1px solid gray;
    border-radius: 10px;
    background-color: #FAFAFA;
    overflow: hidden;
    box-shadow: 0 1px 3px rgba(0, 0, 0, 0.15);
    transition: box-shadow 0.3s ease, transform 0.3s ease;
}

.product-card:hover {
    box-shadow: 0 10px 15px rgba(0, 0, 0, 0.25), 0 4px 6px rgba(0, 0, 0, 0.1);
    transform: translateY(-4px);
}

.product-image {
    width: 150px;
    height: 150px;
    object-fit: cover;
}

/* Enhanced Product Card - Mobile First */
.product-card-enhanced {
    border: 1px solid black;
    border-radius: 10px;
    background-color: #FFFFFF;
    overflow: hidden;
    box-shadow: 0 1px 3px rgba(0, 0, 0, 0.1);
    transition: box-shadow 0.3s ease, transform 0.3s ease;
}

.product-card-enhanced:hover {
    box-shadow: 0 8px 16px rgba(0, 0, 0, 0.15), 0 2px 4px rgba(0, 0, 0, 0.1);
    transform: translateY(-3px);
}

/* Product Card Image - Mobile First */
.product-card-image {
    max-width: 100px;
    width: 100%;
    height: auto;
    aspect-ratio: 1/1;
    object-fit: cover;
    border-radius: 8px;
}

@media (min-width: 576px) {
    .product-card-image {
        max-width: 120px;
    }
}

@media (min-width: 768px) {
    .product-card-image {
        max-width: 140px;
    }
}

/* Product Card Name - Mobile First */
.product-card-name {
    font-size: clamp(13px, 2.2vw, 16px);
    font-family: 'Manrope', sans-serif;
    color: #080808;
}

/* Product Card Price - Mobile First */
.product-card-price {
    font-size: clamp(14px, 2.4vw, 18px);
    color: #080808;
}

/* Product Info Tags - Mobile First */
.product-info-tag {
    display: inline-flex;
    align-items: center;
    gap: 4px;
    background-color: #F5F5F5;
    border-radius: 4px;
    padding: 4px 8px;
    font-size: clamp(9px, 1.6vw, 11px);
    font-family: 'Manrope', sans-serif;
}

@media (min-width: 768px) {
    .product-info-tag {
        padding: 5px 10px;
    }
}

.product-info-label {
    color: #757575;
    font-weight: 500;
}

.product-info-value {
    color: #080808;
    font-weight: 600;
}

/* Effect Tags - Mobile First */
.effect-tag {
    display: inline-block;
    background-color: #FAFAFA;
    border: 1px solid #E2E6ED;
    border-radius: 3px;
    padding: 3px 6px;
    font-size: clamp(8px, 1.4vw, 10px);
    font-family: 'Manrope', sans-serif;
    color: #757575;
    font-weight: 500;
}

@media (min-width: 768px) {
    .effect-tag {
        padding: 4px 8px;
    }
}

/* Enhanced Add to Cart Button - Mobile First */
.btn_add_to_cart_enhanced {
    background-color: #080808;
    color: white;
    border: 2px solid #080808;
    border-radius: 6px;
    padding: 8px 12px;
    font-size: clamp(11px, 2vw, 13px);
    font-family: 'Manrope', sans-serif;
    font-weight: 600;
    cursor: pointer;
    transition: all 0.2s ease;
}

@media (min-width: 768px) {
    .btn_add_to_cart_enhanced {
        padding: 10px 16px;
    }
}

.btn_add_to_cart_enhanced:hover {
    background-color: #7CB342;
    border-color: #7CB342;
    transform: translateY(-1px);
}

.btn_add_to_cart_enhanced:active {
    transform: translateY(0);
}

/* Category colors */
.category-sativa {
    color: #008000;
}

.category-indica {
    color: #800080;
}

.category-hybrid {
    color: #6F4E37;
}

/* Button styles */
.btn-primary-custom {
    background-color: var(--primary-black);
    border: none;
    border-radius: 131px;
    font-weight: 600;
    height: 42px;
}

.btn-primary-custom:hover {
    background-color: #333;
}

/* Cart styles */
.cart-item {
    border: 1px solid #E2E6ED;
    border-radius: 5px;
    padding: 15px;
    margin-bottom: 10px;
}

/* Form styles */
.form-control-custom {
    border: 1px solid black;
    border-radius: 5px;
    height: 38px;
}

.form-label-small {
    font-size: 8px;
    color: var(--secondary-gray);
    font-family: 'Inter', sans-serif;
}

/* Cart Overlay */
.cart-overlay {
    position: fixed;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    background-color: rgba(0, 0, 0, 0.5);
    z-index: 1040;
    opacity: 0;
    visibility: hidden;
    transition: opacity 0.3s ease, visibility 0.3s ease;
}

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

/* Cart Sidebar */
.cart-sidebar {
    position: fixed;
    top: 0;
    right: -410px;
    width: 410px;
    height: 100vh;
    background-color: white;
    z-index: 1050;
    box-shadow: -2px 0 5px rgba(0, 0, 0, 0.1);
    transition: right 0.3s ease;
    display: flex;
    flex-direction: column;
    overflow: hidden;
}

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

/* Cart Header */
.cart-header {
    background-color: #080808;
    padding: 27px 31px;
    display: flex;
    justify-content: space-between;
    align-items: center;
    box-shadow: 0px 2px 5px rgba(0, 0, 0, 0.10);
    min-height: 84px;
}

.cart-title {
    display: flex;
    align-items: baseline;
    gap: 5px;
}

.cart-title-main {
    color: white;
    font-size: 24px;
    font-family: 'Manrope', sans-serif;
    font-weight: 500;
    line-height: 24px;
}

.cart-title-count {
    color: white;
    font-size: 16px;
    font-family: 'Manrope', sans-serif;
    font-weight: 500;
    line-height: 24px;
}

.cart-close-btn {
    background: transparent;
    border: none;
    cursor: pointer;
    padding: 0;
    display: flex;
    align-items: center;
    justify-content: center;
    width: 28px;
    height: 28px;
}

.cart-close-btn:hover {
    opacity: 0.8;
}

/* Cart Items Container */
.cart-items-container {
    flex: 1;
    overflow-y: auto;
    padding: 15px 12px;
}

.cart-empty-message {
    display: flex;
    align-items: center;
    justify-content: center;
    height: 100%;
}

/* Cart Item */
.cart-item-card {
    display: flex;
    gap: 18px;
    padding: 12px 0;
    border-bottom: 1px solid #E2E6ED;
}

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

.cart-item-image {
    width: 108px;
    height: 108px;
    overflow: hidden;
    border-radius: 8px;
    flex-shrink: 0;
}

.cart-item-image img {
    width: 100%;
    height: 100%;
    object-fit: cover;
}

.cart-item-details {
    flex: 1;
    display: flex;
    flex-direction: column;
    gap: 8px;
}

.cart-item-name {
    color: black;
    font-size: 15px;
    font-family: 'Manrope', sans-serif;
    font-weight: 400;
    line-height: 24px;
    letter-spacing: 0.40px;
}

.cart-item-price {
    color: black;
    font-size: 15px;
    font-family: 'Manrope', sans-serif;
    font-weight: 400;
    line-height: 24px;
    letter-spacing: 0.40px;
}

.cart-item-weight {
    color: black;
    font-size: 15px;
    font-family: 'Manrope', sans-serif;
    font-weight: 400;
    line-height: 24px;
    letter-spacing: 0.40px;
}

.cart-item-controls {
    display: flex;
    justify-content: space-between;
    align-items: center;
    margin-top: 8px;
}

.cart-quantity-control {
    display: flex;
    align-items: center;
    gap: 20px;
    background: white;
    border: 2px solid #0A0A0A;
    border-radius: 4px;
    padding: 12px 13px;
    width: 140px;
    height: 47px;
}

.cart-quantity-btn {
    background: transparent;
    border: none;
    cursor: pointer;
    padding: 0;
    width: 22px;
    height: 22px;
    display: flex;
    align-items: center;
    justify-content: center;
    font-size: 20px;
    color: #0A0A0A;
}

.cart-quantity-btn:hover {
    opacity: 0.7;
}

.cart-quantity-value {
    color: #757575;
    font-size: 16px;
    font-family: 'Inter', sans-serif;
    font-weight: 400;
    text-align: center;
    flex: 1;
}

.cart-item-total {
    color: black;
    font-size: 15px;
    font-family: 'Manrope', sans-serif;
    font-weight: 400;
    line-height: 24px;
    letter-spacing: 0.40px;
}

/* Cart Footer */
.cart-footer {
    border-top: 1px solid #E2E6ED;
    padding: 20px;
    background: white;
}

.cart-total {
    display: flex;
    justify-content: space-between;
    align-items: center;
    margin-bottom: 15px;
    font-size: 18px;
    font-family: 'Manrope', sans-serif;
    font-weight: 600;
}

.cart-total-amount {
    color: #080808;
}

.btn-checkout {
    width: 100%;
    background-color: #7CB342;
    color: white;
    border: none;
    border-radius: 6px;
    padding: 12px;
    font-size: 16px;
    font-family: 'Manrope', sans-serif;
    font-weight: 600;
}

.btn-checkout:hover:not(:disabled) {
    background-color: #6ba332;
}

.btn-checkout:disabled {
    background-color: #ccc;
    cursor: not-allowed;
}

/* Responsive */
@media (max-width: 480px) {
    .cart-sidebar {
        width: 100%;
        right: -100%;
    }
}

/* Add to Cart Button */
.btn_add_to_cart {
    transition: all 0.2s ease;
}

.btn_add_to_cart:hover {
    background-color: #7CB342 !important;
    border-color: #7CB342 !important;
}

.btn_add_to_cart:hover span {
    color: white !important;
}

/* Category card hover effect */
.category-card-hover {
    transition: transform 0.3s ease, box-shadow 0.3s ease, background-color 0.4s ease;
    background-color: #86865f;
}

.category-card-hover:hover {
    transform: translateY(-5px);
    box-shadow: 0 4px 16px rgba(0,0,0,0.25), 0 8px 32px rgba(0,0,0,0.1);
    background-color: #dfdfd2;
}

/* Add this to your static/css/main.css file */

/* Make navbar sticky and add smooth transitions */
.navbar {
    position: sticky;
    top: 0;
    z-index: 1030;
    width: 100%;
    transition: transform 0.3s ease-in-out;
}

/* Ensure the navbar parent container allows sticky positioning */
.w-100 > .navbar {
    position: sticky;
    top: 0;
}

/* Optional: Add a subtle shadow when navbar is sticky for better visibility */
.navbar.scrolled {
    box-shadow: 0px 2px 10px rgba(0, 0, 0, 0.2);
}

/* Ensure smooth transitions on all navbar states */
@media (max-width: 991px) {
    .navbar {
        transition: transform 0.3s ease-in-out, box-shadow 0.3s ease;
    }
}