/* Arcana IT Solutions Styles */

/* CSS Variables - Modern Tech Color Palette */
:root {
    --primary-color: #0ea5e9;
    --primary-dark: #0284c7;
    --primary-light: #38bdf8;
    --secondary-color: #0f172a;
    --secondary-light: #1e293b;
    --accent-color: #06b6d4;
    --cyan: #06b6d4;
    --text-dark: #1a1a1a;
    --text-light: #6b7280;
    --text-muted: #9ca3af;
    --bg-light: #f9fafb;
    --bg-white: #ffffff;
    --border-color: #e5e7eb;
    --shadow-sm: 0 1px 2px 0 rgba(0, 0, 0, 0.05);
    --shadow-md: 0 4px 6px -1px rgba(0, 0, 0, 0.1);
    --shadow-lg: 0 10px 15px -3px rgba(0, 0, 0, 0.1);
    --shadow-xl: 0 20px 25px -5px rgba(0, 0, 0, 0.1);
    --transition-base: all 0.3s cubic-bezier(0.4, 0, 0.2, 1);

    /* Override Bootstrap */
    --bs-primary: #0ea5e9;
    --bs-primary-rgb: 14, 165, 233;
    --bs-link-color: #0ea5e9;
    --bs-link-hover-color: #0284c7;
}

/* Global Styles */
body {
    font-family: -apple-system, BlinkMacSystemFont, 'Segoe UI', 'Roboto', 'Oxygen', 'Ubuntu', 'Cantarell', sans-serif;
    color: var(--text-dark);
    background-color: var(--bg-light);
    -webkit-font-smoothing: antialiased;
    -moz-osx-font-smoothing: grayscale;
}

/* Main content minimum height to push footer down */
main {
    min-height: calc(100vh - 400px);
}

/* Typography */
h1, h2, h3, h4, h5, h6 {
    color: var(--text-dark);
}

/* Buttons - Tech Blue Theme */
.btn-primary {
    background: linear-gradient(135deg, #0ea5e9 0%, #06b6d4 100%) !important;
    border-color: #0ea5e9 !important;
    color: #ffffff !important;
    font-weight: 600;
    padding: 0.75rem 1.5rem;
    border-radius: 0.5rem;
    transition: var(--transition-base);
}

.btn-primary:hover,
.btn-primary:focus,
.btn-primary:active {
    background: linear-gradient(135deg, #0284c7 0%, #0891b2 100%) !important;
    border-color: #0284c7 !important;
    color: #ffffff !important;
    transform: translateY(-2px);
    box-shadow: var(--shadow-lg);
}

.btn-outline-primary {
    border: 2px solid #0ea5e9 !important;
    color: #0ea5e9 !important;
    font-weight: 600;
    padding: 0.75rem 1.5rem;
    border-radius: 0.5rem;
    transition: var(--transition-base);
    background: transparent !important;
}

.btn-outline-primary:hover,
.btn-outline-primary:focus,
.btn-outline-primary:active {
    background: linear-gradient(135deg, #0ea5e9 0%, #06b6d4 100%) !important;
    color: #ffffff !important;
    transform: translateY(-2px);
    box-shadow: var(--shadow-md);
}

.btn-lg {
    padding: 1rem 2rem;
    font-size: 1.1rem;
}

.btn-sm {
    padding: 0.5rem 1rem;
    font-size: 0.875rem;
}

/* Navigation */
.navbar {
    background: var(--secondary-color) !important;
    box-shadow: var(--shadow-md);
    padding: 1rem 0;
    backdrop-filter: blur(10px);
}

.navbar-brand {
    font-size: 1.5rem;
    font-weight: 700;
    color: #ffffff !important;
    letter-spacing: 0.5px;
    transition: var(--transition-base);
}

.navbar-brand:hover {
    color: rgba(255, 255, 255, 0.8) !important;
}

.navbar-brand i {
    color: #ffffff !important;
}

.nav-link {
    color: rgba(255, 255, 255, 0.9) !important;
    font-weight: 500;
    padding: 0.5rem 1rem !important;
    transition: var(--transition-base);
    position: relative;
}

.nav-link:hover {
    color: var(--accent-color) !important;
}

.nav-link::after {
    content: '';
    position: absolute;
    bottom: 0;
    left: 50%;
    width: 0;
    height: 2px;
    background: var(--accent-color);
    transition: var(--transition-base);
    transform: translateX(-50%);
}

.nav-link:hover::after {
    width: 80%;
}

/* Search Form */
.navbar .form-control {
    background: rgba(255, 255, 255, 0.1);
    border: 1px solid rgba(255, 255, 255, 0.2);
    color: white;
    border-radius: 0.5rem;
    transition: var(--transition-base);
}

.navbar .form-control:focus {
    background: rgba(255, 255, 255, 0.15);
    border-color: #ffffff;
    color: white;
    box-shadow: 0 0 0 3px rgba(255, 255, 255, 0.1);
}

.navbar .form-control::placeholder {
    color: rgba(255, 255, 255, 0.6);
}

/* Cards - Modern Product Cards */
.card {
    border: none;
    border-radius: 1rem;
    overflow: hidden;
    background: var(--bg-white);
    box-shadow: var(--shadow-md);
    transition: var(--transition-base);
    height: 100%;
}

.card:hover {
    box-shadow: var(--shadow-xl);
}

.card-img-top {
    height: 250px;
    object-fit: cover;
    transition: var(--transition-base);
}

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

.card-body {
    padding: 1.5rem;
}

.card-title {
    font-size: 1.125rem;
    font-weight: 600;
    margin-bottom: 0.75rem;
    color: var(--text-dark);
}

.card-text {
    color: var(--text-light);
    margin-bottom: 0.75rem;
}

/* Product Card Hover Effect */
.hover-lift {
    transition: var(--transition-base);
    cursor: pointer;
}

.hover-lift:hover {
    transform: translateY(-8px);
}

/* Price Tag */
.price, .text-price {
    font-size: 1.5rem;
    color: #0ea5e9 !important;
    font-weight: 700;
}

/* Override Bootstrap text-primary */
.text-primary {
    color: #0ea5e9 !important;
}

a {
    color: #0ea5e9;
}

a:hover {
    color: #0284c7;
}

/* Badges */
.badge {
    padding: 0.5rem 1rem;
    border-radius: 0.5rem;
    font-weight: 500;
    font-size: 0.875rem;
}

.bg-secondary {
    background-color: var(--secondary-light) !important;
}

/* Hero Section */
.hero-section {
    background: linear-gradient(135deg, var(--secondary-color) 0%, var(--secondary-light) 50%, #0c4a6e 100%);
    padding: 4rem 2rem;
    border-radius: 1rem;
    position: relative;
    overflow: hidden;
}

.hero-section::before {
    content: '';
    position: absolute;
    top: 0;
    left: 0;
    right: 0;
    bottom: 0;
    background: url('data:image/svg+xml,<svg width="100" height="100" xmlns="http://www.w3.org/2000/svg"><rect fill="rgba(6,182,212,0.08)" width="50" height="50"/><rect fill="rgba(14,165,233,0.08)" x="50" y="50" width="50" height="50"/></svg>');
    opacity: 0.5;
}

.hero-section > * {
    position: relative;
    z-index: 1;
}

/* Footer */
footer {
    background: var(--secondary-color);
    color: rgba(255, 255, 255, 0.9);
}

footer h5 {
    color: #ffffff !important;
    font-weight: 600;
    margin-bottom: 1.25rem;
}

footer .bi-cpu {
    color: var(--accent-color) !important;
}

footer a {
    color: rgba(255, 255, 255, 0.7);
    text-decoration: none;
    transition: var(--transition-base);
    display: inline-block;
    margin-bottom: 0.5rem;
}

footer a:hover {
    color: var(--accent-color);
    padding-left: 0.5rem;
}

/* Alerts */
.alert {
    border: none;
    border-radius: 0.75rem;
    padding: 1rem 1.5rem;
    box-shadow: var(--shadow-sm);
}

.alert-success {
    background-color: #d1fae5;
    color: #065f46;
}

.alert-danger {
    background-color: #fee2e2;
    color: #991b1b;
}

.alert-info {
    background-color: #dbeafe;
    color: #1e40af;
}

/* Forms */
.form-control, .form-select {
    border: 1px solid var(--border-color);
    border-radius: 0.5rem;
    padding: 0.75rem 1rem;
    transition: var(--transition-base);
    background: var(--bg-white);
}

.form-control:focus, .form-select:focus {
    border-color: #0ea5e9;
    box-shadow: 0 0 0 3px rgba(14, 165, 233, 0.15);
}

.form-label {
    font-weight: 600;
    color: var(--text-dark);
    margin-bottom: 0.5rem;
}

/* List Groups */
.list-group-item {
    border: 1px solid var(--border-color);
    border-radius: 0.5rem !important;
    margin-bottom: 0.5rem;
    transition: var(--transition-base);
    background: var(--bg-white);
}

.list-group-item:hover {
    background: var(--bg-light);
    border-color: var(--primary-color);
}

.list-group-item a {
    color: var(--text-dark);
    text-decoration: none;
    font-weight: 500;
}

/* Tables */
.table {
    background: var(--bg-white);
}

.table thead th {
    background: var(--bg-light);
    border-bottom: 2px solid var(--border-color);
    font-weight: 600;
    color: var(--text-dark);
    padding: 1rem;
}

.table tbody td {
    padding: 1rem;
    vertical-align: middle;
    border-bottom: 1px solid var(--border-color);
}

/* Image Thumbnail */
.img-thumbnail {
    border: none;
    border-radius: 0.75rem;
    box-shadow: var(--shadow-sm);
}

/* Cart Badge */
#cart-badge {
    font-size: 0.7rem;
    padding: 0.25rem 0.45rem;
    background: #dc3545 !important;
    color: #ffffff !important;
    font-weight: 600;
}

/* Carousel */
.carousel-inner {
    border-radius: 1rem;
    overflow: hidden;
}

.carousel-control-prev-icon,
.carousel-control-next-icon {
    background-color: var(--secondary-color);
    border-radius: 50%;
    padding: 1.5rem;
}

/* Timeline for Order Tracking */
.timeline-item {
    position: relative;
    padding-left: 30px;
}

.timeline-item:before {
    content: '';
    position: absolute;
    left: 0;
    top: 5px;
    width: 12px;
    height: 12px;
    border-radius: 50%;
    background: var(--primary-color);
}

/* Admin Panel Styles */
.sidebar {
    min-height: 100vh;
    background: var(--secondary-color);
    box-shadow: var(--shadow-lg);
}

.sidebar .nav-link {
    color: rgba(255,255,255,0.8);
    padding: 12px 20px;
    border-radius: 0.5rem;
    margin: 0.25rem 0;
    transition: var(--transition-base);
}

.sidebar .nav-link:hover,
.sidebar .nav-link.active {
    color: white;
    background: rgba(14, 165, 233, 0.25);
}

/* Loading States */
.spinner-border {
    color: var(--primary-color);
}

/* Utility Classes */
.cursor-pointer {
    cursor: pointer;
}

.text-muted {
    color: var(--text-muted) !important;
}

.bg-gradient {
    background: linear-gradient(135deg, var(--primary-color) 0%, var(--accent-color) 100%);
}

/* Animations */
@keyframes fadeIn {
    from {
        opacity: 0;
        transform: translateY(20px);
    }
    to {
        opacity: 1;
        transform: translateY(0);
    }
}

.fade-in {
    animation: fadeIn 0.6s ease-out;
}

/* Product Page Tabs */
.nav-tabs {
    border-bottom: 2px solid var(--border-color);
}

.nav-tabs .nav-link {
    border: none;
    color: #000 !important;
    font-weight: 600;
    padding: 1rem 1.5rem !important;
    transition: var(--transition-base);
    border-bottom: 3px solid transparent;
}

.nav-tabs .nav-link:hover {
    color: #000 !important;
    border-color: transparent;
    background: transparent;
}

.nav-tabs .nav-link.active {
    color: #000 !important;
    background: transparent;
    border-color: var(--primary-color);
}

/* Breadcrumb */
.breadcrumb {
    background: transparent;
    padding: 0;
}

.breadcrumb-item + .breadcrumb-item::before {
    content: "›";
    color: var(--text-muted);
}

.breadcrumb-item a {
    color: var(--text-light);
    text-decoration: none;
    transition: var(--transition-base);
}

.breadcrumb-item a:hover {
    color: var(--primary-color);
}

.breadcrumb-item.active {
    color: var(--text-dark);
    font-weight: 600;
}

/* Cart Badge Styling */
#cart-badge {
    font-size: 0.7rem;
    padding: 0.25rem 0.45rem;
    background: #dc3545 !important;
    color: #ffffff !important;
    font-weight: 600;
}

/* Mobile Navigation Improvements */
@media (max-width: 991px) {
    .navbar-brand span {
        font-size: 1.1rem;
    }

    .navbar-collapse {
        background: var(--secondary-color);
        padding: 1rem;
        margin-top: 1rem;
        border-radius: 0.5rem;
        box-shadow: var(--shadow-lg);
    }

    .navbar-nav {
        margin-bottom: 0;
    }

    .nav-link::after {
        display: none;
    }

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

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

    .navbar .nav-link {
        padding: 0.75rem 0.5rem !important;
    }
}

/* Responsive Design */
@media (max-width: 992px) {
    .hero-section {
        padding: 3rem 1.5rem;
    }

    .nav-tabs .nav-link {
        padding: 0.75rem 1rem;
        font-size: 0.9rem;
    }

    /* Product grid on tablet - only for product cards */
    .row.g-4 > .col-md-6.col-lg-4 {
        flex: 0 0 50%;
        max-width: 50%;
    }
}

/* Ensure proper desktop layout for two-column pages */
@media (min-width: 992px) {
    #track-content > .col-lg-8 {
        flex: 0 0 66.666667%;
        max-width: 66.666667%;
    }
    #track-content > .col-lg-4 {
        flex: 0 0 33.333333%;
        max-width: 33.333333%;
    }
    #checkout-form-wrapper {
        /* Ensure checkout form stays in column */
    }
}

@media (max-width: 768px) {
    .sidebar {
        min-height: auto;
    }

    .hero-section {
        padding: 2rem 1rem;
    }

    .card-img-top {
        height: 200px;
    }

    /* Stack filters on mobile */
    .col-lg-3 {
        margin-bottom: 2rem;
    }

    /* Better spacing for mobile */
    .container {
        padding-left: 1rem;
        padding-right: 1rem;
    }

    /* Mobile product cards */
    .card-body {
        padding: 1rem;
    }

    .card-title {
        font-size: 1rem;
    }

    /* Mobile buttons */
    .btn-lg {
        padding: 0.75rem 1.5rem;
        font-size: 1rem;
    }

    /* Product detail page mobile */
    .display-4 {
        font-size: 2rem;
    }

    .display-5 {
        font-size: 1.75rem;
    }

    /* Mobile tabs */
    .nav-tabs .nav-link {
        font-size: 0.85rem;
        padding: 0.5rem 0.75rem;
    }

    .nav-tabs .nav-link i {
        display: none;
    }
}

@media (max-width: 576px) {
    .hero-section {
        padding: 1.5rem 1rem;
    }

    /* Ensure 2-column product grid on mobile */
    .row.g-4 > .col-6,
    .row.g-3 > .col-6 {
        flex: 0 0 50% !important;
        max-width: 50% !important;
        padding-left: 0.5rem;
        padding-right: 0.5rem;
    }

    /* Tighter gutter on mobile */
    .row.g-4 {
        --bs-gutter-x: 1rem;
    }

    /* Mobile typography */
    h1, .h2 {
        font-size: 1.5rem;
    }

    h2, h4 {
        font-size: 1.25rem;
    }

    h3 {
        font-size: 1.1rem;
    }

    .display-3 {
        font-size: 1.75rem;
    }

    .h3 {
        font-size: 1.25rem;
    }

    /* Smaller product images on mobile */
    .col-6 .bg-light img {
        height: 120px !important;
    }

    .col-6 h6 {
        font-size: 0.85rem;
    }

    .col-6 .btn-sm {
        font-size: 0.75rem;
        padding: 0.4rem 0.5rem;
    }

    /* Product detail mobile */
    .col-lg-5 .bg-light img {
        max-height: 250px !important;
    }

    /* Stack product detail on mobile */
    .col-lg-7 {
        padding-top: 1rem;
    }

    /* Sidebar mobile */
    .col-lg-3 h6 {
        font-size: 0.9rem;
    }

    .col-lg-3 .list-unstyled li {
        font-size: 0.9rem;
    }

    /* Mobile spacing */
    .py-4 {
        padding-top: 1.5rem !important;
        padding-bottom: 1.5rem !important;
    }

    .mb-5 {
        margin-bottom: 2rem !important;
    }

    /* Mobile cart */
    .table {
        font-size: 0.875rem;
    }

    .table td,
    .table th {
        padding: 0.5rem;
    }

    /* Hide less important columns on mobile */
    .table .d-none-mobile {
        display: none;
    }

    /* Stack cart summary on mobile */
    .sticky-top {
        position: relative !important;
        top: 0 !important;
    }

    /* Mobile footer */
    footer {
        text-align: center;
    }

    footer .col-lg-2,
    footer .col-lg-3,
    footer .col-lg-4 {
        margin-bottom: 2rem;
    }

    /* Touch-friendly buttons */
    .btn {
        min-height: 44px;
        touch-action: manipulation;
    }

    /* Mobile product page - stack columns */
    .row.g-5 > .col-lg-5,
    .row.g-5 > .col-lg-7 {
        flex: 0 0 100%;
        max-width: 100%;
    }

    /* Mobile description section - only for product detail */
    .row.mt-5.pt-4 > .col-lg-8,
    .row.mt-5.pt-4 > .col-lg-4 {
        flex: 0 0 100%;
        max-width: 100%;
    }

    /* Mobile checkout/cart - stack columns */
    #checkout-row > .col-lg-7,
    #checkout-row > .col-lg-5,
    #cart-row > .col-lg-8,
    #cart-row > .col-lg-4 {
        flex: 0 0 100%;
        max-width: 100%;
    }


    /* Ensure proper stacking */
    .row.g-5 {
        --bs-gutter-y: 1.5rem;
    }

    /* Mobile border-top spacing */
    .border-top.pt-4 {
        padding-top: 1rem !important;
        margin-top: 1rem !important;
    }

    /* Mobile key info */
    .row.g-3.text-muted.small {
        flex-direction: column;
    }

    .row.g-3.text-muted.small .col-auto {
        margin-bottom: 0.5rem;
    }

    /* Larger tap targets */
    .nav-link {
        padding: 0.75rem 1rem !important;
        min-height: 44px;
    }

    /* Mobile breadcrumb */
    .breadcrumb {
        font-size: 0.875rem;
        flex-wrap: wrap;
    }

    /* Mobile product images */
    .carousel-inner {
        border-radius: 0.5rem;
    }

    /* Responsive tables */
    .table-responsive {
        border-radius: 0.5rem;
    }
}

/* Checkout Page Styles */
.payment-option {
    cursor: pointer;
    transition: all 0.3s ease;
    border: 2px solid #dee2e6 !important;
}

.payment-option:hover {
    background-color: rgba(14, 165, 233, 0.05);
    border-color: #0ea5e9 !important;
    transform: translateY(-2px);
    box-shadow: 0 4px 8px rgba(0,0,0,0.1);
}

.payment-option input[type="radio"]:checked ~ label {
    color: inherit;
}

.payment-option:has(input[type="radio"]:checked) {
    background-color: rgba(14, 165, 233, 0.08);
    border-color: #0ea5e9 !important;
    box-shadow: 0 2px 8px rgba(14, 165, 233, 0.2);
}

.form-control:focus,
.form-select:focus,
textarea.form-control:focus {
    border-color: #0ea5e9;
    box-shadow: 0 0 0 0.25rem rgba(14, 165, 233, 0.15);
}

/* Checkout page styling */
.bg-primary {
    background: linear-gradient(135deg, #0ea5e9 0%, #06b6d4 100%) !important;
}

.border-primary {
    border-color: #0ea5e9 !important;
}

/* Checkout Page Layout */
#checkout-form-wrapper .card-body {
    padding: 1rem;
}

#checkout-form-wrapper .card {
    margin-bottom: 0.75rem;
}

/* Payment Option Styling */
.payment-option {
    cursor: pointer;
    transition: all 0.2s ease;
}

.payment-option:hover {
    background-color: rgba(14, 165, 233, 0.05);
    border-color: #0ea5e9 !important;
}

.payment-option:has(input[type="radio"]:checked) {
    background-color: rgba(14, 165, 233, 0.08);
    border-color: #0ea5e9 !important;
}

/* Desktop sticky sidebar */
@media (min-width: 992px) {
    .position-lg-sticky {
        position: sticky !important;
    }
}

/* Bank Upload Section */
#bank-upload-section {
    animation: slideDown 0.3s ease;
}

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

#bank-upload-section .form-control[type="file"] {
    cursor: pointer;
}

#bank-upload-section .form-control[type="file"]:hover {
    border-color: var(--primary-color);
}

/* Cart & Checkout Page - Desktop Only Sticky */
@media (min-width: 992px) {
    .cart-summary-sticky,
    .checkout-summary-sticky {
        position: sticky;
        top: 20px;
    }
}

/* Cart & Checkout Page - Mobile Responsive */
@media (max-width: 991px) {
    /* Mobile cart card spacing */
    .card.shadow-sm {
        margin-bottom: 1rem !important;
    }

    /* Cart item layout - stack on mobile */
    .card-body .row.align-items-center {
        text-align: left;
    }

    /* Product image on mobile */
    .card-body .col-auto img,
    .card-body .col-auto > div {
        width: 80px !important;
        height: 80px !important;
    }

    /* Quantity controls - full width on mobile */
    .card-body .col-12.col-sm-auto:has(.input-group) {
        display: flex;
        justify-content: flex-start;
    }

    .card-body .input-group {
        max-width: 140px !important;
    }

    /* Mobile cart buttons */
    .card-body .input-group button {
        padding: 0.5rem 0.75rem;
        font-size: 1rem;
    }

    .card-body .input-group input {
        font-size: 1rem;
        padding: 0.5rem;
    }

    /* Summary sidebar - goes on top on mobile */
    .col-lg-4 .position-sticky {
        position: static !important;
        margin-bottom: 2rem;
        top: 0 !important;
    }

    /* Order items to show summary first on mobile */
    .row.g-4 {
        display: flex;
        flex-direction: column-reverse;
    }

    /* Full-width buttons on mobile */
    .checkout-summary-sticky .btn-lg {
        font-size: 1.1rem;
        padding: 0.875rem 1.25rem !important;
    }

    /* Checkout form inputs - larger touch targets */
    .form-control,
    .form-select,
    textarea.form-control {
        font-size: 1rem;
        padding: 0.75rem;
        min-height: 48px;
    }

    /* Form labels */
    .form-label {
        font-weight: 600;
        margin-bottom: 0.5rem;
        font-size: 0.95rem;
    }

    /* Radio buttons - larger clickable area */
    .form-check.border {
        padding: 1rem !important;
        margin-bottom: 0.75rem !important;
        cursor: pointer;
    }

    .form-check-input {
        width: 1.35rem;
        height: 1.35rem;
        margin-top: 0;
        cursor: pointer;
    }

    .form-check-label {
        margin-left: 0.75rem;
        cursor: pointer;
        width: 100%;
    }

    /* Payment method icons */
    .form-check i {
        font-size: 1.75rem !important;
    }
}

@media (max-width: 576px) {
    /* Extra small devices */
    .container {
        padding-left: 0.75rem;
        padding-right: 0.75rem;
    }

    /* Cart product image smaller on very small screens */
    .card-body .col-auto img,
    .card-body .col-auto > div {
        width: 70px !important;
        height: 70px !important;
    }

    /* Mobile product name smaller */
    .card-body h6 {
        font-size: 0.9rem;
        line-height: 1.3;
    }

    /* Cart prices on mobile */
    .card-body .fs-5 {
        font-size: 1rem !important;
    }

    .card-body .fs-4 {
        font-size: 1.25rem !important;
    }

    /* Remove button full width on very small screens */
    .card-body .btn-sm {
        width: 100%;
        margin-top: 0.5rem;
    }

    /* Smaller trust badge icons */
    .fs-3 {
        font-size: 1.5rem !important;
    }

    /* Checkout page headings */
    .card-header h5 {
        font-size: 1rem;
    }

    .card-header i {
        font-size: 0.9rem;
    }

    /* Action buttons stack on mobile */
    .d-flex.gap-2.flex-wrap a {
        flex: 1 1 100%;
    }

    /* Checkout cards on mobile */
    .card.shadow-sm .card-body,
    .card.shadow-lg .card-body {
        padding: 1.25rem !important;
    }

    /* Checkout section headings on mobile */
    .card h5 {
        font-size: 1.1rem;
    }

    .card h5 i {
        font-size: 1rem;
    }
}

/* Landscape mobile */
@media (max-width: 896px) and (orientation: landscape) {
    .hero-section {
        padding: 2rem 1rem;
    }

    .navbar {
        padding: 0.5rem 0;
    }
}

/* High DPI screens */
@media (-webkit-min-device-pixel-ratio: 2), (min-resolution: 192dpi) {
    .card-img-top,
    .carousel-item img {
        image-rendering: -webkit-optimize-contrast;
    }
}

/* Accessibility - Reduced motion */
@media (prefers-reduced-motion: reduce) {
    *,
    *::before,
    *::after {
        animation-duration: 0.01ms !important;
        animation-iteration-count: 1 !important;
        transition-duration: 0.01ms !important;
    }
}
