/**
 * Bellam Sweets - Mobile Optimization CSS
 * Comprehensive mobile-first styling for better UX
 */

/* ===== MOBILE BASE STYLES ===== */
@media (max-width: 992px) {
    :root {
        --mobile-nav-height: 60px;
        --bottom-nav-height: 65px;
    }

    html {
        -webkit-tap-highlight-color: transparent;
        -webkit-text-size-adjust: 100%;
    }

    body {
        padding-bottom: var(--bottom-nav-height);
        -webkit-overflow-scrolling: touch;
    }

    /* Hide scrollbar but allow scroll */
    body::-webkit-scrollbar {
        width: 0;
        display: none;
    }

    .container {
        padding: 0 15px;
    }
}

/* ===== MOBILE HEADER IMPROVEMENTS ===== */
@media (max-width: 992px) {
    .site-header {
        position: sticky;
        top: 0;
        z-index: 1000;
    }

    .header-main {
        padding: 10px 0;
    }

    .header-main .container {
        gap: 10px;
    }

    /* Simplified logo on mobile */
    .site-logo {
        gap: 8px;
    }

    .logo-icon {
        width: 40px !important;
        height: 40px !important;
        font-size: 20px !important;
    }

    .logo-text {
        font-size: 20px !important;
    }

    /* Header action buttons - larger touch targets */
    .header-action-btn {
        width: 44px !important;
        height: 44px !important;
        font-size: 18px !important;
    }

    .header-actions {
        gap: 8px;
    }

    /* Hide search and wishlist in header on mobile - they'll be in bottom nav */
    .header-actions > a.header-action-btn:not([href*="cart"]) {
        display: none;
    }

    .header-actions > a[href*="cart"] {
        display: flex;
    }

    /* Mobile menu toggle */
    .mobile-menu-toggle {
        display: flex !important;
        align-items: center;
        justify-content: center;
        width: 44px;
        height: 44px;
        order: -1;
    }

    /* User dropdown - simplified */
    .user-dropdown {
        display: none;
    }
}

@media (max-width: 576px) {
    .header-top-bar {
        display: none !important;
    }

    .logo-text {
        font-size: 18px !important;
    }

    .logo-icon {
        width: 36px !important;
        height: 36px !important;
        font-size: 18px !important;
    }

    .announcement-bar {
        font-size: 12px;
    }

    .announcement-bar-text {
        font-size: 12px;
        padding: 0 30px;
    }
}

/* ===== MOBILE NAVIGATION DRAWER ===== */
@media (max-width: 992px) {
    .mobile-nav {
        width: 85%;
        max-width: 320px;
        background: linear-gradient(180deg, var(--maroon) 0%, var(--maroon-dark) 100%);
    }

    .mobile-nav-header {
        padding: 20px;
        background: rgba(0,0,0,0.1);
        border-bottom: 1px solid rgba(212,175,55,0.3);
    }

    .mobile-nav-header .logo-text {
        font-size: 22px;
    }

    .mobile-nav-close {
        width: 44px;
        height: 44px;
        font-size: 20px;
    }

    /* User info section in mobile nav */
    .mobile-nav-user {
        padding: 20px;
        background: rgba(0,0,0,0.1);
        display: flex;
        align-items: center;
        gap: 15px;
        border-bottom: 1px solid rgba(212,175,55,0.2);
    }

    .mobile-nav-user-avatar {
        width: 50px;
        height: 50px;
        border-radius: 50%;
        background: var(--gold);
        display: flex;
        align-items: center;
        justify-content: center;
        font-size: 22px;
        color: var(--maroon);
        overflow: hidden;
    }

    .mobile-nav-user-avatar img {
        width: 100%;
        height: 100%;
        object-fit: cover;
    }

    .mobile-nav-user-info h4 {
        color: #fff;
        font-size: 16px;
        margin: 0 0 4px;
    }

    .mobile-nav-user-info p {
        color: rgba(255,255,255,0.7);
        font-size: 13px;
        margin: 0;
    }

    /* Mobile nav links */
    .mobile-nav-links {
        padding: 15px 0;
    }

    .mobile-nav-links a {
        display: flex;
        align-items: center;
        gap: 15px;
        padding: 16px 20px;
        font-size: 15px;
        border-bottom: 1px solid rgba(212,175,55,0.1);
        transition: all 0.2s;
    }

    .mobile-nav-links a:active {
        background: rgba(212,175,55,0.1);
    }

    .mobile-nav-links a i {
        width: 24px;
        font-size: 18px;
        color: var(--gold);
    }

    .mobile-nav-links .nav-divider {
        height: 1px;
        background: rgba(212,175,55,0.2);
        margin: 10px 20px;
    }

    /* Mobile nav badge */
    .mobile-nav-links .badge {
        margin-left: auto;
        background: #ff6b6b;
        color: #fff;
        padding: 3px 10px;
        border-radius: 12px;
        font-size: 11px;
        font-weight: 600;
    }
}

/* ===== MOBILE BOTTOM NAVIGATION ===== */
.mobile-bottom-nav {
    display: none;
    position: fixed;
    bottom: 0;
    left: 0;
    right: 0;
    height: var(--bottom-nav-height, 65px);
    background: #fff;
    box-shadow: 0 -4px 20px rgba(0,0,0,0.1);
    z-index: 1000;
    padding: 8px 0;
    padding-bottom: max(8px, env(safe-area-inset-bottom));
}

@media (max-width: 992px) {
    .mobile-bottom-nav {
        display: flex;
        justify-content: space-around;
        align-items: center;
    }
}

.bottom-nav-item {
    display: flex;
    flex-direction: column;
    align-items: center;
    justify-content: center;
    text-decoration: none;
    color: #666;
    font-size: 10px;
    font-weight: 500;
    padding: 5px 12px;
    border-radius: 10px;
    transition: all 0.2s;
    position: relative;
    min-width: 60px;
}

.bottom-nav-item i {
    font-size: 22px;
    margin-bottom: 4px;
    transition: transform 0.2s;
}

.bottom-nav-item.active,
.bottom-nav-item:active {
    color: var(--maroon);
}

.bottom-nav-item.active i {
    transform: scale(1.1);
}

.bottom-nav-item .nav-badge {
    position: absolute;
    top: 0;
    right: 5px;
    background: #ff6b6b;
    color: #fff;
    font-size: 10px;
    font-weight: 700;
    min-width: 18px;
    height: 18px;
    border-radius: 9px;
    display: flex;
    align-items: center;
    justify-content: center;
    padding: 0 5px;
}

/* Center action button (cart) */
.bottom-nav-item.center-action {
    background: linear-gradient(135deg, var(--maroon), var(--maroon-light));
    color: #fff;
    width: 56px;
    height: 56px;
    border-radius: 50%;
    margin-top: -25px;
    box-shadow: 0 4px 15px rgba(128,0,32,0.4);
}

.bottom-nav-item.center-action i {
    font-size: 24px;
    margin-bottom: 0;
}

.bottom-nav-item.center-action span {
    display: none;
}

.bottom-nav-item.center-action .nav-badge {
    top: -5px;
    right: -5px;
    background: #ff6b6b;
}

/* ===== MOBILE HERO/SLIDER ===== */
@media (max-width: 768px) {
    .skc-hero-slide {
        min-height: 280px !important;
    }

    .skc-hero-slide .container {
        padding-left: 20px !important;
        padding-right: 20px !important;
    }

    .skc-hero-content {
        padding: 20px 0 !important;
        max-width: 100% !important;
    }

    .skc-hero-content h1 {
        font-size: 24px !important;
        line-height: 1.3 !important;
        margin-bottom: 12px !important;
    }

    .skc-hero-content p {
        font-size: 14px !important;
        margin-bottom: 20px !important;
        display: -webkit-box;
        -webkit-line-clamp: 2;
        -webkit-box-orient: vertical;
        overflow: hidden;
    }

    .skc-hero-badge {
        padding: 6px 14px !important;
        font-size: 12px !important;
        margin-bottom: 12px !important;
    }

    .skc-hero-content .btn {
        padding: 12px 24px !important;
        font-size: 14px !important;
    }

    .skc-hero .swiper-pagination {
        bottom: 12px !important;
    }

    .skc-hero .swiper-pagination-bullet {
        width: 8px;
        height: 8px;
    }
}

/* ===== MOBILE CATEGORY SECTION ===== */
@media (max-width: 768px) {
    .skc-category-section {
        padding: 30px 0;
    }

    .skc-section-header {
        margin-bottom: 25px;
    }

    .skc-section-header h2 {
        font-size: 22px !important;
    }

    .skc-section-header p {
        font-size: 14px;
    }

    .skc-category-grid {
        grid-template-columns: repeat(3, 1fr) !important;
        gap: 15px !important;
    }

    .skc-category-circle {
        width: 70px !important;
        height: 70px !important;
        border-width: 2px !important;
    }

    .skc-category-name {
        font-size: 12px !important;
        margin-top: 8px;
    }
}

@media (max-width: 400px) {
    .skc-category-grid {
        grid-template-columns: repeat(3, 1fr) !important;
        gap: 10px !important;
    }

    .skc-category-circle {
        width: 60px !important;
        height: 60px !important;
    }

    .skc-category-name {
        font-size: 11px !important;
    }
}

/* ===== MOBILE PRODUCT CARDS ===== */
@media (max-width: 768px) {
    .products-grid,
    .product-grid {
        grid-template-columns: repeat(2, 1fr) !important;
        gap: 12px !important;
    }

    .product-card {
        border-radius: 12px !important;
    }

    .product-card .product-image {
        border-radius: 12px 12px 0 0 !important;
    }

    .product-card .product-info {
        padding: 12px !important;
    }

    .product-card .product-name,
    .product-card .product-title {
        font-size: 13px !important;
        line-height: 1.3 !important;
        margin-bottom: 6px !important;
        -webkit-line-clamp: 2;
    }

    .product-card .product-price,
    .product-card .price-section {
        margin-bottom: 8px !important;
    }

    .product-card .current-price,
    .product-card .sale-price {
        font-size: 16px !important;
    }

    .product-card .original-price,
    .product-card .old-price {
        font-size: 12px !important;
    }

    .product-card .btn,
    .product-card .add-to-cart-btn {
        padding: 10px 12px !important;
        font-size: 12px !important;
    }

    .product-card .btn i {
        display: none;
    }

    /* Product badges */
    .product-card .badge,
    .product-card .product-badges .badge {
        padding: 3px 8px !important;
        font-size: 10px !important;
    }

    /* Wishlist button on card */
    .product-card .wishlist-btn {
        width: 32px !important;
        height: 32px !important;
    }

    .product-card .wishlist-btn i {
        font-size: 14px !important;
    }
}

/* ===== MOBILE PRODUCT DETAIL PAGE ===== */
@media (max-width: 992px) {
    .product-detail-wrapper {
        grid-template-columns: 1fr !important;
        gap: 20px !important;
    }

    .product-gallery {
        max-width: 100% !important;
    }

    .product-gallery .main-image-wrapper {
        border-radius: 0 !important;
        margin: 0 -15px;
        width: calc(100% + 30px) !important;
    }

    .product-gallery .main-image img {
        max-height: 350px !important;
    }

    /* Product image navigation arrows */
    .main-image-slider .swiper-button-prev,
    .main-image-slider .swiper-button-next {
        width: 36px !important;
        height: 36px !important;
    }

    .main-image-slider .swiper-button-prev::after,
    .main-image-slider .swiper-button-next::after {
        font-size: 14px !important;
    }

    .main-image-slider .swiper-button-prev {
        left: 10px !important;
    }

    .main-image-slider .swiper-button-next {
        right: 10px !important;
    }

    /* Thumbnails horizontal scroll */
    .thumbnail-slider-wrapper {
        margin: 15px 0 !important;
        padding: 0 15px;
        overflow-x: auto;
        -webkit-overflow-scrolling: touch;
        scrollbar-width: none;
    }

    .thumbnail-slider-wrapper::-webkit-scrollbar {
        display: none;
    }

    .thumbnail-slider-wrapper .swiper-wrapper {
        flex-wrap: nowrap !important;
    }

    .product-gallery .thumbnail {
        width: 60px !important;
        height: 60px !important;
        min-width: 60px !important;
    }

    /* Product info */
    .product-info-detail {
        padding: 0 !important;
    }

    .product-info-detail .product-title {
        font-size: 22px !important;
        line-height: 1.3 !important;
    }

    .product-info-detail .current-price {
        font-size: 24px !important;
    }

    .product-info-detail .original-price {
        font-size: 16px !important;
    }

    /* Variants */
    .product-variants .variant-btn {
        padding: 10px 16px !important;
        font-size: 13px !important;
        min-width: 80px;
    }

    /* Quantity selector */
    .quantity-row {
        flex-wrap: wrap;
        gap: 12px !important;
    }

    .quantity-selector button {
        width: 44px !important;
        height: 44px !important;
    }

    .quantity-selector input {
        width: 60px !important;
        height: 44px !important;
        font-size: 16px !important;
    }

    /* Product buttons - sticky on mobile */
    .product-buttons {
        position: fixed;
        bottom: var(--bottom-nav-height, 65px);
        left: 0;
        right: 0;
        background: #fff;
        padding: 12px 15px !important;
        margin: 0 !important;
        box-shadow: 0 -4px 20px rgba(0,0,0,0.1);
        z-index: 99;
        display: flex !important;
        gap: 10px !important;
    }

    .product-buttons .btn-add-to-cart,
    .product-buttons .btn-buy-now {
        padding: 14px 20px !important;
        font-size: 14px !important;
    }

    /* Add padding to page to account for sticky buttons */
    .product-detail-section {
        padding-bottom: 80px !important;
    }

    /* Delivery check */
    .delivery-check {
        padding: 15px !important;
        margin: 15px 0 !important;
    }

    .delivery-check .pincode-form {
        flex-direction: column;
        gap: 10px;
    }

    .delivery-check input[type="text"] {
        max-width: 100% !important;
        width: 100%;
    }

    .delivery-check button {
        width: 100%;
    }

    /* Product tabs */
    .product-tabs .tabs-nav {
        overflow-x: auto;
        -webkit-overflow-scrolling: touch;
        scrollbar-width: none;
        flex-wrap: nowrap;
    }

    .product-tabs .tabs-nav::-webkit-scrollbar {
        display: none;
    }

    .product-tabs .tab-btn {
        padding: 12px 18px !important;
        font-size: 13px !important;
        white-space: nowrap;
        flex-shrink: 0;
    }

    /* Reviews */
    .reviews-summary {
        flex-direction: column;
        gap: 15px;
        text-align: center;
    }

    .average-rating .rating-number {
        font-size: 36px !important;
    }

    .review-item {
        padding: 15px !important;
    }

    .review-header {
        flex-direction: column;
        gap: 10px;
        align-items: flex-start !important;
    }
}

/* ===== MOBILE CART PAGE ===== */
@media (max-width: 768px) {
    .cart-container {
        display: flex;
        flex-direction: column;
        gap: 20px;
    }

    .cart-items {
        order: 1;
    }

    .cart-summary {
        order: 2;
        position: static !important;
    }

    /* Cart item card */
    .cart-item {
        display: grid;
        grid-template-columns: 90px 1fr;
        gap: 12px;
        padding: 15px;
        background: #fff;
        border-radius: 12px;
        margin-bottom: 12px;
        box-shadow: 0 2px 8px rgba(0,0,0,0.06);
    }

    .cart-item-image {
        width: 90px;
        height: 90px;
        border-radius: 8px;
        overflow: hidden;
    }

    .cart-item-image img {
        width: 100%;
        height: 100%;
        object-fit: cover;
    }

    .cart-item-details {
        display: flex;
        flex-direction: column;
        gap: 6px;
    }

    .cart-item-name {
        font-size: 14px;
        font-weight: 600;
        line-height: 1.3;
    }

    .cart-item-variant {
        font-size: 12px;
        color: #666;
    }

    .cart-item-price {
        font-size: 16px;
        font-weight: 700;
        color: var(--maroon);
    }

    .cart-item-actions {
        display: flex;
        align-items: center;
        justify-content: space-between;
        margin-top: 8px;
    }

    .cart-quantity-selector {
        display: flex;
        align-items: center;
        border: 1px solid #ddd;
        border-radius: 8px;
        overflow: hidden;
    }

    .cart-quantity-selector button {
        width: 36px;
        height: 36px;
        border: none;
        background: #f5f5f5;
        font-size: 16px;
        cursor: pointer;
    }

    .cart-quantity-selector input {
        width: 40px;
        height: 36px;
        text-align: center;
        border: none;
        border-left: 1px solid #ddd;
        border-right: 1px solid #ddd;
        font-size: 14px;
    }

    .cart-item-remove {
        color: #999;
        font-size: 18px;
        padding: 8px;
    }

    /* Cart summary */
    .cart-summary-card {
        background: #fff;
        border-radius: 12px;
        padding: 20px;
        box-shadow: 0 2px 12px rgba(0,0,0,0.08);
    }

    .cart-summary h3 {
        font-size: 18px;
        margin-bottom: 15px;
        padding-bottom: 15px;
        border-bottom: 1px solid #eee;
    }

    .cart-summary-row {
        display: flex;
        justify-content: space-between;
        padding: 10px 0;
        font-size: 14px;
    }

    .cart-summary-row.total {
        font-size: 18px;
        font-weight: 700;
        border-top: 2px solid #eee;
        margin-top: 10px;
        padding-top: 15px;
    }

    .cart-summary-row.total .amount {
        color: var(--maroon);
    }

    .cart-checkout-btn {
        width: 100%;
        padding: 16px;
        background: var(--maroon);
        color: #fff;
        border: none;
        border-radius: 10px;
        font-size: 16px;
        font-weight: 600;
        margin-top: 15px;
        cursor: pointer;
    }
}

/* ===== MOBILE CHECKOUT ===== */
@media (max-width: 768px) {
    .checkout-container {
        display: flex;
        flex-direction: column;
        gap: 20px;
    }

    .checkout-form {
        order: 1;
    }

    .checkout-summary {
        order: 2;
    }

    .checkout-section {
        background: #fff;
        border-radius: 12px;
        padding: 20px;
        margin-bottom: 15px;
    }

    .checkout-section h3 {
        font-size: 16px;
        margin-bottom: 15px;
        padding-bottom: 12px;
        border-bottom: 1px solid #eee;
    }

    /* Form elements */
    .form-group {
        margin-bottom: 15px;
    }

    .form-group label {
        display: block;
        font-size: 13px;
        font-weight: 600;
        margin-bottom: 6px;
        color: #333;
    }

    .form-control {
        width: 100%;
        padding: 14px;
        border: 1px solid #ddd;
        border-radius: 10px;
        font-size: 16px;
        -webkit-appearance: none;
    }

    .form-control:focus {
        border-color: var(--maroon);
        outline: none;
        box-shadow: 0 0 0 3px rgba(128,0,32,0.1);
    }

    select.form-control {
        background-image: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' width='12' height='12' viewBox='0 0 12 12'%3E%3Cpath fill='%23666' d='M6 8L1 3h10z'/%3E%3C/svg%3E");
        background-repeat: no-repeat;
        background-position: right 14px center;
        padding-right: 40px;
    }

    /* Payment methods */
    .payment-methods {
        display: flex;
        flex-direction: column;
        gap: 10px;
    }

    .payment-method {
        display: flex;
        align-items: center;
        gap: 12px;
        padding: 15px;
        border: 2px solid #eee;
        border-radius: 10px;
        cursor: pointer;
        transition: all 0.2s;
    }

    .payment-method.selected {
        border-color: var(--maroon);
        background: #fff8f8;
    }

    .payment-method input {
        display: none;
    }

    .payment-method-radio {
        width: 20px;
        height: 20px;
        border: 2px solid #ccc;
        border-radius: 50%;
        display: flex;
        align-items: center;
        justify-content: center;
    }

    .payment-method.selected .payment-method-radio {
        border-color: var(--maroon);
    }

    .payment-method.selected .payment-method-radio::after {
        content: '';
        width: 10px;
        height: 10px;
        background: var(--maroon);
        border-radius: 50%;
    }

    .payment-method-icon {
        width: 40px;
        height: 40px;
        background: #f5f5f5;
        border-radius: 8px;
        display: flex;
        align-items: center;
        justify-content: center;
        font-size: 18px;
        color: #666;
    }

    .payment-method-info h4 {
        font-size: 14px;
        margin: 0 0 2px;
    }

    .payment-method-info p {
        font-size: 12px;
        color: #666;
        margin: 0;
    }

    /* Place order button */
    .place-order-btn {
        width: 100%;
        padding: 18px;
        background: linear-gradient(135deg, var(--maroon), var(--maroon-light));
        color: #fff;
        border: none;
        border-radius: 12px;
        font-size: 16px;
        font-weight: 700;
        cursor: pointer;
        box-shadow: 0 4px 15px rgba(128,0,32,0.3);
    }
}

/* ===== MOBILE FORMS ===== */
@media (max-width: 768px) {
    /* Login/Register forms */
    .auth-container {
        padding: 20px;
        max-width: 100%;
    }

    .auth-card {
        padding: 25px 20px;
        border-radius: 16px;
    }

    .auth-card h1 {
        font-size: 24px;
    }

    .auth-card .form-control {
        padding: 14px;
        font-size: 16px;
    }

    .auth-card .btn {
        padding: 16px;
        font-size: 16px;
    }

    .social-login-btns {
        flex-direction: column;
    }

    .btn-google {
        width: 100%;
        justify-content: center;
    }
}

/* ===== MOBILE FOOTER ===== */
@media (max-width: 768px) {
    .site-footer {
        padding: 30px 0 20px;
        margin-bottom: var(--bottom-nav-height, 65px);
    }

    .footer-grid {
        grid-template-columns: 1fr !important;
        gap: 25px;
    }

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

    .footer-column h4 {
        font-size: 16px;
        margin-bottom: 15px;
    }

    .footer-links {
        display: flex;
        flex-wrap: wrap;
        justify-content: center;
        gap: 8px 15px;
    }

    .footer-links a {
        font-size: 13px;
    }

    .footer-social {
        justify-content: center;
    }

    .footer-bottom {
        flex-direction: column;
        gap: 15px;
        text-align: center;
        padding-top: 20px;
    }

    .payment-icons {
        justify-content: center;
    }
}

/* ===== MOBILE SEARCH ===== */
@media (max-width: 768px) {
    .search-overlay {
        padding: 15px;
    }

    .search-container {
        max-width: 100%;
    }

    .search-input-wrapper {
        flex-direction: column;
        gap: 10px;
    }

    .search-input-wrapper input {
        padding: 16px;
        font-size: 16px;
        border-radius: 12px;
    }

    .search-input-wrapper button {
        width: 100%;
        padding: 16px;
        border-radius: 12px;
    }

    .search-results {
        max-height: 60vh;
    }
}

/* ===== MOBILE BREADCRUMBS ===== */
@media (max-width: 768px) {
    .breadcrumb-section {
        padding: 10px 0;
    }

    .breadcrumb {
        font-size: 12px;
        overflow-x: auto;
        flex-wrap: nowrap;
        -webkit-overflow-scrolling: touch;
        scrollbar-width: none;
        padding-bottom: 5px;
    }

    .breadcrumb::-webkit-scrollbar {
        display: none;
    }

    .breadcrumb a,
    .breadcrumb span {
        white-space: nowrap;
    }
}

/* ===== MOBILE SECTIONS (General) ===== */
@media (max-width: 768px) {
    section {
        padding: 30px 0;
    }

    .section-header,
    .skc-section-header {
        margin-bottom: 20px;
    }

    .section-header h2,
    .skc-section-header h2 {
        font-size: 20px;
    }

    .section-header p,
    .skc-section-header p {
        font-size: 14px;
    }

    /* Related products on mobile */
    .related-products-section {
        padding: 30px 0 !important;
        margin-top: 20px !important;
    }

    .related-products-section .products-grid {
        grid-template-columns: repeat(2, 1fr) !important;
        gap: 12px !important;
    }
}

/* ===== TOUCH OPTIMIZATIONS ===== */
@media (max-width: 992px) {
    /* Larger touch targets */
    button, .btn, a.btn {
        min-height: 44px;
    }

    /* Remove hover effects on touch */
    @media (hover: none) {
        .product-card:hover {
            transform: none;
            box-shadow: 0 2px 10px rgba(0,0,0,0.08);
        }

        .product-card:hover .product-image img {
            transform: none;
        }

        .btn:hover {
            transform: none;
        }
    }

    /* Active states for touch */
    .product-card:active {
        transform: scale(0.98);
    }

    .btn:active {
        transform: scale(0.98);
        opacity: 0.9;
    }

    /* Prevent text selection during scroll */
    .products-grid,
    .thumbnail-slider-wrapper,
    .category-slider {
        -webkit-user-select: none;
        user-select: none;
    }
}

/* ===== PULL TO REFRESH INDICATOR ===== */
.pull-to-refresh {
    display: none;
    position: fixed;
    top: 0;
    left: 50%;
    transform: translateX(-50%);
    background: #fff;
    padding: 10px 20px;
    border-radius: 0 0 12px 12px;
    box-shadow: 0 4px 15px rgba(0,0,0,0.1);
    z-index: 9999;
    font-size: 13px;
    color: #666;
}

.pull-to-refresh i {
    margin-right: 8px;
    color: var(--maroon);
}

/* ===== LOADING STATES ===== */
.skeleton {
    background: linear-gradient(90deg, #f0f0f0 25%, #e0e0e0 50%, #f0f0f0 75%);
    background-size: 200% 100%;
    animation: skeleton-loading 1.5s infinite;
    border-radius: 4px;
}

@keyframes skeleton-loading {
    0% { background-position: 200% 0; }
    100% { background-position: -200% 0; }
}

/* ===== SAFE AREA (iPhone notch support) ===== */
@supports (padding: max(0px)) {
    .mobile-bottom-nav {
        padding-bottom: max(8px, env(safe-area-inset-bottom));
    }

    .product-buttons {
        padding-bottom: max(12px, calc(env(safe-area-inset-bottom) + var(--bottom-nav-height, 65px)));
    }
}

/* ===== LANDSCAPE MODE ===== */
@media (max-width: 992px) and (orientation: landscape) {
    .mobile-bottom-nav {
        height: 55px;
    }

    .bottom-nav-item {
        padding: 3px 10px;
    }

    .bottom-nav-item i {
        font-size: 18px;
        margin-bottom: 2px;
    }

    .bottom-nav-item span {
        font-size: 9px;
    }

    .bottom-nav-item.center-action {
        width: 48px;
        height: 48px;
        margin-top: -20px;
    }

    .skc-hero-slide {
        min-height: 220px !important;
    }
}
