:root {
    --bs-link-color: #e63333;
    --bs-link-hover-color: #fb7829;
    
    /* Modern border radius like Tailwind/ShadCN */
    --bs-border-radius: 0.5rem;
    --bs-border-radius-sm: 0.375rem;
    --bs-border-radius-lg: 0.75rem;
    --bs-border-radius-xl: 1rem;
    --bs-border-radius-2xl: 1.5rem;
    
    /* Better spacing scale */
    --bs-spacer: 1rem;
    
    /* Enhanced typography */
    --bs-font-size-base: 0.875rem;
    --bs-font-weight-medium: 500;
    --bs-font-weight-semibold: 600;
    
    /* Modern shadows */
    --bs-box-shadow: 0 1px 3px 0 rgb(0 0 0 / 0.1), 0 1px 2px -1px rgb(0 0 0 / 0.1);
    --bs-box-shadow-sm: 0 1px 2px 0 rgb(0 0 0 / 0.05);
    --bs-box-shadow-lg: 0 10px 15px -3px rgb(0 0 0 / 0.1), 0 4px 6px -4px rgb(0 0 0 / 0.1);
    
    /* Better focus colors */
    --bs-focus-ring-color: rgb(230 51 51 / 0.25);
    --bs-focus-ring-width: 0.125rem;
    
    /* Enhanced form controls */
    --bs-form-control-bg: #ffffff;
    --bs-form-control-border-color: #e2e8f0;
    --bs-form-control-focus-border-color: #e63333;
    --bs-form-control-focus-box-shadow: 0 0 0 0.125rem rgb(230 51 51 / 0.25);
}

body {
    font-size: 0.875rem;
    padding-top: 4.875rem;
    font-family: "Montserrat", sans-serif;
    color: #1f2937;
    line-height: 1.6;
    -webkit-font-smoothing: antialiased;
    -moz-osx-font-smoothing: grayscale;
}

/* Modern typography scale */
h1, h2, h3, h4, h5, h6 {
    color: #111827;
    font-weight: 600;
    line-height: 1.25;
    letter-spacing: -0.025em;
}

h1 { font-size: 2.25rem; }
h2 { font-size: 1.875rem; }
h3 { font-size: 1.5rem; }
h4 { font-size: 1.25rem; }
h5 { font-size: 1.125rem; }
h6 { font-size: 1rem; }

a {
    color: #e63333;
    text-decoration: none;
    transition: color 0.15s ease-in-out;
}

a:hover {
    color: #fb7829;
    text-decoration: underline;
}

/* Enhanced buttons */
.btn {
    font-weight: 500;
    border-radius: 0.5rem;
    padding: 0.5rem 1rem;
    font-size: 0.875rem;
    transition: all 0.15s ease-in-out;
    border-width: 1px;
    box-shadow: 0 1px 2px 0 rgb(0 0 0 / 0.05);
}

.btn:focus {
    box-shadow: 0 0 0 0.125rem rgb(230 51 51 / 0.25);
}

.btn-sm {
    padding: 0.375rem 0.75rem;
    font-size: 0.8125rem;
    border-radius: 0.375rem;
}

.btn-lg {
    padding: 0.75rem 1.5rem;
    font-size: 1rem;
    border-radius: 0.75rem;
}

.btn-primary {
    --bs-btn-bg: #e63333;
    --bs-btn-border-color: #e63333;
    --bs-btn-hover-bg: #fb7829;
    --bs-btn-hover-border-color: #fb7829;
    --bs-btn-active-bg: #fb7829;
    --bs-btn-active-border-color: #fb7829;
    --bs-btn-disabled-bg: #9ca3af;
    --bs-btn-disabled-border-color: #9ca3af;
    color: white;
}

.btn-outline-primary {
    --bs-btn-color: #e63333;
    --bs-btn-border-color: #e2e8f0;
    --bs-btn-hover-bg: #e63333;
    --bs-btn-hover-border-color: #e63333;
    --bs-btn-hover-color: white;
    --bs-btn-active-bg: #fb7829;
    --bs-btn-active-border-color: #fb7829;
    --bs-btn-active-color: white;
    --bs-btn-disabled-color: #9ca3af;
    --bs-btn-disabled-border-color: #e2e8f0;
    background-color: white;
}

/* Enhanced form controls */
.form-control, .form-select {
    border-radius: 0.5rem;
    border: 1px solid #e2e8f0;
    padding: 0.5rem 0.75rem;
    font-size: 0.875rem;
    transition: all 0.15s ease-in-out;
    background-color: white;
}

.form-control:focus, .form-select:focus {
    border-color: #e63333;
    box-shadow: 0 0 0 0.125rem rgb(230 51 51 / 0.25);
}

.form-control::placeholder {
    color: #9ca3af;
}

/* Enhanced cards */
.card {
    border-radius: 0.75rem;
    border: 1px solid #e2e8f0;
    box-shadow: 0 1px 3px 0 rgb(0 0 0 / 0.1);
}

.card-header {
    background-color: #f8fafc;
    border-bottom: 1px solid #e2e8f0;
    font-weight: 600;
    color: #374151;
    padding: 1rem 1.25rem;
}

.card-body {
    padding: 1.25rem;
}

/* Enhanced alerts */
.alert {
    border-radius: 0.5rem;
    border-width: 1px;
    padding: 0.75rem 1rem;
    font-size: 0.875rem;
}

/* Enhanced badges */
.badge {
    border-radius: 0.375rem;
    font-weight: 500;
    font-size: 0.75rem;
    padding: 0.25rem 0.5rem;
}

/* Enhanced dropdowns */
.dropdown-menu {
    border-radius: 0.5rem;
    border: 1px solid #e2e8f0;
    box-shadow: 0 10px 15px -3px rgb(0 0 0 / 0.1), 0 4px 6px -4px rgb(0 0 0 / 0.1);
    padding: 0.5rem;
}

.dropdown-item {
    border-radius: 0.375rem;
    padding: 0.5rem 0.75rem;
    font-size: 0.875rem;
    transition: all 0.15s ease-in-out;
}

.dropdown-item:hover {
    background-color: #f1f5f9;
    color: #374151;
}

/* Enhanced modals */
.modal-content {
    border-radius: 0.75rem;
    border: none;
    box-shadow: 0 25px 50px -12px rgb(0 0 0 / 0.25);
}

.modal-header {
    padding: 1.5rem 1.5rem 1rem;
    border-bottom: 1px solid #e2e8f0;
}

.modal-body {
    padding: 1rem 1.5rem;
}

.modal-footer {
    padding: 1rem 1.5rem 1.5rem;
    border-top: 1px solid #e2e8f0;
}

/* Enhanced list groups */
.list-group {
    border-radius: 0.5rem;
}

.list-group-item {
    border-color: #e2e8f0;
    padding: 0.75rem 1rem;
    transition: all 0.15s ease-in-out;
}

.list-group-item:hover {
    background-color: #f8fafc;
}

blockquote {
    border-left: 4px solid #e63333;
    padding-left: 1rem;
    color: #6b7280;
    background-color: #f8fafc;
    border-radius: 0 0.5rem 0.5rem 0;
    padding: 1rem;
    margin: 1rem 0;
    font-style: italic;
}

/* Header */
#top-navbar .navbar-brand img {
    max-height: 3.25rem;
}

#top-navbar .dropdown-flags {
    min-width: 1rem;
}

/* Cart button styling */
#top-navbar .btn-outline-success {
    background-color: #fff1f1;
    border-color: #fff1f1;
    color: #fdaa51;
}

#top-navbar .btn-outline-success:hover {
    background-color: #fff1f1;
    border-color: #fff1f1;
    color: #fdaa51;
}

#top-navbar .btn-outline-success i {
    color: #fdaa51;
}

/* Menu button styling */
#top-navbar .btn-outline-primary {
    border: none;
    background: none;
    color: #e63333;
}

#top-navbar .btn-outline-primary:hover {
    border: none;
    background-color: #fff1f1;
    color: #e63333;
}

#top-navbar .btn-outline-primary i {
    color: #e63333;
    font-weight: 900;
    font-size: 1.2rem;
}

/* Offcanvas */
.offcanvas {
    width: 320px;
}

.offcanvas-body h6 {
    color: #2C3E50;
    font-weight: 600;
    margin-bottom: 1rem;
    border-bottom: 1px solid #ecf0f1;
    padding-bottom: 0.5rem;
}

.offcanvas-body .nav-link {
    color: #444;
    padding: 0.75rem 1rem;
    border-radius: 0.375rem;
    margin-bottom: 0.25rem;
    transition: all 0.2s;
}

.offcanvas-body .nav-link:hover {
    background-color: #f8f9fa;
    color: #e63333;
}

.offcanvas-body .nav-link.active {
    background-color: #e63333;
    color: white;
}

.offcanvas-body .nav-link i {
    width: 20px;
    text-align: center;
}

.offcanvas-body .btn-sm.active {
    background-color: #e63333;
    border-color: #e63333;
    color: white;
}

.offcanvas-body .flag {
    width: 16px;
    height: 12px;
}

/* Hero */
.hero {
    background: linear-gradient(90deg,#fb7829 0,#fed070 100%);
    padding: 2.5rem 0;
    overflow: visible;
}

.hero h1 {
    font-size: 3rem;
    font-weight: 700;
    color: #fff;
}

.hero h1 span {
    color: #e63333;
}

.hero img {
    position: absolute;
    height: 253px;
    top: -63px;
    z-index: 1;
    right: 0;
}

/* Search form submit button hover */
.search-form .btn:hover {
    background-color: #fff1f1 !important;
}

/* Category buttons hover */
.btn-light:hover {
    background-color: #fff1f1 !important;
    border-color: #fff1f1 !important;
    color: #e63333 !important;
}

.btn-light:hover .text-dark {
    color: #e63333 !important;
}

/* Product Cards */
.product-card {
    transition: all 0.3s ease;
    border-radius: 0.75rem !important;
}

.product-card:hover {
    transform: translateY(-4px);
    box-shadow: 0 10px 25px -5px rgb(0 0 0 / 0.1), 0 10px 10px -5px rgb(0 0 0 / 0.04) !important;
}

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

.product-card .card-img-top {
    border-radius: 0.75rem 0.75rem 0 0 !important;
}

/* Clickable Article Cards */
.clickable-card {
    transition: all 0.3s ease;
    display: block;
}

.clickable-card:hover {
    transform: translateY(-4px);
    box-shadow: 0 10px 25px -5px rgb(0 0 0 / 0.1), 0 10px 10px -5px rgb(0 0 0 / 0.04) !important;
    text-decoration: none;
}

.clickable-card:hover .card-img-top {
    transform: scale(1.05);
}

.clickable-card .card-img-top {
    transition: transform 0.3s ease;
}

.clickable-card:hover .card-title {
    color: #e63333 !important;
}

.clickable-card:focus {
    outline: 2px solid #e63333;
    outline-offset: 2px;
}

.product-card .qty-input:focus {
    box-shadow: none;
    border-color: #e63333;
}

.product-card .qty-btn-minus,
.product-card .qty-btn-plus {
    width: 32px;
    height: 32px;
    padding: 0;
    display: flex;
    align-items: center;
    justify-content: center;
    border-color: #e2e8f0;
}

.product-card .qty-btn-minus:hover,
.product-card .qty-btn-plus:hover {
    background-color: #f8fafc;
    border-color: #e63333;
}

/* Enhanced Pagination */
.pagination-container {
    margin-bottom: 2rem;
    display: flex;
    flex-direction: column;
    align-items: center;
}

.pagination-container nav {
    margin-bottom: .5rem;
}

.pagination {
    --bs-pagination-padding-x: 0.75rem;
    --bs-pagination-padding-y: 0.5rem;
    --bs-pagination-font-size: 0.875rem;
    --bs-pagination-color: #374151;
    --bs-pagination-bg: #ffffff;
    --bs-pagination-border-width: 1px;
    --bs-pagination-border-color: #e2e8f0;
    --bs-pagination-border-radius: 0.5rem;
    --bs-pagination-hover-color: #e63333;
    --bs-pagination-hover-bg: #f8fafc;
    --bs-pagination-hover-border-color: #e2e8f0;
    --bs-pagination-focus-color: #e63333;
    --bs-pagination-focus-bg: #f8fafc;
    --bs-pagination-focus-box-shadow: 0 0 0 0.125rem rgb(230 51 51 / 0.25);
    --bs-pagination-active-color: #ffffff;
    --bs-pagination-active-bg: #e63333;
    --bs-pagination-active-border-color: #e63333;
    --bs-pagination-disabled-color: #9ca3af;
    --bs-pagination-disabled-bg: #ffffff;
    --bs-pagination-disabled-border-color: #e2e8f0;
    
    gap: 0.25rem;
}

.pagination .page-link {
    border-radius: 0.375rem;
    font-weight: 500;
    transition: all 0.15s ease-in-out;
    box-shadow: 0 1px 2px 0 rgb(0 0 0 / 0.05);
    min-width: 2.5rem;
    text-align: center;
}

.pagination .page-link:hover {
    transform: translateY(-1px);
    box-shadow: 0 4px 6px -1px rgb(0 0 0 / 0.1), 0 2px 4px -1px rgb(0 0 0 / 0.06);
}

.pagination .page-item.active .page-link {
    box-shadow: 0 4px 6px -1px rgb(230 51 51 / 0.3), 0 2px 4px -1px rgb(230 51 51 / 0.15);
}

.pagination .page-item.disabled .page-link {
    opacity: 0.6;
}

.pagination .page-item:first-child .page-link,
.pagination .page-item:last-child .page-link {
    border-radius: 0.375rem;
}

/* Consent */
.cookie-consent {
    position: fixed;
    bottom: 0;
    left: 0;
    right: 0;
    background: #fff;
    border-top: 1px solid #e2e8f0;
    box-shadow: 0 -4px 20px rgba(0, 0, 0, 0.1);
    display: none;
    z-index: 1060;
    padding: 1.5rem;
    max-height: 90vh;
    overflow-y: auto;
}

#cookieForm {
    max-width: 1200px;
    margin: 0 auto;
}

.cookieText {
    margin-bottom: 1.5rem;
}

.cookieText h2 {
    font-size: 1.25rem;
    font-weight: 600;
    color: #374151;
    margin-bottom: 1rem;
}

.cookieText p {
    color: #6b7280;
    margin-bottom: 1rem;
    line-height: 1.6;
}

.cookieText label {
    display: flex;
    align-items: center;
    margin-bottom: 0.75rem;
    color: #374151;
    font-size: 0.875rem;
    cursor: pointer;
}

.cookieText label input {
    margin-right: 0.5rem;
}

.cookieButtons {
    display: flex;
    gap: 0.75rem;
    flex-wrap: wrap;
    justify-content: center;
}

.cookieButtons .btn {
    margin-bottom: 0;
    min-width: 140px;
}

@media (max-width: 768px) {
    .cookie-consent {
        padding: 1rem;
    }
    
    .cookieButtons {
        flex-direction: column;
    }
    
    .cookieButtons .btn {
        width: 100%;
        min-width: auto;
    }
    
    .cookieText h2 {
        font-size: 1.125rem;
    }
}

/* Product specific styles that don't have Bootstrap equivalents */
.product-image img {
    max-width: 100%;
    height: auto;
}

/* Small devices (landscape phones, 576px and up) */
@media (min-width: 576px) {}

/* Medium devices (tablets, 768px and up) */
@media (min-width: 768px) {
    .cookie-consent {
        min-width: 320px;
    }

    #cookieForm {
        max-width: none;
    }

    .cookieText {
        text-align: left;
    }

    .cookieText h2 {
        font-size: 1.5rem;
        margin-bottom: 1rem;
    }
}

/* Large devices (desktops, 992px and up) */
@media (min-width: 992px) {}

/* X-Large devices (large desktops, 1200px and up) */
@media (min-width: 1200px) {}

/* XX-Large devices (larger desktops, 1400px and up) */
@media (min-width: 1400px) {}

/* Enhanced cart offcanvas only */
#cartOffcanvas .offcanvas-body {
    padding: 0;
}

/* Cart items spacing */
.cart-shop-group {
    padding-bottom: 1rem;
    border-bottom: 1px solid #dee2e6;
}

.cart-shop-group:last-child {
    border-bottom: none;
    padding-bottom: 0;
}

/* Cart badge positioning */
.cart-badge {
    font-size: 0.7rem;
    min-width: 18px;
    height: 18px;
    display: flex;
    align-items: center;
    justify-content: center;
    line-height: 1;
}

/* Responsive cart adjustments */
@media (max-width: 576px) {
    #cartOffcanvas {
        width: 100% !important;
    }
}

/* Enhanced form controls */
.form-check-input:checked {
    background-color: #e63333;
    border-color: #e63333;
}

.form-check-input:focus {
    box-shadow: 0 0 0 0.125rem rgb(230 51 51 / 0.25);
}

/* Payment Method Styles */
.payment-method-option {
    margin-bottom: 0.75rem;
}

.payment-method-option .form-check-label {
    border: 2px solid var(--bs-border-color);
    border-radius: 8px;
    padding: 1rem;
    cursor: pointer;
    transition: all 0.2s ease-in-out;
    width: 100%;
    display: flex;
    align-items: center;
}

.payment-method-option .form-check-label:hover {
    border-color: #e63333;
    background-color: var(--bs-light);
}

.payment-method-option .form-check-input:checked + .form-check-label {
    background-color: rgba(230, 51, 51, 0.1);
    border: 2px solid #e63333;
    border-radius: 8px;
    padding: 1rem;
    transition: all 0.2s ease-in-out;
}

.payment-method-option .form-check-input {
    margin-top: 0;
    margin-right: 0.75rem;
}

.payment-details {
    transition: all 0.3s ease-in-out;
}

/* Payment strategy message */
.payment-strategy-message {
    animation: fadeIn 0.3s ease-in-out;
}

@keyframes fadeIn {
    from { opacity: 0; transform: translateY(-10px); }
    to { opacity: 1; transform: translateY(0); }
}
