/* Responsive Design for Main Website */

/* Base responsive styles */
@media (max-width: 992px) {
    .container {
        max-width: 100%;
        padding: 0 15px;
    }
    
    /* Header responsive styles */
    .header-inner {
        height: auto;
        padding: 15px 0;
        flex-wrap: wrap;
    }
    
    .logo {
        margin-right: auto;
    }
    
    .main-nav {
        order: 3;
        width: 100%;
        margin-top: 15px;
    }
    
    .nav-list {
        flex-direction: column;
        display: none;
    }
    
    .nav-list.show {
        display: flex;
    }
    
    .nav-list li {
        margin: 10px 0;
    }
    
    .hamburger-menu {
        display: block !important;
        margin-left: auto;
    }
    
    /* Hero section responsive */
    .hero {
        padding: 80px 0;
    }
    
    .hero-content h1 {
        font-size: 36px;
    }
    
    .hero-content p {
        font-size: 18px;
    }
    
    /* Services grid responsive */
    .services-grid {
        grid-template-columns: repeat(2, 1fr);
    }
    
    /* Product grid responsive */
    .product-grid {
        grid-template-columns: repeat(2, 1fr);
    }
    
    /* Blog grid responsive */
    .blog-grid {
        grid-template-columns: repeat(2, 1fr);
    }
}

/* Mobile specific styles */
@media (max-width: 768px) {
    /* Header mobile styles */
    .header-actions {
        margin-left: auto;
    }
    
    .header-actions > div {
        margin-left: 10px;
    }
    
    .search-toggle, .wishlist, .cart {
        font-size: 16px;
    }
    
    /* Hero section mobile */
    .hero {
        padding: 60px 0;
    }
    
    .hero-content h1 {
        font-size: 28px;
    }
    
    .hero-content p {
        font-size: 16px;
    }
    
    .hero-buttons {
        flex-direction: column;
        align-items: center;
    }
    
    .hero-buttons .btn {
        margin: 5px 0;
        width: 100%;
        max-width: 200px;
    }
    
    /* Services grid mobile */
    .services-grid {
        grid-template-columns: 1fr;
        gap: 20px;
    }
    
    /* Product grid mobile */
    .product-grid {
        grid-template-columns: 1fr;
        gap: 20px;
    }
    
    /* Blog grid mobile */
    .blog-grid {
        grid-template-columns: 1fr;
        gap: 20px;
    }
    
    /* Section spacing */
    .section {
        padding: 40px 0;
    }
    
    .section-header {
        margin-bottom: 30px;
    }
    
    .section-header h2 {
        font-size: 28px;
    }
    
    /* Footer responsive */
    .footer-widgets {
        grid-template-columns: 1fr;
        gap: 30px;
    }
    
    .footer-bottom {
        flex-direction: column;
        text-align: center;
    }
    
    .footer-bottom-links {
        margin-top: 15px;
    }
}

/* Small mobile devices */
@media (max-width: 480px) {
    .header-actions .user-menu .user-name {
        display: none;
    }
    
    .product-actions {
        flex-wrap: wrap;
    }
    
    .product-actions .action-button {
        margin-bottom: 5px;
    }
    
    .section-header h2 {
        font-size: 24px;
    }
}

/* Hamburger menu styles */
.hamburger-menu {
    display: none;
    cursor: pointer;
    width: 30px;
    height: 20px;
    position: relative;
    margin-left: 15px;
}

.hamburger-menu .bar {
    display: block;
    width: 100%;
    height: 2px;
    background-color: var(--text-color);
    position: absolute;
    left: 0;
    transition: all 0.3s ease;
}

.hamburger-menu .bar:first-child {
    top: 0;
}

.hamburger-menu .bar:nth-child(2) {
    top: 9px;
}

.hamburger-menu .bar:last-child {
    top: 18px;
}

.hamburger-menu.active .bar:first-child {
    transform: rotate(45deg);
    top: 9px;
}

.hamburger-menu.active .bar:nth-child(2) {
    opacity: 0;
}

.hamburger-menu.active .bar:last-child {
    transform: rotate(-45deg);
    top: 9px;
}

/* Portfolio page responsive styles */
@media (max-width: 992px) {
    .portfolio-grid {
        grid-template-columns: repeat(2, 1fr);
    }
}

@media (max-width: 768px) {
    .portfolio-grid {
        grid-template-columns: 1fr;
    }
    
    .portfolio-filters {
        flex-direction: column;
        align-items: flex-start;
    }
    
    .portfolio-filters .filter-item {
        margin: 5px 0;
    }
}

/* Product page responsive */
@media (max-width: 992px) {
    .product-details {
        flex-direction: column;
    }
    
    .product-gallery {
        width: 100%;
        margin-bottom: 30px;
    }
    
    .product-info {
        width: 100%;
    }
}

/* Cart page responsive */
@media (max-width: 768px) {
    .cart-table thead {
        display: none;
    }
    
    .cart-table tbody tr {
        display: block;
        margin-bottom: 20px;
        border: 1px solid var(--border-color);
        padding: 15px;
    }
    
    .cart-table tbody td {
        display: flex;
        justify-content: space-between;
        align-items: center;
        padding: 10px 0;
        border-bottom: 1px solid var(--border-color);
    }
    
    .cart-table tbody td:before {
        content: attr(data-label);
        font-weight: 600;
    }
    
    .cart-table tbody td:last-child {
        border-bottom: none;
    }
    
    .cart-actions {
        flex-direction: column;
    }
    
    .cart-actions .coupon {
        margin-bottom: 15px;
        width: 100%;
    }
    
    .cart-actions .update-cart {
        width: 100%;
    }
    
    .cart-totals {
        width: 100%;
    }
}