/**
 * Standard Shop Page Styles
 * 
 * This file contains styles specific to the standard shop page template
 * with normal WordPress header/footer and sidebar
 */

/* ========================================
   Accessibility - Hide skip links
   ======================================== */
.standard-shop-page .skip-link,
.standard-shop-page .screen-reader-text,
.standard-shop-page [class*="skip-to"],
.standard-shop-page a[href*="#products"] {
    position: absolute !important;
    left: -9999px !important;
    top: auto !important;
    width: 1px !important;
    height: 1px !important;
    overflow: hidden !important;
}

/* ========================================
   Container and Layout
   ======================================== */

.standard-shop-wrapper {
    position: relative;
    background-color: white;
    min-height: 100vh;
}

.standard-shop-page {
    padding: 0;
}

/* Page Header - Removed */

/* ========================================
   Hero Section
   ======================================== */

/* Hero wrapper for rotation */
.shop-hero-section-wrapper {
    position: relative;
    margin-bottom: 20px;
    border-radius: 12px;
    display: grid;
    grid-template-areas: "hero";
    /* Grid will naturally size to content */
}

.shop-hero-section {
    background: linear-gradient(135deg, #f5f5f5 0%, #ffffff 100%);
    padding: 15px 20px;
    border-radius: 12px;
    cursor: pointer;
    transition: all 0.3s ease;
    overflow: hidden;
    grid-area: hero; /* All sections stack in same grid area */
    opacity: 0;
    transition: opacity 1s ease-in-out;
    z-index: 1;
}

.shop-hero-section.active {
    opacity: 1;
    z-index: 2;
}

.shop-hero-section:hover {
    transform: scale(1.02);
    box-shadow: 0 15px 40px rgba(0, 0, 0, 0.1);
}

.shop-hero-quote {
    font-family: Georgia, serif;
    font-size: 14px;
    font-style: italic;
    color: rgba(51, 51, 51, 0.8);
    text-align: center;
    margin-bottom: 15px;
    padding: 0 20px;
    line-height: 1.4;
}

.shop-hero-product {
    display: flex;
    flex-direction: row;
    align-items: center;
    justify-content: center;
    gap: 30px;
    padding: 0;
}

.shop-hero-image {
    width: 120px;
    height: 120px;
    border-radius: 8px;
    box-shadow: 0 5px 15px rgba(0, 0, 0, 0.1);
    object-fit: contain; /* Show full image without cropping */
    background: #f5f5f5; /* Background for non-square images */
    padding: 5px;
    flex-shrink: 0;
}

.shop-hero-content {
    display: flex;
    flex-direction: column;
    align-items: flex-start;
    gap: 5px;
    text-align: left;
}

.shop-hero-title {
    font-size: 20px;
    font-weight: 600;
    margin: 0;
    color: #333;
    line-height: 1.2;
}

.shop-hero-price {
    font-size: 24px;
    font-weight: 700;
    color: #333;
    margin: 0;
}

.shop-hero-price .woocommerce-Price-amount {
    color: inherit;
}

/* Attribution for quote */
.shop-hero-attribution {
    font-size: 12px;
    font-style: normal;
    color: rgba(51, 51, 51, 0.6);
    margin-top: 5px;
    font-weight: 500;
}

/* Catchphrase */
.shop-hero-catchphrase {
    font-size: 14px;
    font-weight: 600;
    color: #4a90e2;
    text-transform: uppercase;
    letter-spacing: 0.5px;
    margin-bottom: 3px;
}

/* Mobile-first base styles for shop hero */
.shop-hero-section-wrapper {
    margin-bottom: 15px;
}

.shop-hero-section {
    padding: 12px 15px;
}

.shop-hero-product {
    gap: 20px;
    flex-direction: column; /* Stack on mobile by default */
    text-align: center;
}

.shop-hero-image {
    width: 120px;
    height: 120px;
    margin: 0 auto;
}

.shop-hero-quote {
    font-size: 13px;
    padding: 0 15px;
    margin-bottom: 12px;
}

.shop-hero-attribution {
    font-size: 11px;
}

.shop-hero-catchphrase {
    font-size: 12px;
}

.shop-hero-title {
    font-size: 16px;
}

.shop-hero-price {
    font-size: 20px;
}

.shop-hero-content {
    align-items: center;
    text-align: center;
}

/* ========================================
   Account Navigation Cards
   ======================================== */

.account-nav-container {
    margin: 0 0 15px 0;
    padding: 0;
    display: flex;
    justify-content: flex-end;
    display: none;
}

.account-nav-container .subtitle {
    text-align: center;
    color: #666;
    margin-bottom: 30px;
}

.account-nav-grid {
    display: flex;
    flex-wrap: wrap;
    gap: 15px;
    justify-content: flex-end;
    align-items: center;
}

.account-nav-card {
    width: 65px;
    height: 65px;
    background: #f9f9f9;
    border: 1px solid #e0e0e0;
    border-radius: 8px;
    display: flex;
    flex-direction: column;
    align-items: center;
    justify-content: center;
    transition: all 0.3s ease;
    cursor: pointer;
    position: relative;
    overflow: hidden;
}

.account-nav-card:hover {
    background: #fff;
    box-shadow: 0 2px 8px rgba(0,0,0,0.1);
    transform: translateY(-2px);
}

.account-nav-card .icon {
    font-size: 1.5em;
    margin: 0;
    display: block;
}

.account-nav-card h2 {
    color: #333;
    font-size: 0.65em;
    margin: 2px 0 0 0;
    font-weight: 500;
    text-align: center;
    line-height: 1;
}

.account-nav-card a {
    text-decoration: none;
    color: inherit;
    display: flex;
    flex-direction: column;
    align-items: center;
    justify-content: center;
    width: 100%;
    height: 100%;
}

/* Hide elements we don't need */
.account-nav-card p,
.account-nav-card .action-link {
    display: none;
}

/* ========================================
   Search and Filter Bar
   ======================================== */

.standard-shop-page .search-and-filter-container {
    display: flex;
    flex-direction: column;
    gap: 12px;
    align-items: stretch;
    background: transparent;
    padding: 0;
    margin-bottom: 30px;
    margin-left: 0;
    margin-right: 0;
}


/* Filter buttons row */
.standard-shop-page .filter-buttons-row {
    display: flex;
    gap: 10px;
    align-items: center;
}

/* Search Input */
.standard-shop-page .shop-search-container {
    width: 100%;
}

.standard-shop-page .search-wrapper {
    position: relative;
    display: flex;
    align-items: center;
}

.standard-shop-page #shop-search-input {
    width: 100%;
    padding: 14px 20px 14px 48px;
    border: none;
    border-radius: 9999px;
    font-size: 16px;
    background: white;
    box-shadow: 0 2px 8px rgba(0, 0, 0, 0.1);
    transition: all 0.3s ease;
}

.standard-shop-page #shop-search-input:focus {
    outline: none;
    background: white;
    box-shadow: 0 4px 16px rgba(0, 0, 0, 0.15);
    transform: translateY(-1px);
}

.standard-shop-page .search-icon {
    position: absolute;
    left: 16px;
    top: 50%;
    transform: translateY(-50%);
    color: #999;
    pointer-events: none;
}

/* Filter and Clear Buttons */
.standard-shop-page .open-filter-modal,
.standard-shop-page .clear-all-button {
    display: flex;
    align-items: center;
    gap: 8px;
    padding: 14px 24px;
    border: none;
    border-radius: 9999px;
    font-size: 14px;
    font-weight: 500;
    cursor: pointer;
    transition: all 0.3s ease;
    white-space: nowrap;
    box-shadow: 0 2px 8px rgba(0, 0, 0, 0.1);
}

.standard-shop-page .open-filter-modal {
    background: white;
    color: #4a90e2;
}

.standard-shop-page .open-filter-modal:hover {
    background: white;
    transform: translateY(-2px);
    box-shadow: 0 4px 16px rgba(0, 0, 0, 0.15);
}

.standard-shop-page .clear-all-button {
    background: white;
    color: #f44336;
}

.standard-shop-page .clear-all-button:hover {
    background: white;
    transform: translateY(-2px);
    box-shadow: 0 4px 16px rgba(0, 0, 0, 0.15);
}

.standard-shop-page .active-filter-count {
    background: #ff6b6b;
    color: white;
    padding: 2px 8px;
    border-radius: 12px;
    font-size: 12px;
    font-weight: bold;
    margin-left: 4px;
}

/* ========================================
   Products Grid
   ======================================== */

/* Simplified Grid System - Fixed column counts for predictable layouts */
.standard-shop-page .custom-products-grid {
    display: grid;
    grid-template-columns: repeat(2, 1fr); /* Mobile: 2 columns */
    gap: 16px;
    padding: 0;
    width: 100%;
    box-sizing: border-box;
}

/* Product Item */
.standard-shop-page .custom-product-item {
    background: white;
    border-radius: 12px;
    overflow: hidden;
    box-shadow: 0 2px 8px rgba(0, 0, 0, 0.08);
    transition: all 0.3s ease;
    display: flex;
    flex-direction: column;
    height: 100%;
}

.standard-shop-page .custom-product-item:hover {
    transform: translateY(-4px);
    box-shadow: 0 8px 24px rgba(0, 0, 0, 0.12);
}

/* Product Link */
.standard-shop-page .product-link {
    text-decoration: none;
    color: inherit;
    display: flex;
    flex-direction: column;
    flex: 1;
}

/* Product Image */
.standard-shop-page .product-image-wrapper {
    position: relative;
    width: 100%;
    padding-top: 100%; /* 1:1 aspect ratio */
    overflow: hidden;
    background: white;
}

.standard-shop-page .product-image-wrapper img {
    position: absolute;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    object-fit: cover;
    transition: transform 0.3s ease;
}

.standard-shop-page .custom-product-item:hover .product-image-wrapper img {
    transform: scale(1.05);
}

/* Sale Badge */
.standard-shop-page .onsale {
    position: absolute;
    top: 12px;
    right: 12px;
    background: #ff6b6b;
    color: white;
    padding: 6px 12px;
    border-radius: 20px;
    font-size: 12px;
    font-weight: bold;
    text-transform: uppercase;
    z-index: var(--z-base);
}

/* Product Info */
.standard-shop-page .product-info-wrapper {
    padding: 16px;
    flex: 1;
    display: flex;
    flex-direction: column;
}

.standard-shop-page .product-title {
    font-size: 16px;
    font-weight: 600;
    color: #333;
    margin: 0 0 8px 0;
    line-height: 1.3;
    display: -webkit-box;
    -webkit-line-clamp: 2;
    -webkit-box-orient: vertical;
    overflow: hidden;
}

/* Pricing */
.standard-shop-page .product-price,
.standard-shop-page .archive-asking-price {
    font-size: 18px;
    font-weight: 700;
    color: #4a90e2;
    margin: 8px 0;
}

.standard-shop-page .bbup-free-label {
    color: #4caf50;
    font-weight: 700;
}

.standard-shop-page .bbup-label {
    font-weight: 400;
    color: #666;
    font-size: 14px;
}

.standard-shop-page .bbup-dollar {
    color: #4a90e2;
}

.standard-shop-page .bbup-price-value {
    color: #4a90e2;
    font-weight: 700;
}

/* Availability */
.standard-shop-page .archive-availability {
    font-size: 14px;
    font-weight: 500;
    margin-top: 4px;
}

/* Add to Cart Button */
.standard-shop-page .add-to-cart-wrapper {
    padding: 0 16px 16px;
    margin-top: auto;
}

.standard-shop-page .custom-add-to-cart {
    width: 100%;
    padding: 12px 20px;
    background: #4a90e2;
    color: white;
    border: none;
    border-radius: 25px;
    font-size: 14px;
    font-weight: 600;
    text-align: center;
    cursor: pointer;
    transition: all 0.3s ease;
    text-decoration: none;
    display: block;
}

.standard-shop-page .custom-add-to-cart:hover {
    background: #357abd;
    transform: translateY(-2px);
    box-shadow: 0 4px 12px rgba(74, 144, 226, 0.3);
}

.standard-shop-page .custom-add-to-cart:disabled {
    background: #ccc;
    cursor: not-allowed;
    transform: none;
    box-shadow: none;
}

.standard-shop-page .custom-add-to-cart.learn-more {
    background: #ff9800;
}

.standard-shop-page .custom-add-to-cart.learn-more:hover {
    background: #f57c00;
    box-shadow: 0 4px 12px rgba(255, 152, 0, 0.3);
}

/* ========================================
   Loading States
   ======================================== */

.standard-shop-page .products-loading {
    display: flex;
    justify-content: center;
    align-items: center;
    min-height: 400px;
    grid-column: 1 / -1;
}

.standard-shop-page .loading-spinner {
    width: 50px;
    height: 50px;
    border: 4px solid #f3f3f3;
    border-top: 4px solid #4a90e2;
    border-radius: 50%;
    animation: spin 1s linear infinite;
}

/* ========================================
   Pagination
   ======================================== */

.standard-shop-page .custom-pagination {
    grid-column: 1 / -1;
    display: flex;
    justify-content: center;
    align-items: center;
    gap: 8px;
    margin-top: 40px;
    padding: 20px 0;
}

.standard-shop-page .custom-pagination a,
.standard-shop-page .custom-pagination .current {
    display: inline-flex;
    align-items: center;
    justify-content: center;
    min-width: 40px;
    height: 40px;
    padding: 0 12px;
    border-radius: 20px;
    font-size: 14px;
    font-weight: 500;
    text-decoration: none;
    transition: all 0.3s ease;
}

.standard-shop-page .custom-pagination a {
    background: white;
    color: #666;
    border: 1px solid #ddd;
}

.standard-shop-page .custom-pagination a:hover {
    background: #4a90e2;
    color: white;
    border-color: #4a90e2;
    transform: translateY(-2px);
    box-shadow: 0 4px 8px rgba(74, 144, 226, 0.2);
}

.standard-shop-page .custom-pagination .current {
    background: #4a90e2;
    color: white;
    border: 1px solid #4a90e2;
}

/* ========================================
   No Results
   ======================================== */

.standard-shop-page .no-results {
    grid-column: 1 / -1;
    text-align: center;
    padding: 60px 20px;
    color: #666;
    font-size: 18px;
}

/* ========================================
   Responsive Design
   All responsive styles moved to standard-shop-responsive.css
   Using centralized breakpoints:
   - Mobile (base): 2 columns
   - Tablet (800px+): 3 columns
   - Desktop (1200px+): 4 columns
   ======================================== */


/* Tablet styles for shop hero - 800px and up */
@media (min-width: 800px) {
    .shop-hero-product {
        flex-direction: row; /* Side-by-side on tablet+ */
        text-align: left;
    }
    
    .shop-hero-image {
        width: 100px;
        height: 100px;
        margin: 0;
    }
    
    .shop-hero-content {
        align-items: flex-start;
        text-align: left;
    }
}

/* Desktop styles for shop hero - 1200px and up */
@media (min-width: 1200px) {
    .shop-hero-section-wrapper {
        margin-bottom: 25px;
        /* min-height already set in base styles (225px) */
    }
    
    .shop-hero-section {
        padding: 20px 25px;
    }
    
    .shop-hero-product {
        gap: 35px;
    }
    
    .shop-hero-image {
        width: 130px;
        height: 130px;
        /* Keep contain and background from base styles for consistency */
    }
    
    .shop-hero-quote {
        font-size: 15px;
        padding: 0 25px;
        margin-bottom: 18px;
    }
    
    .shop-hero-attribution {
        font-size: 13px;
    }
    
    .shop-hero-catchphrase {
        font-size: 15px;
    }
    
    .shop-hero-title {
        font-size: 22px;
    }
    
    .shop-hero-price {
        font-size: 26px;
    }
}

/* ========================================
   Animation Keyframes
   ======================================== */

/* spin animation - moved to animations.css */

/* ========================================
   BuddyBoss Theme Compatibility
   ======================================== */

/* Use natural document flow instead of fixed positioning */
.standard-shop-page .standard-shop-page {
    /* Remove fixed positioning - use natural flow */
    position: relative;
    background: white;
    min-height: calc(100vh - 150px); /* Account for header/footer */
    padding: 20px;
    box-sizing: border-box;
}

/* Respect BuddyBoss container max-width */
.standard-shop-page .container {
    max-width: 1400px;
    margin: 0 auto;
    padding: 0 20px;
}

/* BuddyPanel behavior - classes removed from template */

/* Ensure proper scroll locking when modals are open */
body.modal-open {
    overflow: hidden;
}


/* Full-width layout without sidebar */
.standard-shop-page .bb-grid {
    gap: 0;
}

/* Full-width content area */
.standard-shop-page .content-area,
.standard-shop-page #primary {
    max-width: 100%;
    width: 100%;
}

/* Ensure proper content spacing */
.standard-shop-page #primary,
.standard-shop-page .content-area,
.standard-shop-page .site-main {
    margin: 0;
    padding: 0;
}

/* Responsive styles handled in standard-shop-responsive.css */

