/* Complete Responsive Styles for Crema Helados */

/* Price text - lighter black */
.cake_text h4,
.cake_text .h4 {
    color: #4a4a4a !important;
}

/* Icons - brand pink color */
.cake_text .fa,
.text-primary,
.contact_d_item .fa,
.s_we_item .fa {
    color: var(--primary-color) !important;
}

/* Large Desktop */
@media (max-width: 1399px) {
    .hero_text h1 {
        font-size: 2.8rem;
    }
}

/* Desktop */
@media (max-width: 1199px) {
    body {
        padding-top: 120px;
    }
    
    .hero_text h1 {
        font-size: 2.5rem;
    }
    
    .hero_bento_area {
        padding: 130px 0 80px;
    }
    
    .cake_img img {
        height: 220px;
    }
    
    .navbar .nav-link {
        padding: 0.6rem 0.8rem !important;
    }
}

/* Tablet */
@media (max-width: 991px) {
    body {
        padding-top: 110px;
    }
    
    .top_header_area {
        padding: 6px 0;
    }
    
    .top_header_area a {
        font-size: 12px;
    }
    
    .hero_bento_area {
        padding: 120px 0 60px;
        margin-top: 0;
    }
    
    .hero_text {
        text-align: center;
        margin-bottom: 40px;
    }
    
    .hero_text h1 {
        font-size: 2.2rem;
    }
    
    .hero_img_container {
        margin-top: 30px;
    }
    
    .hero_buttons {
        justify-content: center;
    }
    
    .cake_feature_row .col-lg-3,
    .product_item_inner .col-lg-4 {
        width: 50%;
        flex: 0 0 50%;
        max-width: 50%;
    }
    
    .cake_img img {
        height: 200px;
    }
    
    .left_sidebar_area {
        position: static !important;
        margin-bottom: 30px;
    }
    
    .product_area {
        padding: 100px 0 60px;
    }
    
    .product_details_area {
        padding: 100px 0 60px;
    }
    
    .welcome_bakery_area {
        padding: 60px 0;
    }
    
    .service_we_offer_area {
        padding: 60px 0;
    }
    
    .contact_form_area {
        padding: 60px 0;
    }
    
    .navbar-collapse {
        background: #fff;
        padding: 15px;
        margin-top: 10px;
        border-radius: 10px;
        box-shadow: 0 10px 30px rgba(0,0,0,0.15);
        max-height: 70vh;
        overflow-y: auto;
    }
    
    .navbar .nav-link {
        padding: 0.8rem 1rem !important;
        border-bottom: 1px solid #eee;
    }
    
    .navbar .nav-link:last-child {
        border-bottom: none;
    }
    
    .navbar .dropdown-menu {
        box-shadow: none;
        padding: 0 0 0 20px;
        background: #f8f8f8;
        border-radius: 5px;
    }
    
    .navbar .dropdown-item {
        padding: 0.5rem 1rem;
    }
    
    .float-promo {
        bottom: 20px;
        right: 20px;
        padding: 12px 20px;
        font-size: 0.9rem;
    }
}

/* Mobile */
@media (max-width: 767px) {
    body {
        padding-top: 100px;
    }
    
    .top_header_area {
        text-align: center;
    }
    
    .top_header_area .text-lg-start,
    .top_header_area .text-lg-end {
        text-align: center !important;
    }
    
    .hero_bento_area {
        padding: 90px 0 40px;
    }
    
    .hero_text h1 {
        font-size: 1.8rem;
    }
    
    .hero_text p {
        font-size: 1rem !important;
    }
    
    .hero_img_container {
        max-width: 300px;
        margin: 0 auto;
    }
    
    .main_title h2,
    .main_title h1 {
        font-size: 1.8rem;
    }
    
    .cake_feature_row .col-lg-3,
    .product_item_inner .col-lg-4 {
        width: 100%;
        flex: 0 0 100%;
        max-width: 100%;
    }
    
    .cake_img img {
        height: 180px;
    }
    
    .cake_text {
        padding: 15px;
    }
    
    .cake_text h4 {
        font-size: 1.3rem;
    }
    
    .cake_text h3 {
        font-size: 0.9rem;
    }
    
    .product_area {
        padding: 80px 0 40px;
    }
    
    .product_details_area {
        padding: 80px 0 40px;
    }
    
    .product_d_price .col-lg-3,
    .product_d_price .col-lg-4,
    .product_d_price .col-lg-5 {
        width: 100%;
        flex: 0 0 100%;
        max-width: 100%;
        margin-bottom: 20px;
    }
    
    .product_img img {
        max-height: 300px;
        object-fit: contain;
    }
    
    .contact_form_area .col-lg-7,
    .contact_form_area .col-lg-4 {
        width: 100%;
        flex: 0 0 100%;
        max-width: 100%;
    }
    
    .contact_form_area .offset-md-1 {
        margin-left: 0;
        margin-top: 30px;
    }
    
    iframe {
        max-height: 300px;
    }
    
    .welcome_bakery_area {
        padding: 40px 0;
    }
    
    .service_we_offer_area {
        padding: 40px 0;
    }
    
    .contact_form_area {
        padding: 40px 0;
    }
    
    .footer_area {
        padding: 20px 0;
    }
    
    .float-promo {
        bottom: 15px;
        right: 15px;
        padding: 10px 18px;
        font-size: 0.85rem;
    }
    
    .pest_btn {
        padding: 8px 18px;
        font-size: 0.85rem;
        display: block;
        width: 100%;
        text-align: center;
        margin-bottom: 8px;
    }
    
    .hero_buttons .pest_btn {
        width: auto;
        display: inline-block;
        margin-bottom: 0;
    }
    
    .form-agregar-carrito .pest_btn {
        width: 100%;
        margin-bottom: 5px;
    }
    
    .quantity_box {
        display: flex;
        flex-wrap: wrap;
        align-items: center;
        gap: 10px;
    }
    
    .quantity_box label {
        width: 100%;
    }
    
    .quantity_box .qty {
        width: 60px;
    }
}

/* Small Mobile */
@media (max-width: 575px) {
    body {
        padding-top: 90px;
    }
    
    .top_header_area {
        padding: 5px 0;
    }
    
    .top_header_area a {
        font-size: 11px;
    }
    
    .navbar-brand img {
        max-height: 50px !important;
    }
    
    .hero_bento_area {
        padding: 80px 0 30px;
    }
    
    .hero_text h1 {
        font-size: 1.5rem;
    }
    
    .main_title h2,
    .main_title h1 {
        font-size: 1.5rem;
    }
    
    .cake_feature_item {
        margin-bottom: 15px;
    }
    
    .cake_img img {
        height: 160px;
    }
    
    .cake_text {
        padding: 12px;
    }
    
    .cake_text h4 {
        font-size: 1.2rem;
    }
    
    .s_we_item {
        padding: 20px;
    }
    
    .contact_d_item {
        text-align: center;
    }
    
    .product_details_text h1 {
        font-size: 1.5rem;
    }
    
    .product_details_text h2 {
        font-size: 1.3rem;
    }
    
    .modal-dialog {
        margin: 10px;
    }
    
    .float-promo {
        padding: 8px 15px;
        font-size: 0.8rem;
    }
    
    .breadcrumb {
        font-size: 0.85rem;
    }
}

/* 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;
        scroll-behavior: auto !important;
    }
}

/* ===================================================================
   TIENDA REDESIGN RESPONSIVE
   =================================================================== */

@media (max-width: 1199px) {
    .store-hero-title { font-size: 2.5rem; }
    .cat-card { min-height: 200px; padding: 32px 16px 28px; }
    .cat-card-icon { font-size: 2.4rem; }
    .cat-card-title { font-size: 1.1rem; }
}

@media (max-width: 991px) {
    .store-section { padding: 30px 0 60px; }
    .store-hero { padding: 40px 20px; margin-bottom: 35px; }
    .store-hero-title { font-size: 2rem; }
    .store-hero-sub { font-size: 1rem; }
    .cat-card { min-height: 180px; padding: 28px 14px 24px; }
    .cat-card-icon { font-size: 2.2rem; }
    .product-card-img { aspect-ratio: 3 / 4; }
    .group-card-inner { min-height: 140px; padding: 28px 16px 24px; }
}

@media (max-width: 767px) {
    .store-section { padding: 20px 0 40px; }
    .store-hero { padding: 30px 16px; margin-bottom: 28px; }
    .store-hero-title { font-size: 1.6rem; }
    .store-hero-sub { font-size: 0.9rem; }
    .store-section-title { font-size: 1.5rem; }
    .cat-card { min-height: 160px; padding: 24px 12px 20px; }
    .cat-card-icon { font-size: 2rem; margin-bottom: 12px; }
    .cat-card-title { font-size: 1rem; }
    .product-card-img { aspect-ratio: 3 / 4; }
    .product-card-body { padding: 14px 14px 16px; }
    .product-card-price { font-size: 1.2rem; }
    .group-card-inner { min-height: 120px; padding: 24px 14px 20px; }
    .group-card-title { font-size: 1rem; }
    .group-card-icon { font-size: 1.8rem; }
    .breadcrumb-crema { font-size: 0.8rem; margin-bottom: 12px; }
    .store-section .nav-pills .nav-link { padding: 6px 14px; font-size: 0.8rem; }
}

@media (max-width: 575px) {
    .store-hero-title { font-size: 1.4rem; }
    .store-hero-sub { font-size: 0.85rem; }
    .cat-card { min-height: 140px; padding: 20px 10px 16px; border-radius: 16px; }
    .cat-card-icon { font-size: 1.6rem; margin-bottom: 8px; }
    .cat-card-title { font-size: 0.9rem; }
    .cat-card-count { font-size: 0.7rem; padding: 3px 10px; }
    .store-section-title { font-size: 1.3rem; }
    .product-card-img { aspect-ratio: 2 / 3; }
    .product-card-body { padding: 12px 12px 14px; }
    .product-card-price { font-size: 1.1rem; }
    .group-card-inner { min-height: 100px; padding: 20px 12px 16px; border-radius: 14px; }
    .group-card-title { font-size: 0.9rem; }
    .group-card-icon { font-size: 1.5rem; margin-bottom: 8px; }
    .store-subsection-title { font-size: 1.1rem; }
}

/* Print Styles */
@media print {
    .main_header_area,
    .float-promo,
    .footer_area,
    .modal,
    .btn {
        display: none !important;
    }
    
    body {
        padding-top: 0;
    }
}

/* Landscape orientation on mobile */
@media (max-height: 500px) and (orientation: landscape) {
    body {
        padding-top: 70px;
    }
    
    .hero_bento_area {
        padding: 70px 0 30px;
    }
    
    .hero_text h1 {
        font-size: 1.5rem;
    }
}

/* ========================= */
/* ADMIN PANEL RESPONSIVE    */
/* ========================= */

.admin-content {
    padding: 20px 15px;
    min-height: calc(100vh - 100px);
}

@media (max-width: 991px) {
    .admin-content {
        padding: 15px 10px;
    }
}

@media (max-width: 767px) {
    .admin-content {
        padding: 15px 10px;
    }
    
    .stats-card {
        padding: 15px;
    }
    
    .stats-card h3 {
        font-size: 1.5rem;
    }
    
    .table {
        font-size: 0.85rem;
    }
    
    .table td,
    .table th {
        padding: 0.5rem;
    }
    
    .badge {
        font-size: 0.75rem;
    }
    
    .btn-sm {
        padding: 0.25rem 0.5rem;
        font-size: 0.75rem;
    }
}

@media (max-width: 575px) {
    .stats-card {
        padding: 12px;
    }
    
    .stats-card h3 {
        font-size: 1.3rem;
    }
    
    .stats-card p {
        font-size: 0.8rem;
    }
    
    .modal-dialog {
        margin: 0.5rem;
    }
}

/* ========================= */
/* CLIENT PANEL RESPONSIVE   */
/* ========================= */

.user-panel {
    padding: 20px 15px;
}

.user-panel .stats-card {
    padding: 15px;
}

.user-panel .stats-card h3 {
    font-size: 1.5rem;
}

.user-panel .stats-card i {
    font-size: 1.5rem;
}

@media (max-width: 767px) {
    .user-panel {
        padding: 15px 10px;
    }
    
    .user-panel .stats-card {
        padding: 12px;
    }
    
    .user-panel .stats-card h3 {
        font-size: 1.3rem;
    }
    
    .rewards-card,
    .favorite-flavor,
    .promo-card {
        padding: 15px;
    }
}

@media (max-width: 575px) {
    .rewards-card .row .col-4 {
        padding: 5px;
    }
}

/* Extra Small Mobile */
@media (max-width: 400px) {
    .cake_feature_item .cake_img img { height: 140px; }
    .hero-content h1 { font-size: 22px; }
    .product_d_price { font-size: 1.2rem; }
    .table { font-size: 0.75rem; }
    .btn { font-size: 0.8rem; }
    .modal-dialog { margin: 5px; }
}
