/* ==================== MOBILE RESPONSIVE STYLES ==================== */
/* Diamond Theme - Mobile Responsive CSS */
/* This file contains ONLY media queries for mobile screens */
/* Desktop styles remain unchanged in style.css */

/* ==================== MOBILE MENU OVERLAY ==================== */
.mobile-menu-overlay {
    position: fixed;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    background: rgba(0, 0, 0, 0.5);
    z-index: 9998;
    opacity: 0;
    visibility: hidden;
    transition: all 0.3s ease;
}

.mobile-menu-overlay.active {
    opacity: 1;
    visibility: visible;
}

/* Mobile Menu Drawer */
.mobile-nav-drawer {
    position: fixed;
    top: 0;
    left: -300px;
    width: 300px;
    height: 100%;
    background: var(--white);
    z-index: 9999;
    overflow-y: auto;
    transition: left 0.3s ease;
    box-shadow: 2px 0 20px rgba(0, 0, 0, 0.1);
}

.mobile-nav-drawer.active {
    left: 0;
}

.mobile-nav-header {
    display: flex;
    justify-content: space-between;
    align-items: center;
    padding: 20px;
    border-bottom: 1px solid var(--border-color);
    background: var(--cream);
}

.mobile-nav-header .mobile-logo {
    font-size: 1.2rem;
    font-weight: 700;
    color: var(--gold);
}

.mobile-nav-close {
    width: 40px;
    height: 40px;
    border: none;
    background: transparent;
    font-size: 1.5rem;
    cursor: pointer;
    color: var(--text-primary);
}

.mobile-nav-menu {
    list-style: none;
    padding: 0;
    margin: 0;
}

.mobile-nav-menu li {
    border-bottom: 1px solid var(--border-color);
}

.mobile-nav-menu a {
    display: flex;
    align-items: center;
    gap: 12px;
    padding: 16px 20px;
    color: var(--text-primary);
    text-decoration: none;
    font-size: 0.95rem;
    transition: background 0.2s ease;
}

.mobile-nav-menu a i {
    width: 20px;
    color: var(--gold);
}

.mobile-nav-menu a:hover {
    background: var(--cream);
}

.mobile-nav-footer {
    padding: 20px;
    border-top: 1px solid var(--border-color);
    background: var(--cream);
}

.mobile-nav-footer a {
    display: block;
    padding: 10px 0;
    color: var(--text-secondary);
    font-size: 0.85rem;
}

/* Hamburger Button */
.mobile-menu-btn {
    display: none;
    width: 44px;
    height: 44px;
    border: none;
    background: transparent;
    cursor: pointer;
    flex-direction: column;
    justify-content: center;
    align-items: center;
    gap: 5px;
}

.mobile-menu-btn span {
    display: block;
    width: 24px;
    height: 2px;
    background: var(--text-primary);
    transition: all 0.3s ease;
}

/* ==================== TABLET STYLES (max-width: 992px) ==================== */
@media (max-width: 992px) {

    /* Hide desktop navigation */
    .nav {
        display: none;
    }

    /* Show hamburger button */
    .mobile-menu-btn {
        display: flex;
    }

    /* Header layout adjustments */
    .header-main {
        flex-wrap: wrap;
        gap: 15px;
    }

    .search-box {
        order: 3;
        flex: 1 1 100%;
        max-width: 100%;
    }

    .search-box input {
        width: 100%;
    }

    /* Hero section */
    .hero {
        height: 450px;
    }

    .hero-content h2 {
        font-size: 2rem;
    }

    .hero-content p {
        font-size: 1rem;
    }

    /* Product grids */
    .product-grid-new {
        grid-template-columns: repeat(3, 1fr);
    }

    .grid-3 {
        grid-template-columns: repeat(2, 1fr);
    }

    .grid-4 {
        grid-template-columns: repeat(2, 1fr);
    }

    /* Category slider */
    .category-icon-item {
        min-width: 100px;
    }

    .category-icon-circle {
        width: 70px;
        height: 70px;
    }

    /* Wedding grid */
    .wedding-grid {
        gap: 15px;
    }

    .wedding-edit-card.featured {
        height: 350px;
    }

    /* Savings Section */
    .savings-v3-container {
        padding: 30px;
    }

    .savings-v3-content {
        padding-right: 20px;
    }

    /* Virtual Try-On */
    .tryon-wrapper {
        flex-direction: column;
        gap: 40px;
    }

    .tryon-image-col,
    .tryon-content-col {
        max-width: 100%;
    }
}

/* ==================== MOBILE STYLES (max-width: 768px) ==================== */
@media (max-width: 768px) {

    /* Top Bar - Hide or condense */
    .top-bar {
        display: none;
    }

    /* Header */
    .header {
        padding: 10px 0;
    }

    .header-main {
        gap: 10px;
    }

    .logo h1 {
        font-size: 1.3rem;
    }

    .logo span {
        font-size: 0.55rem;
    }

    .logo img {
        max-width: 130px;
        height: auto;
    }

    /* Header Actions */
    .header-actions {
        gap: 12px;
    }

    .header-action span {
        display: none;
    }

    .header-action i {
        font-size: 1.3rem;
    }

    /* Search box adjustments */
    .search-box {
        margin: 10px 0 0 0;
    }

    .search-box input {
        padding: 10px 50px 10px 15px;
        font-size: 0.9rem;
    }

    /* Hero Section */
    .hero {
        height: 350px;
        border-radius: 0;
        margin: 0;
    }

    .hero-slide {
        border-radius: 0;
    }

    .hero-slide img {
        border-radius: 0;
    }

    .hero-content {
        left: 5%;
        right: 5%;
        bottom: 30px;
        padding: 20px;
    }

    .hero-content h2 {
        font-size: 1.5rem;
        margin-bottom: 8px;
    }

    .hero-content p {
        font-size: 0.875rem;
        margin-bottom: 15px;
        display: -webkit-box;
        -webkit-line-clamp: 2;
        -webkit-box-orient: vertical;
        line-clamp: 2;
        overflow: hidden;
    }

    .hero-content .btn {
        padding: 10px 20px;
        font-size: 0.75rem;
    }

    .hero-controls {
        bottom: 15px;
    }

    .hero-dot {
        width: 8px;
        height: 8px;
    }

    /* Sections */
    .section {
        padding: 40px 0;
    }

    .section-sm {
        padding: 25px 0;
    }

    .section-title {
        font-size: 1.5rem !important;
    }

    .section-subtitle {
        font-size: 0.875rem;
    }

    /* Container */
    .container {
        padding: 0 15px;
    }

    /* Category Slider */
    .category-slider-wrapper {
        margin: 0 -15px;
        padding: 0 15px;
    }

    .category-icon-item {
        min-width: 85px;
    }

    .category-icon-circle {
        width: 60px;
        height: 60px;
    }

    .category-icon-item h4 {
        font-size: 0.7rem;
    }

    .slider-arrow {
        display: none;
    }

    /* Product Grids - 2 columns */
    .product-grid-new {
        grid-template-columns: repeat(2, 1fr);
        gap: 12px;
    }

    .product-card-new {
        border-radius: 8px;
    }

    .product-content h3 {
        font-size: 0.8rem;
    }

    .product-weight {
        font-size: 0.7rem;
    }

    .current-price {
        font-size: 0.9rem;
    }

    .old-price {
        font-size: 0.7rem;
    }

    .wishlist-btn {
        width: 28px;
        height: 28px;
        font-size: 0.8rem;
    }

    /* Featured Grid */
    .featured-grid {
        gap: 12px;
    }

    .featured-banner-card {
        height: 180px;
    }

    .banner-overlay-content h3 {
        font-size: 1.1rem;
    }

    .banner-overlay-content p {
        font-size: 0.75rem;
    }

    /* Trend Grid */
    .trend-grid {
        grid-template-columns: 1fr;
        gap: 15px;
    }

    .trend-card {
        height: 250px;
    }

    .trend-content h3 {
        font-size: 1.2rem;
    }

    /* Grid layouts - single column */
    .grid-3,
    .grid-4 {
        grid-template-columns: 1fr;
        gap: 15px;
    }

    /* Wedding Edit */
    .wedding-grid {
        grid-template-columns: 1fr;
        gap: 12px;
    }

    .wedding-edit-card,
    .wedding-edit-card.featured {
        height: 200px;
    }

    .wedding-content h3 {
        font-size: 1rem;
    }

    /* Savings Section */
    .savings-v3-section {
        padding: 30px 0;
    }

    .investment-tabs {
        flex-direction: column;
        gap: 8px;
    }

    .investment-tab-btn {
        width: 100%;
        padding: 12px;
    }

    .savings-v3-container {
        flex-direction: column;
        padding: 20px;
    }

    .savings-v3-content {
        padding: 0;
    }

    .savings-v3-title {
        font-size: 1.5rem;
    }

    .savings-v3-steps {
        flex-direction: column;
        gap: 15px;
    }

    .savings-v3-visual {
        display: none;
    }

    .savings-v3-actions {
        flex-direction: column;
        align-items: stretch;
    }

    .btn-v3-primary {
        text-align: center;
    }

    /* Featured Showcase */
    .featured-showcase {
        grid-template-columns: 1fr 1fr;
        grid-template-rows: auto;
        gap: 10px;
    }

    .featured-item.large {
        grid-column: span 2;
        height: 200px;
    }

    .featured-item:not(.large) {
        height: 150px;
    }

    /* Gifting Grid */
    .gifting-grid {
        grid-template-columns: 1fr 1fr;
        gap: 10px;
    }

    .gift-card.main {
        grid-column: span 2;
        height: 180px;
    }

    .gift-card:not(.main) {
        height: 130px;
    }

    /* Collection Grid */
    .collection-grid {
        grid-template-columns: repeat(2, 1fr);
        gap: 10px;
    }

    .collection-card {
        height: 180px;
    }

    /* Virtual Try-On */
    .virtual-tryon-section {
        padding: 40px 0;
    }

    .tryon-wrapper {
        flex-direction: column;
        gap: 30px;
    }

    .tryon-image-frame {
        height: 250px;
    }

    .tryon-title {
        font-size: 1.5rem;
    }

    .tryon-features {
        flex-direction: column;
    }

    .app-buttons {
        flex-direction: column;
        gap: 10px;
    }

    .app-btn {
        justify-content: center;
    }

    /* Video Section */
    .video-section-redesigned {
        height: 400px;
    }

    .video-title {
        font-size: 1.8rem;
    }

    .video-desc {
        font-size: 0.9rem;
    }

    .play-btn-large {
        width: 70px;
        height: 70px;
        font-size: 1.5rem;
    }

    /* Testimonials */
    .testimonial-card {
        padding: 20px;
    }

    .testimonial-text {
        font-size: 0.9rem;
    }

    /* Blog Cards */
    .blog-card .blog-image {
        height: 160px;
    }

    .blog-content h3 {
        font-size: 1rem;
    }

    /* Assurance Items */
    .assurance-item {
        text-align: center;
    }

    .assurance-icon {
        width: 50px;
        height: 50px;
        margin: 0 auto 10px;
    }

    .assurance-item h3 {
        font-size: 0.9rem;
    }

    /* Footer adjustments */
    .footer-grid {
        grid-template-columns: 1fr;
        gap: 30px;
    }

    .footer-column h4 {
        font-size: 1rem;
    }

    .footer-bottom {
        flex-direction: column;
        gap: 15px;
        text-align: center;
    }

    /* Buttons */
    .btn {
        padding: 12px 24px;
        font-size: 0.8rem;
    }

    .btn-outline {
        padding: 10px 20px;
    }
}

/* ==================== SMALL MOBILE (max-width: 576px) ==================== */
@media (max-width: 576px) {

    /* Header */
    .logo h1 {
        font-size: 1.1rem;
    }

    /* Hero */
    .hero {
        height: 280px;
    }

    .hero-content h2 {
        font-size: 1.2rem;
    }

    .hero-content p {
        display: none;
    }

    .hero-content .btn {
        padding: 8px 16px;
        font-size: 0.7rem;
    }

    /* Category */
    .category-icon-circle {
        width: 50px;
        height: 50px;
    }

    .category-icon-circle img {
        width: 28px;
        height: 28px;
    }

    .category-icon-item h4 {
        font-size: 0.65rem;
    }

    /* Product Grid */
    .product-grid-new {
        gap: 8px;
    }

    .product-content {
        padding: 8px;
    }

    .product-content h3 {
        font-size: 0.75rem;
    }

    .product-footer {
        flex-direction: column;
        align-items: flex-start;
        gap: 8px;
    }

    .add-to-cart-btn {
        display: none;
    }

    /* Mobile Filter Button for Jewellery Page */
    .mobile-filter-btn {
        display: flex !important;
        align-items: center;
        justify-content: center;
        gap: 8px;
        width: 100%;
        padding: 12px;
        background: var(--cream);
        border: 1px solid var(--border-color);
        color: var(--text-primary);
        font-family: var(--font-primary);
        font-size: 1rem;
        margin-bottom: 20px;
        border-radius: var(--theme-radius);
        cursor: pointer;
    }

    /* Off-canvas Sidebar for Jewellery Page */
    .premium-sidebar {
        position: fixed !important;
        top: 0 !important;
        left: -100% !important;
        width: 300px !important;
        max-width: 85vw !important;
        height: 100vh !important;
        background: var(--white) !important;
        z-index: 9999 !important;
        margin-bottom: 0;
        border-right: none;
        border-bottom: none;
        padding: 20px;
        padding-top: 60px;
        transition: left 0.3s ease !important;
        overflow-y: auto;
        box-shadow: 2px 0 12px rgba(0, 0, 0, 0.15);
    }

    .premium-sidebar.active {
        left: 0 !important;
    }

    .sidebar-close {
        display: block !important;
        position: absolute;
        top: 15px;
        right: 15px;
        background: none;
        border: none;
        font-size: 1.5rem;
        color: var(--text-primary);
        cursor: pointer;
    }

    /* Force 2 products per row on mobile listing */
    .premium-product-grid {
        grid-template-columns: repeat(2, 1fr) !important;
        gap: 10px !important;
    }

    /* Section Titles */
    .section-title {
        font-size: 1.25rem !important;
    }

    /* Savings */
    .savings-v3-pills {
        flex-direction: column;
        gap: 8px;
    }

    .savings-v3-badge {
        font-size: 0.75rem;
    }

    /* Collection Grid */
    .collection-grid {
        grid-template-columns: 1fr;
    }

    /* Video Section */
    .video-section-redesigned {
        height: 300px;
    }

    .video-title {
        font-size: 1.4rem;
    }

    .video-play-box {
        margin-top: 20px;
    }

    .play-btn-large {
        width: 60px;
        height: 60px;
        font-size: 1.2rem;
    }
}

/* ==================== TOUCH DEVICE OPTIMIZATIONS ==================== */
@media (hover: none) and (pointer: coarse) {

    /* Increase tap targets */
    .header-action {
        min-width: 44px;
        min-height: 44px;
    }

    .nav-link {
        padding: 12px 10px;
    }

    /* Remove hover effects that don't work on touch */
    .product-card-new:hover {
        transform: none;
    }

    .featured-item:hover img {
        transform: none;
    }

    /* Show quick actions always on mobile */
    .wishlist-btn {
        opacity: 1;
    }
}