/* Import the main stylesheet styles */
* {
    box-sizing: border-box;
    margin: 0;
    padding: 0;
}

/* Address Suggestions Styling */
.address-suggestions {
    position: absolute;
    top: 100%;
    left: 0;
    right: 0;
    background: white;
    border: 1px solid #ced4da;
    border-top: none;
    border-radius: 0 0 0.375rem 0.375rem;
    max-height: 200px;
    overflow-y: auto;
    z-index: 1000;
    display: none;
    box-shadow: 0 2px 4px rgba(0,0,0,0.1);
}

.suggestion-item {
    padding: 8px 12px;
    cursor: pointer;
    border-bottom: 1px solid #f0f0f0;
    font-size: 14px;
    transition: background-color 0.2s ease;
}

.suggestion-item:hover {
    background-color: #f8f9fa;
}

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

body {
    font-family: 'Inter', sans-serif;
    font-size: 16px;
    line-height: 1.6;
    color: #2C2C2C;
    background: #F4F4F4;
    margin: 0;
    padding: 0;
}

.container {
    max-width: 1200px;
    margin: 0 auto;
    padding: 0 20px;
}

.navbar {
    position: relative;
    z-index: 1000;
}

/* Hero Section - Full background behind entire page content */
.hero {
    padding: 140px 0 120px;
    text-align: center;
    color: white;
    display: flex;
    align-items: center;
    min-height: 100vh;
    margin: 0 !important;
    position: fixed;
    top: 0;
    left: 0;
    right: 0;
    z-index: 1;
}

.hero-with-bg {
    background-image: url('../img/hero/hero_HAAD.webp');
    background-size: cover;
    background-position: center;
    background-repeat: no-repeat;
    position: fixed;
    top: 0;
    left: 0;
    right: 0;
    bottom: 0;
    margin: 0 !important;
    z-index: 1;
}

.hero-with-bg::before {
    content: '';
    position: absolute;
    top: 0;
    left: 0;
    right: 0;
    bottom: 0;
    background: linear-gradient(135deg, rgba(0, 112, 192, 0.7), rgba(237, 85, 165, 0.6));
}

.hero-content {
    position: relative;
    z-index: 2;
    max-width: 800px;
    margin: 0 auto;
    width: 100%;
    padding: 0 20px;
}

.hero h1 {
    font-family: 'Playfair Display', serif;
    font-size: clamp(2.5rem, 5vw, 3.5rem);
    font-weight: 400;
    margin-bottom: 20px;
    text-shadow: 2px 2px 10px rgba(0, 0, 0, 0.3);
    letter-spacing: -0.02em;
}

.hero .lead {
    font-size: clamp(1.1rem, 2.5vw, 1.3rem);
    opacity: 0.95;
    text-shadow: 1px 1px 8px rgba(0, 0, 0, 0.6);
    margin-bottom: 0;
}

/* Alternative selectors for existing HTML structure - Full background */
.header-2 {
    margin: 0 !important;
    padding: 0 !important;
    position: relative;
    z-index: 2;
}

/* Create full page background effect */
body::before {
    content: '';
    position: fixed;
    top: 0;
    left: 0;
    right: 0;
    bottom: 0;
    background-image: url('../img/hero/hero_HAAD.webp');
    background-size: cover;
    background-position: center;
    background-repeat: no-repeat;
    background-attachment: fixed;
    z-index: -2;
}

body::after {
    content: '';
    position: fixed;
    top: 0;
    left: 0;
    right: 0;
    bottom: 0;
    background: linear-gradient(135deg, rgba(0, 112, 192, 0.7), rgba(237, 85, 165, 0.6));
    z-index: -1;
}


.header-2 .page-header {
    background: transparent;
    position: relative;
    min-height: 60vh;
    margin: 0 !important;
    padding: 140px 0 80px 0;
    display: flex;
    align-items: center;
    z-index: 2;
}

.header-2 .page-header::before {
    content: '';
    position: fixed;
    top: 0;
    left: 0;
    right: 0;
    bottom: 0;
    background-image: url('../img/hero/hero_HAAD.webp');
    background-size: cover;
    background-position: center;
    background-repeat: no-repeat;
    z-index: -2;
}

.header-2 .page-header::after {
    content: '';
    position: fixed;
    top: 0;
    left: 0;
    right: 0;
    bottom: 0;
    background: linear-gradient(135deg, rgba(0, 112, 192, 0.7), rgba(237, 85, 165, 0.6));
    z-index: -1;
}

.header-2 .page-header .container {
    position: relative;
    z-index: 2;
}

.header-2 h1 {
    font-family: 'Playfair Display', serif;
    font-size: clamp(2.5rem, 5vw, 3.5rem);
    font-weight: 400;
    text-shadow: 2px 2px 10px rgba(0, 0, 0, 0.3);
    letter-spacing: -0.02em;
    margin-bottom: 20px;
}

.header-2 .lead {
    font-size: clamp(1.1rem, 2.5vw, 1.3rem);
    opacity: 0.95;
    text-shadow: 1px 1px 8px rgba(0, 0, 0, 0.6);
    margin-bottom: 0;
}

/* Ensure content appears above the background */
body {
    position: relative;
    z-index: 1;
}

/* Aggressive gap removal - Force no margins between elements */
.navbar + .header-2,
header + .header-2,
nav + .header-2 {
    margin-top: 0 !important;
}

.navbar + .header-2 .page-header,
header + .header-2 .page-header,
nav + .header-2 .page-header {
    margin-top: 0 !important;
}

/* Force any potential Bootstrap or framework spacing to be removed */
.container-fluid,
.container,
.row {
    margin-top: 0;
    padding-top: 0;
}

/* Additional selectors to catch common navbar classes */
.navbar-nav,
.nav,
.navigation,
.main-nav,
.top-nav {
    margin-bottom: 0 !important;
    border-bottom: none !important;
}

/* Ensure page wrapper doesn't add gaps */
#page,
.page,
.main-content,
.content-wrapper {
    margin-top: 0 !important;
    padding-top: 0 !important;
}

/* Cart container positioning - Now floating over full background */
.cart-container {
    background: white;
    border-radius: 30px;
    padding: 40px;
    box-shadow: 0 20px 60px rgba(0, 112, 192, 0.15);
    border: 1px solid rgba(237, 85, 165, 0.1);
    margin: 20px auto 40px auto;
    position: relative;
    z-index: 10;
    max-width: 1200px;
    backdrop-filter: blur(10px);
    -webkit-backdrop-filter: blur(10px);
}

.cart-container::before {
    content: '';
    position: absolute;
    top: 0;
    left: 0;
    right: 0;
    height: 4px;
    background: linear-gradient(135deg, #ED55A5, #5BC8D2);
    border-radius: 30px 30px 0 0;
}

/* Alert styling */
.alert {
    border-radius: 20px;
    border: none;
    padding: 30px;
    text-align: center;
    background: linear-gradient(135deg, rgba(91, 200, 210, 0.1), rgba(237, 85, 165, 0.1));
    border-left: 4px solid #5BC8D2;
}

.alert h4 {
    font-family: 'Playfair Display', serif;
    color: #2C2C2C;
    margin-bottom: 15px;
}

.alert p {
    color: #0070C0;
    font-style: italic;
    margin-bottom: 20px;
}

/* Table styling */
.table-responsive {
    border-radius: 20px;
    overflow: hidden;
    box-shadow: 0 8px 30px rgba(0, 112, 192, 0.1);
    border: 1px solid rgba(237, 85, 165, 0.1);
}

.cart-table {
    margin: 0;
    border: none;
    border-collapse: separate;
    border-spacing: 0;
}

/* Remove all table borders */
.cart-table,
.cart-table thead,
.cart-table tbody,
.cart-table tfoot,
.cart-table tr,
.cart-table td,
.cart-table th {
    border: none !important;
}

/* Remove Bootstrap table borders completely */
.table-bordered,
.table-bordered td,
.table-bordered th {
    border: none !important;
}

/* Ensure no borders on any table elements */
.cart-table * {
    border: none !important;
}

.cart-table thead th {
    background: linear-gradient(135deg, #0070C0, #5BC8D2);
    color: white;
    border: none;
    padding: 20px 15px;
    font-weight: 600;
    text-transform: uppercase;
    letter-spacing: 0.5px;
    font-size: 14px;
}

.cart-table tbody td {
    padding: 20px 15px;
    border-bottom: 1px solid rgba(237, 85, 165, 0.1);
    vertical-align: middle;
    border-left: none;
    border-right: none;
}

/* Remove all vertical borders from table cells */
.cart-table td,
.cart-table th {
    border-left: none !important;
    border-right: none !important;
}

.cart-table tbody tr:hover {
    background: rgba(237, 85, 165, 0.05);
}

.cart-table tfoot td {
    background: rgba(0, 112, 192, 0.05);
    border: none !important;
    padding: 20px 15px;
    font-size: 18px;
    color: #0070C0;
}

/* Remove any remaining borders from tfoot */
.cart-table tfoot tr,
.cart-table tfoot td {
    border-top: none !important;
    border-bottom: none !important;
    border-left: none !important;
    border-right: none !important;
}

/* Product info styling */
.product-info h6 {
    font-family: 'Playfair Display', serif;
    font-weight: 600;
    color: #2C2C2C;
    margin-bottom: 5px;
}

.product-info small {
    color: #0070C0;
    font-weight: 500;
}

/* Quantity input styling */
.quantity-input {
    border: 2px solid #5BC8D2;
    border-radius: 10px;
    text-align: center;
    font-weight: 600;
    background-color: #F9F9F9;
    transition: all 0.3s ease;
}

.quantity-input:focus {
    border-color: #ED55A5;
    box-shadow: 0 0 0 0.2rem rgba(237, 85, 165, 0.25);
    background-color: white;
    outline: none;
}

/* Button styling */
.btn-primary,
.btn-outline-primary {
    background: linear-gradient(135deg, #ED55A5, #5BC8D2);
    border: none;
    border-radius: 25px;
    color: white;
    font-weight: 600;
    padding: 12px 25px;
    transition: all 0.3s ease;
    text-transform: uppercase;
    letter-spacing: 0.5px;
    box-shadow: 0 8px 25px rgba(237, 85, 165, 0.3);
}

.btn-primary:hover,
.btn-outline-primary:hover {
    transform: translateY(-2px);
    box-shadow: 0 12px 35px rgba(237, 85, 165, 0.4);
    color: white;
}

.btn-outline-primary {
    background: transparent;
    border: 2px solid #5BC8D2;
    color: #0070C0;
    box-shadow: none;
}

.btn-outline-primary:hover {
    background: linear-gradient(135deg, #ED55A5, #5BC8D2);
    border-color: #ED55A5;
}

.btn-outline-secondary {
    background: transparent;
    border: 2px solid #0070C0;
    color: #0070C0;
    border-radius: 25px;
    font-weight: 600;
    padding: 12px 25px;
    transition: all 0.3s ease;
}

.btn-outline-secondary:hover {
    background: #0070C0;
    color: white;
    transform: translateY(-2px);
    box-shadow: 0 8px 20px rgba(0, 112, 192, 0.3);
}

.btn-outline-warning {
    background: transparent;
    border: 2px solid #ED55A5;
    color: #ED55A5;
    border-radius: 25px;
    font-weight: 600;
    padding: 12px 25px;
    transition: all 0.3s ease;
}

.btn-outline-warning:hover {
    background: #ED55A5;
    color: white;
    transform: translateY(-2px);
    box-shadow: 0 8px 20px rgba(237, 85, 165, 0.3);
}

.btn-outline-danger {
    border: 2px solid #ED55A5;
    color: #ED55A5;
    border-radius: 10px;
    transition: all 0.3s ease;
    background: transparent;
}

.btn-outline-danger:hover {
    background: #ED55A5;
    color: white;
    transform: translateY(-1px);
}

/* Action buttons styling - make them same size and shape */
.action-btn {
    width: 40px;
    height: 40px;
    border-radius: 10px;
    display: flex;
    align-items: center;
    justify-content: center;
    padding: 0;
    font-size: 16px;
    border: 2px solid;
    background: white;
    box-shadow: 0 2px 8px rgba(0, 0, 0, 0.1);
    transition: all 0.3s ease;
}

.action-btn.btn-outline-primary {
    border-color: #5BC8D2;
    color: #0070C0;
    background: white;
}

.action-btn.btn-outline-primary:hover {
    background: #5BC8D2;
    color: white;
    border-color: #5BC8D2;
    transform: translateY(-1px);
    box-shadow: 0 4px 12px rgba(91, 200, 210, 0.3);
}

.action-btn.btn-outline-danger {
    border-color: #ED55A5;
    color: #ED55A5;
    background: white;
}

.action-btn.btn-outline-danger:hover {
    background: #ED55A5;
    color: white;
    border-color: #ED55A5;
    transform: translateY(-1px);
    box-shadow: 0 4px 12px rgba(237, 85, 165, 0.3);
}

/* Make icons bigger */
.action-btn i {
    font-size: 16px;
    font-weight: 600;
}

.btn-lg {
    padding: 15px 40px;
    font-size: 16px;
}

/* Order type section styling */
.btn-group .btn-check:checked + .btn {
    background: linear-gradient(135deg, #ED55A5, #5BC8D2);
    border-color: #ED55A5;
    color: white;
}

.btn-group .btn {
    border: 2px solid #5BC8D2;
    color: #0070C0;
    font-weight: 600;
    transition: all 0.3s ease;
}

.btn-group .btn:hover {
    background: rgba(237, 85, 165, 0.1);
    transform: translateY(-1px);
}

/* Order type container */
.order-type-container {
    background: white;
    border-radius: 20px;
    box-shadow: 0 8px 30px rgba(0, 112, 192, 0.1);
    border: 1px solid rgba(237, 85, 165, 0.1);
    overflow: hidden;
}

.order-type-container .card {
    border: none;
    border-radius: 20px;
    background: white;
}

.order-type-container .card-body {
    padding: 30px;
}

.order-type-container .card-title {
    font-family: 'Playfair Display', serif;
    font-weight: 600;
    color: #2C2C2C;
    margin-bottom: 20px;
    position: relative;
}

.order-type-container .card-title::after {
    content: '';
    position: absolute;
    bottom: -8px;
    left: 0;
    width: 40px;
    height: 3px;
    background: linear-gradient(135deg, #ED55A5, #5BC8D2);
    border-radius: 2px;
}

/* Form styling */
.form-label {
    color: #2C2C2C;
    font-weight: 600;
    margin-bottom: 8px;
}

.form-control,
.form-select {
    border: 2px solid #5BC8D2;
    border-radius: 15px;
    padding: 12px 15px;
    transition: all 0.3s ease;
    background-color: #F9F9F9;
}

.form-control:focus,
.form-select:focus {
    border-color: #ED55A5;
    box-shadow: 0 0 0 0.2rem rgba(237, 85, 165, 0.25);
    background-color: white;
    outline: none;
}

/* Map styling */
#map {
    border-radius: 15px;
    box-shadow: 0 8px 20px rgba(0, 112, 192, 0.15);
    border: 2px solid rgba(237, 85, 165, 0.1);
}

/* Store address styling */
.order-type-container h6 {
    color: #0070C0;
    font-weight: 600;
    margin-bottom: 10px;
}

.order-type-container p {
    color: #666;
    margin-bottom: 5px;
}

/* Cart Actions - Mobile Responsive Fix */
.cart-actions {
    display: flex;
    justify-content: flex-end;
    align-items: center;
    flex-wrap: wrap;
    gap: 10px;
    margin-top: 1.5rem;
}

.cart-actions-right {
    display: flex;
    gap: 8px;
    flex-wrap: nowrap;
}

/* Stock warning styling */
.text-warning {
    color: #ED55A5 !important;
    font-weight: 600;
}

/* Total amount emphasis */
.total-amount {
    font-size: 20px;
    color: #0070C0;
    font-weight: 700;
}

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

.cart-container {
    animation: fadeInUp 0.8s ease-out forwards;
}

/* Mobile responsiveness for hero */
@media (max-width: 768px) {
    .hero {
        padding: 120px 20px 60px;
        min-height: 50vh;
    }

    .header-2 .page-header {
        min-height: 50vh;
        padding: 120px 0 60px 0;
    }

    .hero h1,
    .header-2 h1 {
        font-size: 2rem;
    }

    .hero .lead,
    .header-2 .lead {
        font-size: 1rem;
    }

    .cart-actions {
        justify-content: center;
    }

    .cart-actions-right {
        justify-content: center;
        gap: 8px;
        flex-wrap: wrap;
    }

    .cart-actions-right .btn {
        flex: 1;
        font-size: 12px;
        padding: 10px 8px;
        min-width: 0;
    }
}

@media (max-width: 480px) {
    .hero {
        padding: 100px 16px 40px;
        min-height: 50vh;
    }

    .header-2 .page-header {
        padding: 100px 0 40px 0;
    }

    .cart-actions-right .btn {
        font-size: 11px;
        padding: 8px 6px;
    }
}

@media (max-width: 360px) {
    .cart-actions-right .btn {
        font-size: 10px;
        padding: 6px 4px;
    }
}
