/* ═══════════════════════════════════════════════════════════════════
   MOBILE OPTIMIZATIONS FOR LOVEMENOW
   ═══════════════════════════════════════════════════════════════════ */

/* ═══════════════════════════════════════════════════════════════════
   MOBILE NAVBAR IMPROVEMENTS
   ═══════════════════════════════════════════════════════════════════ */

/* Mobile Menu Toggle Button Styles */
.mobile-menu-toggle {
    display: none;
    flex-direction: column;
    justify-content: space-around;
    width: 30px;
    height: 30px;
    background: transparent;
    border: none;
    cursor: pointer;
    padding: 0;
    z-index: 10002;
}

.mobile-menu-toggle span {
    display: block;
    height: 3px;
    width: 100%;
    background: hsl(var(--text-color));
    border-radius: 3px;
    opacity: 1;
    left: 0;
    transform: rotate(0deg);
    transition: .25s ease-in-out;
}

.mobile-menu-toggle.active span:nth-child(1) {
    top: 9px;
    transform: rotate(135deg);
}

.mobile-menu-toggle.active span:nth-child(2) {
    opacity: 0;
    left: -60px;
}

.mobile-menu-toggle.active span:nth-child(3) {
    top: 9px;
    transform: rotate(-135deg);
}

/* Mobile Navigation Overlay */
.mobile-nav-overlay {
    position: fixed;
    top: 0;
    left: 0;
    width: 100%;
    height: 100vh;
    background: linear-gradient(135deg, rgba(0, 0, 0, 0.95), rgba(20, 20, 30, 0.95));
    backdrop-filter: blur(15px);
    z-index: 10001;
    display: none;
    opacity: 0;
    transition: opacity 0.3s ease;
}

.mobile-nav-overlay.active {
    display: flex;
    opacity: 1;
    animation: fadeIn 0.3s ease-out;
}

@keyframes fadeIn {
    from {
        opacity: 0;
        backdrop-filter: blur(0px);
    }
    to {
        opacity: 1;
        backdrop-filter: blur(15px);
    }
}

.mobile-nav-content {
    display: flex;
    flex-direction: column;
    justify-content: flex-start;
    align-items: center;
    width: 100%;
    height: 100%;
    padding: 2rem 1.5rem;
    position: relative;
    transform: translateY(20px);
    opacity: 0;
    transition: all 0.3s ease-out;
}

.mobile-nav-overlay.active .mobile-nav-content {
    transform: translateY(0);
    opacity: 1;
    animation: slideInUp 0.4s ease-out 0.1s both;
}

@keyframes slideInUp {
    from {
        transform: translateY(30px);
        opacity: 0;
    }
    to {
        transform: translateY(0);
        opacity: 1;
    }
}

/* Mobile Menu Header with Close Button */
.mobile-nav-header {
    display: flex;
    justify-content: space-between;
    align-items: center;
    width: 100%;
    margin-bottom: 3rem;
    padding: 0 1rem;
}

.mobile-nav-header h3 {
    color: white;
    font-size: 1.6rem;
    font-weight: 700;
    margin: 0;
    text-shadow: 0 2px 4px rgba(0, 0, 0, 0.3);
}

.mobile-nav-close {
    background: rgba(255, 255, 255, 0.1);
    border: 1px solid rgba(255, 255, 255, 0.2);
    color: white;
    font-size: 1.8rem;
    font-weight: 300;
    cursor: pointer;
    padding: 0.5rem;
    width: 44px;
    height: 44px;
    display: flex;
    align-items: center;
    justify-content: center;
    border-radius: 12px;
    transition: all 0.3s ease;
    line-height: 1;
    backdrop-filter: blur(10px);
}

.mobile-nav-close:hover {
    background: rgba(255, 255, 255, 0.2);
    border-color: rgba(255, 255, 255, 0.3);
    transform: scale(1.05);
}

.mobile-nav-close:active {
    transform: scale(0.95);
}

.mobile-nav-links {
    display: flex;
    flex-direction: column;
    gap: 1rem;
    list-style: none;
    margin: 0;
    padding: 0;
    text-align: center;
    flex: 1;
    justify-content: center;
    width: 100%;
    max-width: 350px;
}

.mobile-nav-links .nav-link {
    color: white;
    text-decoration: none;
    font-size: 1.4rem;
    font-weight: 600;
    padding: 1.2rem 2.5rem;
    border-radius: 12px;
    transition: all 0.3s ease;
    min-height: 56px; /* Increased touch target */
    display: flex;
    align-items: center;
    justify-content: center;
    width: 100%;
    background: rgba(255, 255, 255, 0.08);
    border: 1px solid rgba(255, 255, 255, 0.12);
    backdrop-filter: blur(10px);
    box-shadow: 0 4px 15px rgba(0, 0, 0, 0.1);
    opacity: 0;
    transform: translateX(-20px);
    animation: slideInLeft 0.4s ease-out forwards;
}

/* Staggered animation for nav links */
.mobile-nav-overlay.active .mobile-nav-links .nav-link:nth-child(1) {
    animation-delay: 0.2s;
}

.mobile-nav-overlay.active .mobile-nav-links .nav-link:nth-child(2) {
    animation-delay: 0.3s;
}

.mobile-nav-overlay.active .mobile-nav-links .nav-link:nth-child(3) {
    animation-delay: 0.4s;
}

.mobile-nav-overlay.active .mobile-nav-links .nav-link:nth-child(4) {
    animation-delay: 0.5s;
}

.mobile-nav-overlay.active .mobile-nav-links .nav-link:nth-child(5) {
    animation-delay: 0.6s;
}

@keyframes slideInLeft {
    from {
        opacity: 0;
        transform: translateX(-20px);
    }
    to {
        opacity: 1;
        transform: translateX(0);
    }
}

.mobile-nav-links .nav-link:hover,
.mobile-nav-links .nav-link.active {
    background: linear-gradient(135deg, hsl(var(--primary-color)), hsl(var(--accent-color)));
    color: white;
    transform: translateY(-2px);
    box-shadow: 0 8px 25px rgba(0, 0, 0, 0.2);
    border-color: rgba(255, 255, 255, 0.2);
}

.mobile-nav-links .nav-link:active {
    transform: translateY(0);
    transition: transform 0.1s ease;
}

.mobile-nav-actions {
    margin-top: 1.5rem;
    display: flex;
    flex-direction: column;
    gap: 0.8rem;
    width: 100%;
    max-width: 350px;
}

.mobile-nav-actions .btn {
    width: 100%;
    padding: 1.1rem 1.5rem;
    font-size: 1.1rem;
    font-weight: 600;
    min-height: 52px; /* Increased touch target */
    border-radius: 12px;
    transition: all 0.3s ease;
    display: flex;
    align-items: center;
    justify-content: center;
    gap: 0.5rem;
    opacity: 0;
    transform: translateY(20px);
    animation: slideInUp 0.4s ease-out forwards;
}

/* Staggered animation for action buttons */
.mobile-nav-overlay.active .mobile-nav-actions .btn:nth-child(1) {
    animation-delay: 0.7s;
}

.mobile-nav-overlay.active .mobile-nav-actions .btn:nth-child(2) {
    animation-delay: 0.8s;
}

mobile-nav-overlay.active .mobile-nav-actions .btn:nth-child(3) {
    animation-delay: 0.9s;
}

.mobile-nav-actions .btn-outline {
    background: rgba(255, 255, 255, 0.08);
    border: 1px solid rgba(255, 255, 255, 0.2);
    color: white;
    backdrop-filter: blur(10px);
    box-shadow: 0 4px 15px rgba(0, 0, 0, 0.1);
}

.mobile-nav-actions .btn-outline:hover {
    background: rgba(255, 255, 255, 0.15);
    border-color: rgba(255, 255, 255, 0.3);
    transform: translateY(-2px);
    box-shadow: 0 8px 25px rgba(0, 0, 0, 0.2);
}

.mobile-nav-actions .btn-primary {
    background: linear-gradient(135deg, hsl(var(--primary-color)), hsl(var(--accent-color)));
    border: none;
    color: white;
    box-shadow: 0 4px 15px rgba(0, 0, 0, 0.1);
}

.mobile-nav-actions .btn-primary:hover {
    transform: translateY(-2px);
    box-shadow: 0 8px 25px rgba(0, 0, 0, 0.2);
}

/* ═══════════════════════════════════════════════════════════════════
   MOBILE RESPONSIVE BREAKPOINTS
   ═══════════════════════════════════════════════════════════════════ */

/* Tablet and below */
@media (max-width: 992px) {
    .navbar-container {
        padding: 0.75rem 1rem;
    }

    .navbar-brand {
        font-size: 1.25rem;
    }

    .nav-links {
        gap: 1.5rem;
    }

    .nav-link {
        font-size: 0.9rem;
    }
}

/* Mobile devices */
@media (max-width: 768px) {
    .mobile-menu-toggle {
        display: flex !important;
    }

    .navbar-center {
        display: none !important;
    }

    .navbar-container {
        flex-wrap: nowrap;
        justify-content: space-between;
    }

    .navbar-actions {
        gap: 0.5rem;
        flex-shrink: 0;
    }

    .nav-buttons {
        gap: 0.5rem;
        flex-shrink: 0;
    }

    .nav-buttons .btn {
        padding: 0.5rem 0.75rem;
        font-size: 0.85rem;
        white-space: nowrap;
    }

    /* Hide Sign Up button on mobile - it's in the hamburger menu */
    .nav-buttons .btn:not(.nav-icon-btn) {
        display: none !important;
    }

    .nav-icon-btn {
        width: 44px; /* iOS minimum touch target */
        height: 44px;
        display: flex;
        align-items: center;
        justify-content: center;
        flex-shrink: 0;
    }

    .navbar-brand {
        font-size: 1.1rem;
        flex-shrink: 0;
    }

    .logo-icon {
        width: 24px;
        height: 24px;
    }
}

/* Small mobile devices */
@media (max-width: 480px) {
    .navbar-container {
        padding: 0.5rem 0.75rem;
    }

    .navbar-brand {
        font-size: 0.9rem;
        gap: 0.4rem;
    }

    .logo-icon {
        width: 18px;
        height: 18px;
    }

    .nav-buttons {
        gap: 0.25rem;
    }

    .nav-buttons .btn {
        padding: 0.4rem 0.6rem;
        font-size: 0.75rem;
        min-width: auto;
    }

    .nav-icon-btn {
        width: 38px;
        height: 38px;
    }

    .icon-badge {
        font-size: 0.65rem;
        min-width: 14px;
        height: 14px;
        line-height: 14px;
        top: -6px;
        right: -6px;
    }

    .mobile-menu-toggle {
        width: 28px;
        height: 28px;
    }

    .mobile-menu-toggle span {
        height: 2px;
    }

    /* Mobile menu adjustments for small screens */
    .mobile-nav-content {
        padding: 1.5rem 1rem;
    }

    .mobile-nav-links .nav-link {
        font-size: 1.2rem;
        padding: 1rem 2rem;
        min-height: 50px;
    }

    .mobile-nav-actions .btn {
        padding: 1rem 1.2rem;
        font-size: 1rem;
        min-height: 48px;
    }

    .mobile-nav-header h3 {
        font-size: 1.4rem;
    }
}

/* Extra small mobile devices */
@media (max-width: 360px) {
    .navbar-container {
        padding: 0.4rem 0.5rem;
    }

    .navbar-brand {
        font-size: 0.85rem;
        gap: 0.3rem;
    }

    .navbar-brand .brand-text {
        display: none; /* Hide "LoveMeNow" text on very small screens */
    }

    .logo-icon {
        width: 16px;
        height: 16px;
    }

    .nav-buttons .btn {
        padding: 0.3rem 0.5rem;
        font-size: 0.7rem;
    }

    .nav-icon-btn {
        width: 36px;
        height: 36px;
    }

    .mobile-menu-toggle {
        width: 26px;
        height: 26px;
    }

    /* Mobile menu adjustments for extra small screens */
    .mobile-nav-content {
        padding: 1.2rem 0.8rem;
    }

    .mobile-nav-links {
        max-width: 320px;
    }

    .mobile-nav-links .nav-link {
        font-size: 1.1rem;
        padding: 0.9rem 1.8rem;
        min-height: 46px;
    }

    .mobile-nav-actions {
        max-width: 320px;
    }

    .mobile-nav-actions .btn {
        padding: 0.9rem 1rem;
        font-size: 0.95rem;
        min-height: 44px;
    }

    .mobile-nav-header h3 {
        font-size: 1.3rem;
    }
}

/* ═══════════════════════════════════════════════════════════════════
   MOBILE HERO SECTION IMPROVEMENTS
   ═══════════════════════════════════════════════════════════════════ */

@media (max-width: 768px) {
    .hero {
        padding: 4rem 0 3rem;
        min-height: 60vh;
    }

    .hero-content h1 {
        font-size: 2.5rem;
        line-height: 1.2;
        margin-bottom: 1rem;
    }

    .hero-content .lead {
        font-size: 1rem;
        line-height: 1.5;
        margin-bottom: 2rem;
    }

    .btn-lg {
        padding: 1rem 2rem;
        font-size: 1rem;
        min-height: 44px;
    }
}

@media (max-width: 480px) {
    .hero {
        padding: 3rem 0 2rem;
        min-height: 50vh;
    }

    .hero-content h1 {
        font-size: 2rem;
        line-height: 1.1;
    }

    .hero-content .lead {
        font-size: 0.9rem;
        margin-bottom: 1.5rem;
    }

    .container {
        padding: 0 0.75rem;
    }
}

/* ═══════════════════════════════════════════════════════════════════
   MOBILE MIAMI SERVICE SECTION IMPROVEMENTS
   ═══════════════════════════════════════════════════════════════════ */

@media (max-width: 768px) {
    .miami-service-section {
        padding: 3rem 0;
    }

    .service-features {
        gap: 1.5rem;
    }

    .service-feature {
        padding: 1.5rem;
        text-align: center;
    }

    .feature-icon {
        margin-bottom: 1rem;
    }

    .feature-icon i {
        font-size: 2rem;
    }

    .service-feature h3 {
        font-size: 1.1rem;
        margin-bottom: 0.5rem;
    }

    .service-feature p {
        font-size: 0.9rem;
        line-height: 1.4;
    }

    .miami-cta {
        margin-top: 2rem;
        gap: 1rem;
    }

    .miami-cta .btn {
        width: 100%;
        justify-content: center;
        min-height: 44px;
    }

    .btn-coverage-link {
        width: 100%;
        text-align: center;
        padding: 0.75rem;
        min-height: 44px;
        display: flex;
        align-items: center;
        justify-content: center;
    }
}

@media (max-width: 480px) {
    .miami-service-section {
        padding: 2rem 0;
    }

    .miami-info h2 {
        font-size: 1.75rem;
        line-height: 1.2;
    }

    .miami-description {
        font-size: 0.9rem;
        line-height: 1.5;
    }

    .service-badge {
        padding: 0.5rem 1rem;
        font-size: 0.8rem;
    }

    .service-feature {
        padding: 1rem;
    }

    .feature-icon i {
        font-size: 1.75rem;
    }
}

/* ═══════════════════════════════════════════════════════════════════
   MOBILE PRODUCT GRID IMPROVEMENTS
   ═══════════════════════════════════════════════════════════════════ */

@media (max-width: 768px) {
    .product-grid {
        grid-template-columns: repeat(auto-fit, minmax(250px, 1fr));
        gap: 1.5rem;
        margin-top: 1.5rem;
    }

    .product-card {
        padding: 1rem;
    }

    .product-card h3 {
        font-size: 1rem;
        line-height: 1.3;
    }

    .product-card .price {
        font-size: 1.1rem;
    }

    .product-card .btn {
        width: 100%;
        justify-content: center;
        min-height: 44px;
    }
}

@media (max-width: 480px) {
    .product-grid {
        grid-template-columns: 1fr;
        gap: 1rem;
        max-width: 350px;
        margin: 1rem auto 0;
    }

    .product-card {
        max-width: 100%;
    }
}

/* ═══════════════════════════════════════════════════════════════════
   MOBILE FORM IMPROVEMENTS
   ═══════════════════════════════════════════════════════════════════ */

@media (max-width: 768px) {
    .modal-content {
        margin: 1rem;
        max-width: calc(100% - 2rem);
        max-height: calc(100vh - 2rem);
        overflow-y: auto;
    }

    .form-group input,
    .form-group select,
    .form-group textarea {
        min-height: 44px;
        font-size: 16px; /* Prevents zoom on iOS */
        padding: 0.75rem;
    }

    .btn {
        min-height: 44px;
        font-size: 1rem;
    }

    .modal-header h2 {
        font-size: 1.25rem;
    }
}

/* ═══════════════════════════════════════════════════════════════════
   MOBILE TOUCH IMPROVEMENTS
   ═══════════════════════════════════════════════════════════════════ */

@media (max-width: 768px) {
    button,
    .btn,
    a.btn,
    input[type="button"],
    input[type="submit"],
    .nav-link,
    .nav-icon-btn {
        min-height: 44px;
        min-width: 44px;
    }

    .icon-badge {
        min-width: 20px;
        height: 20px;
        line-height: 20px;
    }

    .product-card {
        padding: 0.3rem;
    }

    .service-feature {
        padding: 1.5rem;
    }
}

/* ═══════════════════════════════════════════════════════════════════
   MOBILE ACCESSIBILITY IMPROVEMENTS
   ═══════════════════════════════════════════════════════════════════ */

@media (max-width: 768px) {
    button:focus,
    .btn:focus,
    input:focus,
    select:focus,
    textarea:focus {
        outline: 2px solid hsl(var(--primary-color));
        outline-offset: 2px;
    }

    body {
        font-size: 16px;
        line-height: 1.6;
    }

    h1, h2, h3, h4, h5, h6 {
        line-height: 1.2;
    }

    .text-muted {
        color: hsl(var(--muted-color));
        opacity: 0.9;
    }
}

/* ═══════════════════════════════════════════════════════════════════
   MOBILE PERFORMANCE OPTIMIZATIONS
   ═══════════════════════════════════════════════════════════════════ */

@media (max-width: 768px) {
    .hero-content,
    .fade-in-up,
    .slide-in-left,
    .slide-in-right {
        animation-duration: 0.3s;
    }

    .btn:hover,
    .product-card:hover,
    .service-feature:hover {
        transform: none;
    }

    .product-card,
    .service-feature,
    .modal-content {
        box-shadow: var(--shadow-sm);
    }
}

/* ═══════════════════════════════════════════════════════════════════
   MOBILE LANDSCAPE ORIENTATION
   ═══════════════════════════════════════════════════════════════════ */

@media (max-width: 768px) and (orientation: landscape) {
    .hero {
        padding: 2rem 0;
        min-height: 40vh;
    }

    .hero-content h1 {
        font-size: 2rem;
    }

    .miami-service-section {
        padding: 2rem 0;
    }

    .mobile-nav-content {
        padding: 1rem;
    }

    .mobile-nav-links {
        gap: 1rem;
    }

    .mobile-nav-links .nav-link {
        font-size: 1.2rem;
        padding: 0.75rem 1.5rem;
    }
}

/* ═══════════════════════════════════════════════════════════════════
   MOBILE CART & CHECKOUT OPTIMIZATIONS
   ═══════════════════════════════════════════════════════════════════ */

@media (max-width: 768px) {
    .cart-content {
        grid-template-columns: 1fr !important;
        gap: 2rem !important;
    }

    .cart-item {
        flex-direction: column !important;
        align-items: flex-start !important;
        gap: 1rem !important;
    }

    .cart-item-image {
        width: 100% !important;
        max-width: 200px !important;
        align-self: center !important;
    }

    .cart-item-details {
        width: 100% !important;
        text-align: center !important;
    }

    .cart-item-actions {
        width: 100% !important;
        justify-content: center !important;
        flex-wrap: wrap !important;
        gap: 1rem !important;
    }

    .quantity-controls {
        justify-content: center !important;
    }

    .cart-summary {
        order: -1 !important;
        margin-bottom: 2rem !important;
    }

    .cart-container {
        padding: 0 0.5rem !important;
        margin: 1rem auto !important;
    }

    .cart-header h1 {
        font-size: 2rem !important;
        margin-bottom: 1rem !important;
    }

    .cart-items {
        padding: 1rem !important;
        margin-bottom: 1.5rem !important;
    }

    .cart-item-name {
        font-size: 1rem !important;
        line-height: 1.3 !important;
    }

    .cart-item-price {
        font-size: 1.1rem !important;
        font-weight: 600 !important;
    }

    .empty-cart {
        padding: 2rem 1rem !important;
        text-align: center !important;
    }

    .empty-cart h3 {
        font-size: 1.5rem !important;
        margin-bottom: 1rem !important;
    }

    .empty-cart p {
        font-size: 0.9rem !important;
        margin-bottom: 1.5rem !important;
    }

    .checkout-container {
        padding: 0 1rem !important;
        margin: 1rem auto !important;
    }

    .checkout-header {
        padding: 1.5rem !important;
        margin-bottom: 2rem !important;
    }

    .checkout-header h1 {
        font-size: 2rem !important;
    }

    #stripe-container {
        padding: 1rem !important;
    }

    .loading-spinner {
        padding: 2rem 1rem !important;
    }

    .error-message {
        padding: 1.5rem !important;
        margin: 1rem !important;
    }

    .auth-panels {
        flex-direction: column !important;
    }

    .login-panel {
        display: none !important;
    }

    .mobile-register-link {
        display: none !important;
    }

    .mobile-signin-link,
    .mobile-register-link {
        display: block !important;
        text-align: center !important;
        margin-top: 1.5rem !important;
        padding-top: 1.5rem !important;
        border-top: 1px solid hsl(var(--border-color)) !important;
    }

    .mobile-signin-link p,
    .mobile-register-link p {
        margin: 0 !important;
        color: hsl(var(--text-color-muted)) !important;
    }

    .mobile-signin-link a,
    .mobile-register-link a {
        color: hsl(var(--primary-color)) !important;
        text-decoration: none !important;
        font-weight: 600 !important;
    }

    .mobile-signin-link a:hover,
    .mobile-register-link a:hover {
        text-decoration: underline !important;
    }
}

/* ═══════════════════════════════════════════════════════════════════
   AGE VERIFICATION MOBILE OPTIMIZATIONS
   ═══════════════════════════════════════════════════════════════════ */

@media (max-width: 768px) {
    .age-verification-overlay {
        padding: 1rem;
        align-items: center;
        justify-content: center;
    }

    .age-verification-modal {
        width: 95%;
        max-width: 350px;
        padding: 1.5rem;
        margin: 0 auto;
        border-radius: var(--radius-md);
    }

    .age-verification-modal h2 {
        font-size: 1.5rem;
        margin-bottom: 1rem;
    }

    .age-verification-modal p {
        font-size: 0.9rem;
        line-height: 1.4;
        margin-bottom: 1.5rem;
    }

    .age-verification-buttons {
        display: flex;
        flex-direction: column;
        gap: 0.75rem;
        width: 100%;
    }

    .age-verification-buttons .btn {
        width: 100%;
        padding: 0.75rem 1rem;
        font-size: 1rem;
        border-radius: var(--radius-md);
    }

    .age-verification-icon {
        font-size: 2rem !important;
        margin-bottom: 0.75rem !important;
    }
}

/* ═══════════════════════════════════════════════════════════════════
   PRODUCT CARD WISHLIST – DESKTOP STYLES (keep original)
   ═══════════════════════════════════════════════════════════════════ */

.product-card {
    position: relative;
}

/* ═══════════════════════════════════════════════════════════════════
   PRODUCT CARDS – MOBILE ONLY (kept)
   ═══════════════════════════════════════════════════════════════════ */

@media (max-width: 768px) {
    /* 2 columns on mobile */
    .product-grid {
        grid-template-columns: repeat(2, 1fr) !important;
        gap: 1rem !important;
    }

    /* Smaller card styling */
    .product-card {
        border-radius: 8px;
    }

    .product-card-slideshow {
        padding-bottom: 100% !important;
    }

    .product-info {
        padding: 0.8rem !important;
    }

    .product-title {
        font-size: 0.85rem !important;
        margin: 0.3rem 0 !important;
        line-height: 1.25 !important;
    }

    .product-price {
        font-size: 0.95rem !important;
        margin-top: 0.5rem !important;
        font-weight: 600;
    }

    .product-category {
        font-size: 0.7rem !important;
        margin-bottom: 0.4rem !important;
    }

    /* Buttons in a row - now just add to cart */
    .product-buttons {
        display: flex !important;
        flex-direction: row !important;
        width: 100% !important;
        margin-top: 0.6rem !important;
        align-items: center !important;
    }

    .btn-add-cart {
        width: 100% !important;
        padding: 0.7rem 1rem !important;
        font-size: 0.85rem !important;
        min-height: 44px !important;
        height: auto !important;
        display: flex !important;
        align-items: center !important;
        justify-content: center !important;
        gap: 0.5rem !important;
        white-space: normal !important;
        overflow: visible !important;
        text-overflow: clip !important;
        flex-wrap: wrap !important;
        height: 52px;
    }

    .btn-add-cart svg {
        flex-shrink: 0;
        width: 18px !important;
        height: 18px !important;
    }

    /* Wishlist button positioned at top-right of card */
    .product-card-wishlist {
        position: absolute;
        top: 0.5rem;
        right: 0.5rem;
        width: 40px !important;
        height: 40px !important;
        padding: 0 !important;
        display: flex !important;
        align-items: center !important;
        justify-content: center !important;
        border-radius: 50% !important;
        background: transparent;
        border: none;
        cursor: pointer;
        z-index: 10;
        transition: all 0.2s ease;
        color: hsl(var(--primary-color));
    }

    .product-card-wishlist:hover {
        transform: scale(1.1);
    }

    .product-card-wishlist:active {
        transform: scale(0.95);
    }

    .product-card-wishlist.liked {
        color: hsl(var(--primary-color));
    }

    .product-card-wishlist.liked svg {
        fill: hsl(var(--primary-color));
        stroke: hsl(var(--primary-color));
    }

    .product-card-wishlist svg {
        width: 20px !important;
        height: 20px !important;
        flex-shrink: 0;
    }

    /* Ensure product card is relatively positioned for absolute wishlist button */
    .product-card {
        position: relative;
    }
}

/* ═══════════════════════════════════════════════════════════════════
   FINAL OVERRIDES — MAKE MOBILE MATCH DESKTOP PROPORTIONS
   (No desktop impact; last-on-purpose so it wins)
   ═══════════════════════════════════════════════════════════════════ */

/* Ensure two-up even under 480px and remove the 1fr rule above */
@media (max-width: 480px){
  .product-grid{
    grid-template-columns: repeat(2, minmax(0,1fr)) !important;
    max-width: none !important;
    margin: 0 !important;
  }
}

/* Kill any white backdrops and keep images contained */
@media (max-width: 768px){
  .product-card .product-image,
  .product-card-slideshow{
    background: transparent !important;
    aspect-ratio: 1 / 1;
    padding: 0 !important;
    overflow: hidden;
    border-radius: 10px;
  }
  .product-slide{
    position: absolute; inset: 0;
    width: 100%; height: 100%;
    object-fit: contain !important;
  }

  /* Fix for checkout: ensure order summary doesn't cover product images */
  .order-summary {
    z-index: 100 !important;
    top: auto !important;
    position: relative !important;
  }
}


@media (max-width: 600px) {
    .btn-text {
        font-size: 10px;
    }
}


/* MOBILE: show full product names (no ellipsis, wrap to as many lines as needed) */
@media (max-width: 768px){
  .product-card .product-title,
  .product-card .product-title a{
    white-space: normal !important;
    overflow: visible !important;
    text-overflow: clip !important;
    display: block !important;
    /* kill any old clamping */
    -webkit-line-clamp: unset !important;
    -webkit-box-orient: unset !important;
    /* wrap long tokens nicely */
    word-break: break-word;
    overflow-wrap: anywhere;
  }

  /* optional: tighten spacing a touch so long names feel tidy */
  .product-card .product-title{ margin: 0.35rem 0 0.25rem !important; line-height: 1.25 !important; }
}

/* ═══════════════════════════════════════════════════════════════════
   DESKTOP-ONLY FIX — WISHLIST BUTTON STYLE & POSITION
   (Keeps mobile perfect; removes white bg on desktop)
   ═══════════════════════════════════════════════════════════════════ */

/* DESKTOP — wishlist fixed + space for it */
@media (min-width: 769px) {
  .product-card { position: relative; }

  /* Reserve room so the heart doesn't overlap the Add to Cart bar */
  .product-card .product-buttons {
    position: relative;
    padding-right: 50px !important; /* ≈ 56px pill + gap */
  }

  /* Wishlist pill: glass look, bottom-right overlay */
  .product-card .product-card-wishlist {
    position: absolute !important;
    right: 0.75rem !important;
    bottom: 0.75rem !important;
    width: 56px !important;
    height: 52px !important;
    padding: 0 !important;
    border-radius: 16px !important;
    display: inline-flex !important;
    align-items: center !important;
    justify-content: center !important;

    background: rgba(255, 255, 255, 0.08) !important;
    border: 1px solid rgba(255, 255, 255, 0.18) !important;
    backdrop-filter: blur(6px);
    box-shadow: 0 4px 20px rgba(0,0,0,.20);

    color: hsl(var(--text-color)) !important;
    z-index: 5
  }

  /* In case global .btn styles force a white bg */
  .product-card .product-card-wishlist.btn,
  .product-card .product-card-wishlist.button {
    background: rgba(255, 255, 255, 0.08) !important;
    border: 1px solid rgba(255, 255, 255, 0.18) !important;
    box-shadow: 0 4px 20px rgba(0,0,0,.20) !important;
  }
}


  .product-card .product-card-wishlist:hover {
    transform: translateY(-1px);
    box-shadow: 0 6px 24px rgba(0,0,0,.24);
  }

  .product-card .product-card-wishlist:active {
    transform: translateY(0);
  }

  .product-card .product-card-wishlist svg {
    width: 22px !important;
    height: 22px !important;
    stroke: currentColor;
    fill: transparent;
  }

  .product-card .product-card-wishlist.liked svg {
    fill: hsl(var(--primary-color));
    stroke: hsl(var(--primary-color));
  }

  /* If a row version exists inside .product-buttons, force it to overlay as well
     so it doesn’t sit between the image and name. */
  .product-buttons .product-card-wishlist {
    position: absolute !important;
    right: 0.75rem !important;
    bottom: 0.75rem !important;
  }
}
