/* Vireō Shop - Custom Styles */

:root {
    --vireo-green: #67c667;
    --vireo-green-dark: #4a9d4a;
    --vireo-green-light: #8dd48d;
}

/* Header */
.shop-header {
    background: transparent !important;
    box-shadow: none !important;
    padding: 1rem 0;
    border-bottom: none !important;
}

.shop-header .navbar {
    background: transparent !important;
}

.page .navbar {
    background: transparent !important;
}

.shop-header .navbar-brand-text {
    color: white !important;
    font-weight: 700;
    letter-spacing: -0.5px;
}

.shop-header .nav-link {
    color: rgba(255,255,255,0.8) !important;
    font-weight: 500;
    transition: all 0.3s ease;
    border-radius: 6px;
}

.shop-header .nav-link:hover {
    color: white !important;
    background: rgba(255,255,255,0.1);
}

.navbar-brand-image {
    height: 40px;
    width: auto;
    filter: brightness(0) invert(1);
}

/* Hero Section */
.hero-section {
    position: relative;
    background: linear-gradient(135deg, #0d2818 0%, #1a5f2e 50%, #2d8650 100%);
    padding: 6rem 0;
    margin-bottom: 4rem;
    border-radius: 0 0 3rem 3rem;
    overflow: hidden;
}

.hero-background {
    position: absolute;
    top: 0;
    left: 0;
    right: 0;
    bottom: 0;
    background:
        radial-gradient(circle at 20% 50%, rgba(103, 198, 103, 0.1) 0%, transparent 50%),
        radial-gradient(circle at 80% 80%, rgba(103, 198, 103, 0.1) 0%, transparent 50%);
    pointer-events: none;
}

.hero-section .container-xl {
    position: relative;
    z-index: 1;
}

.min-vh-50 {
    min-height: 60vh;
}

.hero-content {
    animation: fadeInUp 0.8s ease-out;
}

.hero-section h1 {
    color: white;
    text-shadow: 0 4px 20px rgba(0,0,0,0.3);
    font-weight: 800;
    letter-spacing: -1px;
}

.hero-section .lead {
    color: rgba(255,255,255,0.9);
    line-height: 1.7;
    text-shadow: 0 2px 10px rgba(0,0,0,0.2);
}

.hero-image {
    animation: float 4s ease-in-out infinite;
    position: relative;
}

.hero-logo {
    max-width: 450px;
    width: 100%;
    opacity: 0.95;
    filter: drop-shadow(0 20px 40px rgba(0,0,0,0.4));
    animation: pulse 3s ease-in-out infinite;
}

@keyframes float {
    0%, 100% {
        transform: translateY(0px);
    }
    50% {
        transform: translateY(-15px);
    }
}

@keyframes pulse {
    0%, 100% {
        opacity: 0.95;
        transform: scale(1);
    }
    50% {
        opacity: 1;
        transform: scale(1.02);
    }
}

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

.btn-success {
    background: linear-gradient(135deg, #67c667 0%, #4a9d4a 100%);
    border: none;
    font-weight: 600;
    transition: all 0.3s ease;
}

.btn-success:hover {
    background: linear-gradient(135deg, #4a9d4a 0%, #67c667 100%);
    transform: translateY(-2px);
    box-shadow: 0 8px 20px rgba(103, 198, 103, 0.4) !important;
}

.btn-outline-light:hover {
    background: rgba(255,255,255,0.15);
    border-color: white;
}

/* Product Cards */
.product-card {
    transition: transform 0.3s ease, box-shadow 0.3s ease;
    height: 100%;
    display: flex;
    flex-direction: column;
}

.product-card:hover {
    transform: translateY(-5px);
    box-shadow: 0 10px 25px rgba(103, 198, 103, 0.2);
}

.product-card .card-img-top {
    height: 200px;
    object-fit: cover;
    background: linear-gradient(135deg, #1a5f2e 0%, #2d8650 100%);
    display: flex;
    align-items: center;
    justify-content: center;
    color: white;
    font-size: 4rem;
    position: relative;
    overflow: hidden;
}

.product-card .card-img-top img {
    width: 100%;
    height: 100%;
    object-fit: cover;
}


.product-image-container {
    user-select: none;
}

.product-image-slider {
    position: relative;
    width: 100%;
    height: 200px;
    overflow: hidden;
}

.product-image-slider .product-slide-image {
    position: absolute;
    top: 0;
    left: 0;
    width: 100%;
    height: 200px;
    object-fit: cover;
    transition: opacity 0.5s ease;
}

.product-image-slider .product-slide-image.active {
    opacity: 1;
    z-index: 1;
}

.product-image-slider .product-slide-image:not(.active) {
    opacity: 0;
    z-index: 0;
}

.product-image-dot {
    transition: background 0.3s ease, transform 0.2s ease;
}

.product-image-dot:hover {
    transform: scale(1.2);
}

.product-image-dot.active {
    background: #67c667 !important;
}

.product-card .card-body {
    flex: 1;
    display: flex;
    flex-direction: column;
}

.product-card .card-title {
    color: var(--vireo-green);
    font-weight: 600;
}

.product-card .product-price {
    font-size: 1.5rem;
    font-weight: 700;
    color: var(--vireo-green);
    margin: 1rem 0;
}

.product-card .product-description {
    flex: 1;
    color: #8e9297;
    font-size: 0.9rem;
}

.product-card .btn-add-cart {
    background: var(--vireo-green);
    border-color: var(--vireo-green);
    color: white;
    font-weight: 600;
}

.product-card .btn-add-cart:hover {
    background: var(--vireo-green-dark);
    border-color: var(--vireo-green-dark);
    transform: scale(1.05);
}

/* Cart Badge */
#cart-badge {
    animation: pulse 2s infinite;
}

@keyframes pulse {
    0%, 100% {
        transform: scale(1);
    }
    50% {
        transform: scale(1.1);
    }
}

/* Cart Items */
.cart-item {
    padding: 1rem;
    border-bottom: 1px solid rgba(255,255,255,0.1);
}

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

.cart-item-image {
    width: 80px;
    height: 80px;
    object-fit: cover;
    border-radius: 0.5rem;
    background: linear-gradient(135deg, #1a5f2e 0%, #2d8650 100%);
    display: flex;
    align-items: center;
    justify-content: center;
    color: white;
    font-size: 2rem;
}

.cart-item-quantity {
    width: 60px;
    text-align: center;
}

/* Empty State */
.empty-state {
    text-align: center;
    padding: 3rem;
    color: #8e9297;
}

.empty-state i {
    font-size: 4rem;
    opacity: 0.3;
    margin-bottom: 1rem;
}

/* Responsive - Mobile First */
@media (max-width: 991px) {
    .shop-header .navbar-nav {
        flex-direction: row;
        gap: 0.5rem;
    }

    .shop-header .nav-link {
        padding: 0.5rem !important;
        font-size: 0.875rem;
    }

    .shop-header .nav-link i {
        display: none;
    }

    .navbar-brand-text {
        font-size: 1.25rem !important;
    }

    .navbar-brand-image {
        height: 32px !important;
    }
}

@media (max-width: 768px) {
    /* Header Mobile */
    .shop-header {
        padding: 0.75rem 0;
    }

    .shop-header .container-xl {
        padding: 0 1rem;
    }

    .shop-header .nav-link {
        padding: 0.4rem 0.5rem !important;
        font-size: 0.8rem;
    }

    .shop-header .nav-link span {
        display: none;
    }

    /* Hero Section Mobile */
    .hero-section {
        padding: 2rem 0 3rem 0;
        margin-bottom: 2rem;
        border-radius: 0 0 1.5rem 1.5rem;
    }

    .min-vh-50 {
        min-height: auto;
    }

    .hero-section h1 {
        font-size: 2rem !important;
        line-height: 1.2;
        margin-bottom: 1rem !important;
    }

    .hero-section .lead {
        font-size: 0.95rem !important;
        line-height: 1.5;
        margin-bottom: 1.5rem !important;
    }

    .hero-content {
        text-align: center;
        padding: 0 1rem;
    }

    .hero-section .d-flex.gap-3 {
        flex-direction: column;
        gap: 0.75rem !important;
    }

    .hero-section .btn {
        width: 100%;
        padding: 0.75rem 1rem !important;
        font-size: 0.95rem;
    }

    .hero-section .d-flex.gap-4 {
        flex-direction: column;
        gap: 0.5rem !important;
        align-items: center;
        font-size: 0.85rem;
    }

    .hero-image {
        margin-top: 2rem;
    }

    .hero-logo {
        max-width: 250px !important;
    }

    /* Features Section Mobile */
    .container-xl.py-5 {
        padding: 2rem 1rem !important;
    }

    .card {
        margin-bottom: 1rem;
    }

    /* Products Section Mobile */
    #products {
        padding: 2rem 1rem !important;
    }

    .page-title {
        font-size: 1.5rem;
        margin-bottom: 1.5rem !important;
    }

    .product-card {
        margin-bottom: 1.5rem;
    }

    .product-card .card-img-top {
        height: 180px;
    }

    .product-card .card-title {
        font-size: 1.1rem;
    }

    .product-card .product-price {
        font-size: 1.25rem;
    }

    .product-card .product-description {
        font-size: 0.85rem;
        margin-bottom: 1rem;
    }

    .product-card .btn {
        width: 100%;
        padding: 0.75rem;
    }

    /* Payment & Shipping Info Mobile */
    .container-xl.py-5 .row.g-4 {
        margin: 0;
    }

    .container-xl.py-5 .col-md-4 {
        margin-bottom: 1rem;
    }

    /* Cart Modal Mobile */
    .modal-dialog {
        margin: 0.5rem;
        max-width: calc(100% - 1rem);
    }

    .modal-content {
        border-radius: 1rem;
    }

    .modal-body {
        padding: 1rem;
    }

    .cart-item {
        padding: 0.75rem 0;
    }

    .cart-item .row {
        margin: 0;
    }

    .cart-item-image {
        width: 60px;
        height: 60px;
        font-size: 1.5rem;
    }

    .cart-item h4 {
        font-size: 0.95rem;
        margin-bottom: 0.25rem;
    }

    .cart-item .input-group {
        width: 100px;
    }

    .cart-item .btn-sm {
        padding: 0.25rem 0.5rem;
    }

    /* Shipping Calculator Mobile */
    #shipping-section .row.g-2 {
        margin: 0;
    }

    #shipping-section .col-8,
    #shipping-section .col-4 {
        padding: 0.25rem;
    }

    #shipping-section .btn {
        font-size: 0.85rem;
        padding: 0.5rem;
    }

    /* Footer Mobile */
    .footer {
        padding: 2rem 1rem;
        text-align: center;
    }

    .footer .row {
        flex-direction: column;
    }
}

@media (max-width: 576px) {
    .hero-section h1 {
        font-size: 1.75rem !important;
    }

    .hero-section .lead {
        font-size: 0.9rem !important;
    }

    .hero-logo {
        max-width: 200px !important;
    }

    .product-card .card-img-top {
        height: 150px;
    }

    .shop-header .nav-link {
        padding: 0.3rem 0.4rem !important;
        font-size: 0.75rem;
    }
}

/* Loading Animation */
.loading {
    display: inline-block;
    width: 20px;
    height: 20px;
    border: 3px solid rgba(103, 198, 103, 0.3);
    border-radius: 50%;
    border-top-color: var(--vireo-green);
    animation: spin 1s ease-in-out infinite;
}

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

/* Success Animation */
.success-check {
    color: var(--vireo-green);
    animation: checkmark 0.5s ease-in-out;
}

@keyframes checkmark {
    0% {
        transform: scale(0);
    }
    50% {
        transform: scale(1.2);
    }
    100% {
        transform: scale(1);
    }
}

/* Payment Methods */
.payment-methods {
    text-align: left;
}

.payment-methods .d-flex {
    padding: 0.75rem;
    border-radius: 0.5rem;
    transition: background 0.3s ease;
}

.payment-methods .d-flex:hover {
    background: rgba(103, 198, 103, 0.1);
}

.card.border-success {
    border-width: 2px;
    transition: transform 0.3s ease, box-shadow 0.3s ease;
}

.card.border-success:hover {
    transform: translateY(-5px);
    box-shadow: 0 10px 25px rgba(103, 198, 103, 0.2);
}

.alert-success {
    background: linear-gradient(135deg, rgba(103, 198, 103, 0.1) 0%, rgba(103, 198, 103, 0.05) 100%);
    border: 1px solid rgba(103, 198, 103, 0.3);
    border-radius: 0.75rem;
}

