/* Frontend CSS for Wine Store */

/* Body and Base Styles */
body {
    background-color: #fcf7ef;
    font-family: 'Segoe UI', Tahoma, Geneva, Verdana, sans-serif;
}

a {
    color: #000;
}

/* Wine Name Typography */
.wine-title,
.wine-card h5,
.wine-name,
h1.wine-title {
    font-family: 'Playfair Display', serif;
    font-weight: 600;
}

/* Wine Detail Page Specific Styles */
.wine-detail-card {
    border: none;
    box-shadow: 0 0.5rem 1rem rgba(0, 0, 0, 0.15);
    border-radius: 1rem;
    overflow: hidden;
    background: white;
}

.wine-info {
    padding: 2.5rem;
}

.wine-title {
    color: #2c3e50;
    font-weight: 700;
    margin-bottom: 0.5rem;
}

.wine-subtitle {
    color: #6c757d;
    font-size: 1.1rem;
    margin-bottom: 1.5rem;
}

.wine-price {
    font-size: 2rem;
    font-weight: 700;
    color: #28a745;
    margin-bottom: 1rem;
}

.price-vat {
    font-size: 0.9rem;
    color: #6c757d;
    margin-bottom: 1.5rem;
}

/* Action Section Spacing */
.action-section .d-flex {
    margin-bottom: 1.5rem;
}

.action-section .btn-custom {
    margin-top: 1rem;
}

.info-grid {
    margin-bottom: 2rem;
}

.info-grid .row {
    margin-bottom: 1rem;
}

.info-grid .row:last-child {
    margin-bottom: 0;
}

.info-item {
    background: #ffffff;
    padding: 1rem;
    border-radius: 0.5rem;
    border: 1px solid #e0e0e0;
    border-left: 3px solid #333333;
    height: 100%;
}

.info-label {
    font-weight: 600;
    color: #495057;
    font-size: 0.9rem;
    text-transform: uppercase;
    letter-spacing: 0.5px;
}

.info-value {
    color: #2c3e50;
    font-size: 1.1rem;
    margin-top: 0.25rem;
}

.tasting-note {
    background: #ffffff;
    border: 1px solid #e0e0e0;
    border-radius: 0.5rem;
    padding: 1.5rem;
    margin: 2rem 0;
}

.food-pairing {
    background: #ffffff;
    border: 1px solid #e0e0e0;
    border-radius: 0.5rem;
    padding: 1.5rem;
    margin: 2rem 0;
}

.action-section {
    background: #ffffff;
    border-radius: 0.5rem;
    padding: 2rem;
    margin-top: 2rem;
    border: 1px solid #e0e0e0;
}

.btn-custom {
    padding: 0.75rem 2rem;
    border-radius: 0.5rem;
    font-weight: 600;
    text-transform: uppercase;
    letter-spacing: 0.5px;
}

.quantity-input {
    width: 80px;
    text-align: center;
}

/* Header Styles */
.header-section {
    background: linear-gradient(135deg, #2c3e50 0%, #34495e 100%);
    color: white;
    padding: 1rem 0;
}

.contact-info {
    display: flex;
    justify-content: space-between;
    align-items: center;
    flex-wrap: wrap;
    gap: 1rem;
}

.contact-item {
    display: flex;
    align-items: center;
    gap: 0.5rem;
    font-size: 0.9rem;
}

.contact-item a {
    color: white;
    text-decoration: none;
}

.contact-item a:hover {
    color: #ecf0f1;
    text-decoration: underline;
}

/* Desktop/Mobile specific styles */
.desktop-only {
    display: block;
}

.mobile-only {
    display: none;
}

.mobile-only a {
    display: inline-flex;
    align-items: center;
    justify-content: center;
    width: 40px;
    height: 40px;
    background: rgba(255, 255, 255, 0.1);
    border-radius: 50%;
    margin: 0 0.25rem;
    transition: all 0.3s ease;
}

.mobile-only a:hover {
    background: rgba(255, 255, 255, 0.2);
    transform: scale(1.1);
}

.mobile-only a i {
    font-size: 1.2rem;
}

.vat-info {
    font-weight: 600;
    background: rgba(255, 255, 255, 0.1);
    padding: 0.5rem 1rem;
    border-radius: 20px;
    border: 1px solid rgba(255, 255, 255, 0.2);
}

.logo-container {
    text-align: center;
    margin: 2rem 0;
}

.logo-container img {
    max-height: 120px;
    width: auto;
}

/* Search Container */
.search-container {
    background: #ffffff;
    padding: 2rem;
    border-radius: 10px;
    margin-bottom: 2rem;
    border: 1px solid #e0e0e0;
    text-align: center;
}

/* Wine Cards */
.wine-card {
    border: 1px solid #e0e0e0;
    border-radius: 8px;
    padding: 0.75rem;
    margin-bottom: 0.75rem;
    background: #ffffff;
    transition: transform 0.2s ease, box-shadow 0.2s ease;
}

.wine-card:hover {
    transform: translateY(-2px);
    box-shadow: 0 4px 12px rgba(0, 0, 0, 0.1);
}

.wine-card h5 {
    color: #2c3e50;
    margin-bottom: 0.25rem;
    font-weight: 600;
    font-size: 1rem;
}

.wine-card p {
    margin-bottom: 0.25rem;
    font-size: 0.85rem;
    color: #6c757d;
}

.wine-card .wine-price {
    font-size: 1.1rem;
    font-weight: bold;
    color: #28a745;
    margin-bottom: 0.25rem;
}

.wine-card .add-to-cart-component {
    min-width: 100px;
}

.wine-card .input-group-sm .form-control {
    font-size: 0.8rem;
    padding: 0.25rem 0.5rem;
}

.wine-card .btn-sm {
    padding: 0.25rem 0.5rem;
    font-size: 0.8rem;
}

/* Filter Sidebar */
.filter-sidebar {
    background: #ffffff;
    padding: 1.5rem;
    border-radius: 8px;
    border: 1px solid #e0e0e0;
    margin-bottom: 2rem;
}

.filter-header {
    display: flex;
    justify-content: space-between;
    align-items: center;
    margin-bottom: 1rem;
}

.filter-header h5 {
    margin: 0;
    color: #2c3e50;
    font-weight: 600;
}

.mobile-filter-toggle {
    display: none;
}

/* Age verification modal */
#ageVerificationModal .modal-content {
    border: none;
    border-radius: 15px;
    box-shadow: 0 10px 30px rgba(0,0,0,0.3);
}

#ageVerificationModal .modal-header {
    border-radius: 15px 15px 0 0;
    border-bottom: none;
    padding: 1.5rem;
}

#ageVerificationModal .modal-body {
    padding: 2rem 1.5rem;
}

#ageVerificationModal .fa-wine-glass-alt {
    color: #dc3545;
}

#ageVerificationModal .btn-lg {
    padding: 0.75rem 2rem;
    font-size: 1.1rem;
    border-radius: 8px;
}

#ageVerificationModal .btn-success {
    background-color: #28a745;
    border-color: #28a745;
}

#ageVerificationModal .btn-success:hover {
    background-color: #218838;
    border-color: #1e7e34;
}

/* Footer */
.footer {
    background-color: #2c3e50;
    color: white;
    padding: 2rem 0;
    margin-top: 3rem;
    border-top: 3px solid #34495e;
}

.footer-title {
    color: #ecf0f1;
    font-weight: 600;
    margin-bottom: 1rem;
    font-size: 1.25rem;
}

.footer-info {
    color: #bdc3c7;
    font-size: 0.95rem;
    line-height: 1.6;
}

.footer-info p {
    margin-bottom: 0.25rem;
}

.footer-content {
    margin-top: 1.5rem;
}

.footer-section {
    text-align: center;
    margin-bottom: 1.5rem;
}

.footer-section-title {
    color: #ecf0f1;
    font-weight: 600;
    font-size: 1rem;
    margin-bottom: 1rem;
    text-transform: uppercase;
    letter-spacing: 0.5px;
}

.footer-contact {
    text-align: center;
}

.footer-contact p {
    margin-bottom: 0.75rem;
}

.footer-links {
    margin-top: 1rem;
    padding-top: 1rem;
    border-top: 1px solid #34495e;
}

.footer-link {
    color: #ecf0f1;
    text-decoration: none;
    font-size: 0.9rem;
    transition: color 0.3s ease;
}

.footer-link:hover {
    color: #3498db;
    text-decoration: underline;
}

.footer-separator {
    color: #7f8c8d;
    margin: 0 0.75rem;
    font-size: 0.9rem;
}

.footer-social {
    margin: 1rem 0;
}

.footer-social-link {
    color: #ecf0f1;
    text-decoration: none;
    font-size: 1rem;
    transition: color 0.3s ease;
    display: inline-flex;
    align-items: center;
    gap: 0.5rem;
}

.footer-social-link:hover {
    color: #e1306c;
    text-decoration: none;
}

.footer-social-link i {
    font-size: 1.2rem;
}

.footer-contact-link {
    color: #ecf0f1;
    text-decoration: none;
    font-size: 0.95rem;
    transition: color 0.3s ease;
    display: inline-flex;
    align-items: center;
    gap: 0.5rem;
}

.footer-contact-link:hover {
    color: #25d366;
    text-decoration: none;
}

.footer-contact-link i {
    font-size: 1.1rem;
}

.filter-content {
    transition: all 0.3s ease;
}

.filter-content.show {
    display: block;
}

.filter-sidebar .form-label {
    font-weight: 500;
    color: #34495e;
    margin-bottom: 0.5rem;
}

/* Pagination */
.pagination {
    justify-content: center;
    margin-top: 2rem;
}

.pagination .page-link {
    color: #2c3e50;
    border-color: #e0e0e0;
    padding: 0.5rem 0.75rem;
    font-size: 0.9rem;
}

.pagination .page-link:hover {
    color: #000000;
    background-color: #f8f9fa;
    border-color: #e0e0e0;
}

.pagination .page-item.active .page-link {
    background-color: #000000;
    border-color: #000000;
    color: white;
}

.pagination .page-link i {
    font-size: 0.8rem;
    padding: 0.1rem;
}

/* Results Info */
.results-info {
    background: #ffffff;
    padding: 1rem;
    border-radius: 8px;
    border: 1px solid #e0e0e0;
    margin-bottom: 1rem;
    text-align: center;
}

.results-info h4 {
    color: #2c3e50;
    margin-bottom: 0.5rem;
}

.results-info p {
    color: #7f8c8d;
    margin: 0;
}

/* Loading Spinner */
.loading-spinner {
    text-align: center;
    padding: 2rem;
}

.spinner-border {
    color: #000000;
}

/* Toast Notifications */
.toast-container {
    position: fixed;
    top: 20px;
    right: 20px;
    z-index: 1050;
}

.toast {
    min-width: 300px;
    border: none;
    box-shadow: 0 4px 12px rgba(0, 0, 0, 0.15);
}

.toast-header {
    background-color: #f8f9fa;
    border-bottom: 1px solid #e0e0e0;
}

.toast-body {
    padding: 1rem;
}

/* Floating Request Button */
.floating-request-btn {
    position: fixed;
    bottom: 30px;
    right: 30px;
    background: #28a745;
    color: white;
    border: none;
    border-radius: 50px;
    padding: 15px 20px;
    font-size: 16px;
    font-weight: 600;
    cursor: pointer;
    box-shadow: 0 4px 12px rgba(0, 0, 0, 0.15);
    z-index: 1000;
    transition: all 0.3s ease;
    display: flex;
    align-items: center;
    gap: 8px;
}


.floating-request-btn:hover {
    background: #218838;
    transform: translateY(-2px);
    box-shadow: 0 6px 16px rgba(0, 0, 0, 0.2);
}

.floating-request-btn .badge {
    position: absolute;
    top: -8px;
    right: -8px;
    background: #dc3545;
    color: white;
    border-radius: 50%;
    min-width: 24px;
    height: 24px;
    display: flex;
    align-items: center;
    justify-content: center;
    font-size: 12px;
    font-weight: bold;
}

/* Wine Detail Page Styles */
.info-item {
    background: #ffffff;
    border: 1px solid #e0e0e0;
    border-radius: 0.5rem;
    padding: 1.5rem;
    border-left: 3px solid #333333;
}

.tasting-note {
    background: #ffffff;
    border-radius: 0.5rem;
    padding: 1.5rem;
    margin: 2rem 0;
    border: 1px solid #e0e0e0;
}

.food-pairing {
    background: #ffffff;
    border-radius: 0.5rem;
    padding: 1.5rem;
    margin: 2rem 0;
    border: 1px solid #e0e0e0;
}

.action-section {
    background: #ffffff;
    border-radius: 0.5rem;
    padding: 2rem;
    margin-top: 2rem;
    border: 1px solid #e0e0e0;
}

.btn-custom {
    padding: 0.75rem 2rem;
    border-radius: 0.5rem;
    font-weight: 600;
    text-transform: uppercase;
    letter-spacing: 0.5px;
}

.quantity-input {
    width: 80px;
    text-align: center;
}

/* Bootstrap Overrides - Replace Blue with Black */
.btn-primary {
    background-color: #000000 !important;
    border-color: #000000 !important;
    color: #ffffff !important;
}

.btn-primary:hover {
    background-color: #333333 !important;
    border-color: #333333 !important;
    color: #ffffff !important;
}

.btn-primary:focus {
    background-color: #000000 !important;
    border-color: #000000 !important;
    box-shadow: 0 0 0 0.2rem rgba(0, 0, 0, 0.25) !important;
}

.btn-primary:active {
    background-color: #000000 !important;
    border-color: #000000 !important;
}

.btn-link {
    color: #000000 !important;
    text-decoration: underline !important;
}

.btn-link:hover {
    color: #333333 !important;
}

.form-control:focus {
    border-color: #000000 !important;
    box-shadow: 0 0 0 0.2rem rgba(0, 0, 0, 0.25) !important;
}

.form-select:focus {
    border-color: #000000 !important;
    box-shadow: 0 0 0 0.2rem rgba(0, 0, 0, 0.25) !important;
}

/* Override Bootstrap CSS variables */
:root {
    --bs-primary: #000000 !important;
    --bs-primary-rgb: 0, 0, 0 !important;
    --bs-btn-bg: #000000 !important;
    --bs-btn-border-color: #000000 !important;
    --bs-btn-hover-bg: #333333 !important;
    --bs-btn-hover-border-color: #333333 !important;
    --bs-btn-focus-shadow-rgb: 0, 0, 0 !important;
}

/* Responsive Design */
@media (max-width: 768px) {
    .contact-info {
        flex-direction: row;
        justify-content: space-between;
        text-align: center;
        gap: 0.5rem;
    }

    .contact-item {
        justify-content: center;
        flex: 1;
    }

    .desktop-only {
        display: none;
    }

    .mobile-only {
        display: flex;
        gap: 0.5rem;
    }

    .vat-info {
        font-size: 0.75rem;
        padding: 0.3rem 0.6rem;
        text-align: center;
    }

    .logo-container img {
        max-height: 60px;
    }

    .search-container {
        padding: 1rem;
    }

    .filter-sidebar {
        margin-bottom: 1rem;
    }

    .mobile-filter-toggle {
        display: inline-block;
    }

    .filter-content {
        display: none;
    }

    .filter-content.show {
        display: block;
    }

    /* Add padding for mobile layout */
    .container-fluid {
        padding-bottom: 100px; /* Space for mobile add section */
    }

    /* Mobile add section adjustments */
    .mobile-add-content {
        flex-direction: column;
        gap: 0.75rem;
    }

    .mobile-price-quantity {
        justify-content: center;
        gap: 0.75rem;
    }

    .mobile-price-quantity .wine-price {
        font-size: 1.1rem;
    }

    .mobile-price-quantity .quantity-input {
        width: 50px;
    }

    /* Footer mobile adjustments */
    .footer {
        padding: 1.5rem 0;
        margin-top: 2rem;
    }

    .footer-title {
        font-size: 1.1rem;
        margin-bottom: 0.75rem;
    }

    .footer-info {
        font-size: 0.9rem;
    }

    .footer-links {
        margin-top: 0.75rem;
        padding-top: 0.75rem;
    }

    .footer-link {
        font-size: 0.85rem;
    }

    .footer-separator {
        margin: 0 0.5rem;
        font-size: 0.85rem;
    }

    .footer-social {
        margin: 0.75rem 0;
    }

    .footer-social-link {
        font-size: 0.9rem;
    }

    .footer-social-link i {
        font-size: 1.1rem;
    }

    .footer-contact-link {
        font-size: 0.9rem;
    }

    .footer-contact-link i {
        font-size: 1rem;
    }

    /* Footer mobile adjustments for new layout */
    .footer-content {
        margin-top: 1rem;
    }

    .footer-section {
        margin-bottom: 1rem;
    }

    .footer-section-title {
        font-size: 0.9rem;
        margin-bottom: 0.75rem;
    }

    .footer-contact p {
        margin-bottom: 0.5rem;
    }

    .floating-request-btn {
        bottom: 20px;
        right: 20px;
        padding: 12px 16px;
        font-size: 14px;
    }

    .toast-container {
        top: 10px;
        right: 10px;
        left: 10px;
    }

    .toast {
        min-width: auto;
    }
}

/* Floating Mobile Cart Button */
.floating-mobile-cart {
    position: fixed;
    bottom: 80px;
    left: 0;
    right: 0;
    background: #ffffff;
    border-top: 1px solid #e0e0e0;
    box-shadow: 0 -2px 10px rgba(0, 0, 0, 0.1);
    z-index: 1000;
    padding: 1rem;
}

/* Floating Mobile Request Button */
.floating-mobile-request {
    position: fixed;
    bottom: 80px;
    left: 0;
    right: 0;
    background: #ffffff;
    border-top: 1px solid #e0e0e0;
    box-shadow: 0 -2px 10px rgba(0, 0, 0, 0.1);
    z-index: 1000;
    padding: 1rem;
}

.floating-cart-content {
    display: flex;
    align-items: center;
    justify-content: space-between;
    gap: 1rem;
}

.floating-request-content {
    display: flex;
    align-items: center;
    justify-content: space-between;
    gap: 1rem;
}

.floating-cart-content .cart-actions {
    display: flex;
    align-items: center;
    gap: 8px;
}

.floating-request-content .request-actions {
    display: flex;
    align-items: center;
    gap: 8px;
}

.floating-request-content .request-actions .btn {
    position: relative;
}

.floating-request-content .request-actions .badge {
    position: absolute;
    top: -8px;
    right: -8px;
    background: #dc3545;
    color: white;
    border-radius: 50%;
    min-width: 20px;
    height: 20px;
    display: flex;
    align-items: center;
    justify-content: center;
    font-size: 0.75rem;
    font-weight: 600;
}

.cart-info {
    flex: 1;
    min-width: 0;
    display: flex;
    align-items: center;
}

.cart-info .wine-price {
    font-size: 1.2rem;
    font-weight: bold;
    color: #28a745;
}

.request-info {
    flex: 1;
    min-width: 0;
    display: flex;
    align-items: center;
}

.request-info .wine-price {
    font-size: 1.2rem;
    font-weight: bold;
    color: #28a745;
}

.request-actions {
    display: flex;
    align-items: center;
}

/* Mobile Add Section (Bottom) */
.action-section-mobile {
    position: fixed;
    bottom: 0;
    left: 0;
    right: 0;
    background: #ffffff;
    border-top: 1px solid #e0e0e0;
    box-shadow: 0 -2px 10px rgba(0, 0, 0, 0.1);
    z-index: 1000;
    padding: 1rem;
}

.mobile-add-section {
    max-width: 100%;
}

.mobile-add-content {
    display: flex;
    align-items: center;
    justify-content: space-between;
    gap: 1rem;
}

.mobile-price-quantity {
    display: flex;
    align-items: center;
    gap: 1rem;
    flex: 1;
}

.mobile-price-quantity .wine-price {
    font-size: 1.2rem;
    font-weight: bold;
    color: #28a745;
    margin: 0;
}

.mobile-price-quantity .quantity-controls {
    display: flex;
    align-items: center;
    gap: 0.5rem;
}

.mobile-price-quantity .quantity-input {
    width: 60px;
    text-align: center;
}

.cart-actions {
    display: flex;
    align-items: center;
    gap: 0.75rem;
}

.quantity-section {
    display: flex;
    flex-direction: column;
    align-items: center;
    gap: 0.5rem;
}

.quantity-controls {
    display: flex;
    align-items: center;
    gap: 0.5rem;
}

.quantity-controls .quantity-input {
    width: 60px;
    text-align: center;
    font-size: 0.9rem;
}

.quantity-controls .btn {
    width: 32px;
    height: 32px;
    padding: 0;
    display: flex;
    align-items: center;
    justify-content: center;
}

.quantity-section .btn-custom {
    width: auto;
    min-width: 100px;
    padding: 0.5rem 1rem;
    font-size: 0.85rem;
}
