/* Responsive Styles for Fursight - Works with Bootstrap */

/* ===== NAVIGATION RESPONSIVE ===== */
@media (max-width: 991px) {
    .navbar {
        padding: 0.5rem 1rem;
    }
    
    .navbar-collapse {
        background: #FFD700;
        padding: 1rem;
        margin-top: 0.5rem;
        border-radius: 8px;
    }
    
    .navbar .nav-links {
        position: static;
        left: auto;
        transform: none;
        flex-direction: column;
        align-items: stretch;
        gap: 0;
        width: 100%;
        margin: 0 0 0.75rem;
        padding: 0;
    }

    .navbar .nav-links .nav-item {
        width: 100%;
        margin: 0;
    }

    .navbar .nav-links .nav-link {
        display: block;
        width: 100%;
        padding: 0.65rem 0.75rem;
        border-radius: 8px;
    }

    .navbar .nav-links .nav-link:hover,
    .navbar .nav-links .nav-link:active {
        background: #1a1a1a;
        color: #FFD700 !important;
    }

    .navbar .nav-links .nav-link.active {
        background: transparent;
        color: #111 !important;
    }

    .navbar .nav-actions {
        position: static;
        right: auto;
        top: auto;
        transform: none;
        width: 100%;
        margin-top: 0.75rem;
        padding-top: 0.75rem;
        border-top: 1px solid rgba(0,0,0,0.1);
        align-items: stretch;
    }

    .navbar .nav-actions .btn,
    .navbar .nav-actions form,
    .navbar .nav-actions form .btn {
        width: 100%;
    }

    .navbar .nav-actions .btn {
        display: flex;
        align-items: center;
        justify-content: center;
    }

    .navbar #globalCartLink #cartCount {
        left: auto !important;
        right: 14px;
        top: 50% !important;
        transform: translateY(-50%) !important;
    }

    /* Mobile hamburger icon - black */
    .navbar-toggler {
        border: 2px solid #1a1a1a !important;
        background: transparent !important;
        padding: 8px 12px;
    }
    
    .navbar-toggler:focus {
        box-shadow: none;
    }
    
    .navbar-toggler-icon {
        background-image: url("data:image/svg+xml,%3csvg xmlns='http://www.w3.org/2000/svg' viewBox='0 0 30 30'%3e%3cpath stroke='%231a1a1a' stroke-linecap='round' stroke-miterlimit='10' stroke-width='2' d='M4 7h22M4 15h22M4 23h22'/%3e%3c/svg%3e") !important;
        height: 20px !important;
        width: 20px !important;
    }
}

@media (max-width: 576px) {
    .logo {
        font-size: 1.3rem;
    }
    
    .btn-login, .btn-cart {
        font-size: 0.9rem;
        padding: 0.4rem 0.8rem;
    }
}

/* Center navbar on desktop */
@media (min-width: 992px) {
    .navbar .container,
    .navbar .site-topbar-shell {
        position: relative;
    }
    
    .navbar-collapse {
        flex-grow: 0;
        justify-content: center;
    }
    
    .navbar .nav-links {
        position: absolute;
        left: 50%;
        transform: translateX(-50%);
    }
    
    .navbar .nav-actions {
        position: absolute;
        right: 15px;
        top: 50%;
        transform: translateY(-50%);
    }
}

/* ===== HERO SECTION ===== */
@media (max-width: 991px) {
    .hero {
        padding: 3rem 0;
        text-align: center;
    }
    
    .hero-text h1 {
        font-size: 2rem;
    }
    
    .hero-stats {
        justify-content: center;
    }
}

@media (max-width: 576px) {
    .hero-text h1 {
        font-size: 1.75rem;
    }
    
    .hero-text p {
        font-size: 0.95rem;
    }
    
    .stat-item {
        min-width: 80px;
    }
    
    .stat-item h3 {
        font-size: 1.25rem;
    }
}

/* ===== PRODUCT GRID ===== */
@media (max-width: 1199px) {
    .product-card {
        padding: 1rem;
    }
}

@media (max-width: 991px) {
    .product-grid {
        grid-template-columns: repeat(2, 1fr);
        gap: 1rem;
    }
}

@media (max-width: 576px) {
    .product-grid {
        grid-template-columns: 1fr;
    }
    
    .product-image-container img {
        max-height: 150px;
    }
}

/* Fix product card height consistency */
.product-card {
    display: flex;
    flex-direction: column;
    height: 100%;
    min-height: 350px;
}

.product-card .product-image-container {
    flex-shrink: 0;
}

.product-card h4 {
    margin-top: auto;
}

.product-card .category,
.product-card .stars {
    flex-shrink: 0;
}

.product-card .price-row {
    margin-top: auto;
    flex-shrink: 0;
}

/* ===== WHY US SECTION ===== */
@media (max-width: 991px) {
    .why-grid {
        grid-template-columns: repeat(2, 1fr);
    }
}

@media (max-width: 576px) {
    .why-grid {
        grid-template-columns: 1fr;
    }
}

/* ===== FOOTER ===== */
@media (max-width: 991px) {
    footer {
        text-align: center;
    }

    .footer-about {
        margin-bottom: 2rem;
    }
    
    .footer-social {
        justify-content: center;
    }

}

/* ===== PRODUCTS PAGE ===== */
@media (max-width: 991px) {
    .main-layout {
        flex-direction: column;
    }
    
    .sidebar {
        width: 100%;
        margin-bottom: 2rem;
    }
    
    .content {
        width: 100%;
    }
}

@media (max-width: 576px) {
    .products-header h1 {
        font-size: 1.75rem;
    }
    
    .search-bar-container {
        width: 100%;
    }
    
    .category-inline {
        flex-wrap: wrap;
        justify-content: center;
    }
    
    .category-item {
        margin: 0.25rem;
    }
}

/* ===== CONTACT PAGE ===== */
@media (max-width: 991px) {
    .contact-main {
        flex-direction: column;
    }
    
    .contact-form-wrapper,
    .contact-sidebar {
        width: 100%;
    }
    
    .info-card {
        flex: 1 1 250px;
        margin: 0.5rem;
    }
}

@media (max-width: 576px) {
    .contact-header h1 {
        font-size: 1.75rem;
    }
    
    .form-row {
        flex-direction: column;
    }
}

/* ===== ABOUT US PAGE ===== */
@media (max-width: 991px) {
    .story-grid {
        grid-template-columns: 1fr;
    }
    
    .story-image {
        order: -1;
    }
    
    .values-grid {
        grid-template-columns: repeat(2, 1fr);
    }
    
    .team-grid {
        grid-template-columns: repeat(2, 1fr);
    }
}

@media (max-width: 576px) {
    .about-hero h1 {
        font-size: 1.75rem;
    }
    
    .values-grid {
        grid-template-columns: 1fr;
    }
    
    .team-grid {
        grid-template-columns: 1fr;
    }
    
    .cta-buttons {
        flex-direction: column;
        align-items: center;
    }
}

/* ===== ADD TO CART PAGE ===== */
@media (max-width: 991px) {
    .cart-content {
        flex-direction: column;
    }
    
    .cart-items-section,
    .checkout-section {
        width: 100%;
    }
    
    .cart-table-header {
        display: none;
    }
    
    .cart-item {
        flex-direction: column;
        align-items: flex-start;
        padding: 1rem 0;
        border-bottom: 1px solid #eee;
    }
    
    .cart-item > div {
        width: 100%;
        margin-bottom: 0.5rem;
    }
    
    .col-product {
        display: flex;
        align-items: center;
        gap: 1rem;
    }
    
    .col-product img {
        width: 60px;
        height: 60px;
        object-fit: contain;
    }
    
    .col-quantity {
        display: flex;
        align-items: center;
        gap: 0.5rem;
    }
}

@media (max-width: 576px) {
    .cart-header h1 {
        font-size: 1.5rem;
    }
}

/* ===== AUTH PAGES (Login/Register) ===== */
@media (max-width: 576px) {
    .auth-card {
        padding: 1.5rem;
        margin: 1rem;
    }
    
    .auth-title {
        font-size: 1.5rem;
    }
    
    .form-row {
        flex-direction: column;
    }
    
    .remember-forgot {
        flex-direction: column;
        gap: 0.5rem;
        align-items: flex-start;
    }
}

/* ===== MODALS ===== */
@media (max-width: 576px) {
    .modal-content {
        width: 95%;
        margin: 1rem;
        padding: 1rem;
    }
    
    .modal-body {
        flex-direction: column;
    }
    
    .modal-image,
    .modal-details {
        width: 100%;
    }
    
    .modal-actions {
        flex-direction: column;
    }
    
    .modal-actions button {
        width: 100%;
        margin: 0.25rem 0;
    }
}

/* ===== UTILITY CLASSES ===== */
@media (max-width: 576px) {
    .d-none-mobile {
        display: none !important;
    }
    
    .text-center-mobile {
        text-align: center !important;
    }
    
    .w-100-mobile {
        width: 100% !important;
    }
}

/* Bootstrap Grid Helpers */
.container {
    width: 100%;
    max-width: 1200px;
    margin: 0 auto;
    padding: 0 15px;
}

.row {
    display: flex;
    flex-wrap: wrap;
    margin: 0 -15px;
}

.col-12 { width: 100%; padding: 0 15px; }
.col-6 { width: 50%; padding: 0 15px; }
.col-4 { width: 33.333%; padding: 0 15px; }
.col-3 { width: 25%; padding: 0 15px; }

@media (min-width: 576px) {
    .col-sm-6 { width: 50%; padding: 0 15px; }
    .col-sm-4 { width: 33.333%; padding: 0 15px; }
    .col-sm-3 { width: 25%; padding: 0 15px; }
}

@media (min-width: 768px) {
    .col-md-6 { width: 50%; padding: 0 15px; }
    .col-md-4 { width: 33.333%; padding: 0 15px; }
    .col-md-3 { width: 25%; padding: 0 15px; }
}

@media (min-width: 992px) {
    .col-lg-6 { width: 50%; padding: 0 15px; }
    .col-lg-4 { width: 33.333%; padding: 0 15px; }
    .col-lg-3 { width: 25%; padding: 0 15px; }
}

/* Flex utilities */
.d-flex { display: flex; }
.flex-wrap { flex-wrap: wrap; }
.gap-2 { gap: 0.5rem; }
.gap-3 { gap: 1rem; }
.gap-4 { gap: 1.5rem; }
.justify-content-center { justify-content: center; }
.justify-content-between { justify-content: space-between; }
.align-items-center { align-items: center; }

/* Spacing utilities */
.mb-0 { margin-bottom: 0 !important; }
.mb-1 { margin-bottom: 0.25rem !important; }
.mb-2 { margin-bottom: 0.5rem !important; }
.mb-3 { margin-bottom: 1rem !important; }
.mb-4 { margin-bottom: 1.5rem !important; }
.mb-5 { margin-bottom: 3rem !important; }
.mt-2 { margin-top: 0.5rem !important; }
.mt-3 { margin-top: 1rem !important; }
.mt-4 { margin-top: 1.5rem !important; }
.mt-5 { margin-top: 3rem !important; }
.my-4 { margin-top: 1.5rem !important; margin-bottom: 1.5rem !important; }
.my-5 { margin-top: 3rem !important; margin-bottom: 3rem !important; }
.p-3 { padding: 1rem !important; }
.p-4 { padding: 1.5rem !important; }
.py-5 { padding-top: 3rem !important; padding-bottom: 3rem !important; }
.px-3 { padding-left: 1rem !important; padding-right: 1rem !important; }

/* Text utilities */
.text-center { text-align: center !important; }
.text-start { text-align: left !important; }
.text-end { text-align: right !important; }

/* Image utilities */
.img-fluid {
    max-width: 100%;
    height: auto;
}

/* Button utilities */
.btn {
    display: inline-block;
    padding: 0.5rem 1rem;
    border-radius: 4px;
    text-decoration: none;
    cursor: pointer;
    border: none;
    transition: all 0.3s ease;
}

.btn-primary {
    background: #007bff;
    color: white;
}

.btn-primary:hover {
    background: #0056b3;
}

/* Form utilities */
.form-control {
    width: 100%;
    padding: 0.5rem;
    border: 1px solid #ddd;
    border-radius: 4px;
}

/* List utilities */
.list-unstyled {
    list-style: none;
    padding: 0;
    margin: 0;
}

/* Grid gap utilities */
.g-2 { gap: 0.5rem; }
.g-3 { gap: 1rem; }
.g-4 { gap: 1.5rem; }

/* Hide on mobile */
@media (max-width: 575px) {
    .hide-mobile {
        display: none !important;
    }
}

/* Show on mobile only */
@media (min-width: 576px) {
    .show-mobile-only {
        display: none !important;
    }
}
