/* Reset and base styles */
* {
    margin: 0;
    padding: 0;
    box-sizing: border-box;
}

body {
    font-family: "Workbench", sans-serif;
    font-optical-sizing: auto;
    font-weight: 400;
    font-style: normal;
    font-variation-settings:
      "BLED" 0,
      "SCAN" 0;
    background-color: #fafafa;
    color: #1a1a1a;
    line-height: 1.6;
    font-size: 14px;
}

.container {
    max-width: 1200px;
    margin: 0 auto;
    background-color: #ffffff;
    border: 1px solid #e0e0e0;
    min-height: 100vh;
    box-shadow: 0 0 20px rgba(0, 0, 0, 0.05);
}

/* Header and Navigation */
.header {
    background-color: #ffffff;
    border-bottom: 1px solid #e0e0e0;
    padding: 20px;
    text-align: center;
}

.logo h1 {
    font-family: "Workbench", sans-serif;
    font-optical-sizing: auto;
    font-weight: 400;
    font-style: normal;
    font-variation-settings:
      "BLED" 0,
      "SCAN" 0;
    font-size: 28px;
    color: #2c2c2c;
    margin-bottom: 5px;
    font-weight: bold;
}

.tagline {
    font-style: italic;
    color: #8b7355;
    font-size: 12px;
    margin-bottom: 15px;
}

.navigation ul {
    list-style: none;
    display: flex;
    align-items: center;
    position: relative;
    flex-wrap: wrap;
}

.navigation ul .nav-main-group {
    display: flex;
    gap: 30px;
    position: absolute;
    left: 50%;
    transform: translateX(-50%);
}

.navigation ul .nav-cart-group {
    margin-left: auto;
}

.nav-link {
    text-decoration: none;
    color: #2c2c2c;
    font-weight: 500;
    padding: 10px 20px;
    border: 1px solid #e0e0e0;
    background-color: #ffffff;
    transition: all 0.3s ease;
    text-transform: lowercase;
    border-radius: 4px;
}

.nav-link:hover,
.nav-link.active {
    background-color: #8b7355;
    color: #ffffff;
    border-color: #8b7355;
}

/* Main content */
.main-content {
    padding: 30px;
    min-height: calc(100vh - 200px);
}

/* Hero section */
.hero {
    display: flex;
    align-items: center;
    gap: 40px;
    margin-bottom: 50px;
    flex-wrap: wrap;
}

.hero-content {
    flex: 1;
    min-width: 300px;
}

.hero-title {
    font-family: "Workbench", sans-serif;
    font-optical-sizing: auto;
    font-weight: 400;
    font-style: normal;
    font-variation-settings:
      "BLED" 0,
      "SCAN" 0;
    font-size: 32px;
    color: #1a1a1a;
    margin-bottom: 15px;
}

.hero-text {
    font-size: 16px;
    margin-bottom: 25px;
    color: #4a4a4a;
}

.cta-button {
    display: inline-block;
    background-color: #8b7355;
    color: #ffffff;
    padding: 12px 24px;
    text-decoration: none;
    border: none;
    font-weight: 500;
    transition: all 0.3s ease;
    text-transform: uppercase;
    font-size: 12px;
    border-radius: 4px;
    font-family: "Workbench", sans-serif;
    font-optical-sizing: auto;
    font-style: normal;
    font-variation-settings:
      "BLED" 0,
      "SCAN" 0;
}

.cta-button:hover {
    background-color: #6d5a43;
    transform: translateY(-2px);
}

.hero-image {
    flex: 1;
    min-width: 250px;
}

.featured-image {
    width: 100%;
    max-width: 500px;
    height: 300px;
    object-fit: cover;
    object-position: center;
    border-radius: 8px;
    box-shadow: 0 4px 15px rgba(0, 0, 0, 0.1);
    transition: transform 0.3s ease;
}

.featured-image:hover {
    transform: scale(1.02);
}

/* Keep placeholder styles for other pages if needed */
.placeholder-image {
    width: 100%;
    height: 200px;
    background-color: #f5f5f5;
    border: 1px solid #e0e0e0;
    display: flex;
    align-items: center;
    justify-content: center;
    color: #8a8a8a;
    font-style: italic;
    border-radius: 4px;
}

/* Features section */
.features {
    margin-bottom: 50px;
}

.feature-grid {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(250px, 1fr));
    gap: 30px;
}

.feature-item {
    background-color: #ffffff;
    padding: 25px;
    border: 1px solid #e8e8e8;
    text-align: center;
    border-radius: 6px;
    box-shadow: 0 2px 8px rgba(0, 0, 0, 0.04);
}

.feature-item h3 {
    color: #1a1a1a;
    margin-bottom: 10px;
    font-family: "Workbench", sans-serif;
    font-optical-sizing: auto;
    font-weight: 400;
    font-style: normal;
    font-variation-settings:
      "BLED" 0,
      "SCAN" 0;
}

/* Latest arrivals and products */
.latest h2,
.shop-header h1,
.about-header h1 {
    font-family: "Workbench", sans-serif;
    font-optical-sizing: auto;
    font-weight: 400;
    font-style: normal;
    font-variation-settings:
      "BLED" 0,
      "SCAN" 0;
    color: #1a1a1a;
    text-align: center;
    margin-bottom: 30px;
    font-size: 28px;
}

.shop-header,
.about-header {
    text-align: center;
    margin-bottom: 40px;
}

.shop-header p,
.about-header p {
    color: #6a6a6a;
    font-style: italic;
}

/* Optimized product grid for hundreds of items */
.product-grid,
.products-grid {
    display: grid;
    grid-template-columns: repeat(auto-fill, minmax(280px, 1fr));
    gap: 20px;
    margin-bottom: 30px;
    padding: 0 10px;
    max-width: 1400px;
    margin-left: auto;
    margin-right: auto;
}

.product-card,
.product-item {
    background-color: #ffffff;
    border: 1px solid #e8e8e8;
    padding: 15px;
    transition: transform 0.2s ease, box-shadow 0.2s ease;
    border-radius: 8px;
    box-shadow: 0 2px 8px rgba(0, 0, 0, 0.06);
    display: flex;
    flex-direction: column;
    height: auto;
    min-height: 380px;
    will-change: transform;
}

.product-card:hover,
.product-item:hover {
    transform: translateY(-3px);
    box-shadow: 0 8px 25px rgba(0, 0, 0, 0.12);
}

.product-image {
    position: relative;
    width: 100%;
    aspect-ratio: 3/4;
    background-color: #f5f5f5;
    border: 1px solid #e0e0e0;
    margin-bottom: 15px;
    display: flex;
    align-items: center;
    justify-content: center;
    color: #8a8a8a;
    font-style: italic;
    border-radius: 6px;
    overflow: hidden;
}

.product-image img {
    width: 100%;
    height: 100%;
    object-fit: cover;
    object-position: center;
    border-radius: 6px;
    transition: transform 0.3s ease;
}

.product-image:hover img {
    transform: scale(1.05);
}

.product-info {
    display: flex;
    flex-direction: column;
    flex-grow: 1;
    justify-content: space-between;
}

.product-card h4,
.product-item h3 {
    color: #1a1a1a;
    margin-bottom: 4px;
    font-size: 16px;
    font-weight: 600;
    line-height: 1.3;
    min-height: 44px;
    display: -webkit-box;
    -webkit-line-clamp: 2;
    -webkit-box-orient: vertical;
    overflow: hidden;
}

.product-description {
    font-size: 13px;
    color: #6a6a6a;
    margin-bottom: 12px;
    line-height: 1.4;
    flex-grow: 1;
    display: -webkit-box;
    -webkit-line-clamp: 3;
    -webkit-box-orient: vertical;
    overflow: hidden;
}

.product-price {
    font-weight: bold;
    color: #8b7355;
    font-size: 18px;
    margin-bottom: 12px;
}

.add-to-cart {
    background-color: #8b7355;
    color: #ffffff;
    border: none;
    padding: 8px 16px;
    cursor: pointer;
    font-size: 12px;
    transition: all 0.3s ease;
    text-transform: uppercase;
    border-radius: 4px;
    font-weight: 500;
    font-family: "Workbench", sans-serif;
    font-optical-sizing: auto;
    font-style: normal;
    font-variation-settings:
      "BLED" 0,
      "SCAN" 0;
    display: flex;
    align-items: center;
    justify-content: center;
    margin-left: auto;
    margin-right: auto;
}

.add-to-cart:hover {
    background-color: #6d5a43;
}

/* Shopify integration styles */
.view-on-shopify {
    background-color: #8b7355;  /* Match site color scheme */
    color: #ffffff;
    border: none;
    padding: 8px 16px;
    cursor: pointer;
    font-size: 12px;
    transition: all 0.3s ease;
    text-transform: uppercase;
    border-radius: 4px;
    font-weight: 500;
    font-family: "Workbench", sans-serif;
    font-optical-sizing: auto;
    font-style: normal;
    display: flex;
    align-items: center;
    justify-content: center;
    margin-left: auto;
    margin-right: auto;
}

.view-on-shopify:hover {
    background-color: #6d5a43;
}

.shopify-badge {
    position: absolute;
    top: 8px;
    right: 8px;
    background-color: #8b7355;  /* Match site color scheme */
    color: white;
    padding: 4px 8px;
    border-radius: 12px;
    font-size: 10px;
    font-weight: 600;
    text-transform: uppercase;
    letter-spacing: 0.5px;
}

.loading-message {
    text-align: center;
    padding: 40px;
    color: #8b7355;
    font-style: italic;
}

.error-message {
    text-align: center;
    padding: 40px;
    color: #d32f2f;
    font-style: italic;
}

.original-price {
    text-decoration: line-through;
    color: #999;
    font-size: 14px;
    margin-top: 5px;
}

/* Load more button styles */
.load-more-container {
    text-align: center;
    margin: 40px 0;
}

.load-more-btn {
    background-color: #8b7355;
    color: #ffffff;
    border: none;
    padding: 15px 30px;
    cursor: pointer;
    font-size: 14px;
    font-weight: 600;
    text-transform: uppercase;
    border-radius: 8px;
    transition: all 0.3s ease;
    font-family: "Workbench", sans-serif;
    letter-spacing: 0.5px;
    min-width: 220px;
}

.load-more-btn:hover:not(:disabled) {
    background-color: #6d5a43;
    transform: translateY(-2px);
    box-shadow: 0 4px 15px rgba(139, 115, 85, 0.3);
}

.load-more-btn:disabled {
    opacity: 0.7;
    cursor: not-allowed;
    transform: none;
}

/* Sold out product styles */
.product-item.sold-out {
    opacity: 0.7;
}

.product-item.sold-out .product-image {
    position: relative;
}

.sold-badge {
    position: absolute;
    top: 8px;
    right: 8px;
    background-color: #dc3545;
    color: white;
    padding: 4px 8px;
    border-radius: 12px;
    font-size: 10px;
    font-weight: 600;
    text-transform: uppercase;
    letter-spacing: 0.5px;
}

.sold-out-btn {
    background-color: #6c757d;
    color: white;
    border: none;
    padding: 8px 16px;
    cursor: not-allowed;
    font-size: 12px;
    border-radius: 4px;
    font-weight: 500;
    text-transform: uppercase;
    opacity: 0.7;
    margin-bottom: 8px;
    width: 100%;
    font-family: 'Workbench', Arial, sans-serif;
}

.view-details {
    background-color: transparent;
    color: #8b7355;
    border: 2px solid #8b7355;
    padding: 6px 12px;
    cursor: pointer;
    font-size: 12px;
    border-radius: 4px;
    font-weight: 500;
    text-transform: uppercase;
    transition: all 0.3s ease;
    font-family: 'Workbench', Arial, sans-serif;
}

.view-details:hover {
    background-color: #8b7355;
    color: white;
}

.product-buttons {
    display: flex;
    flex-direction: column;
    gap: 8px;
    margin-top: 10px;
}

.product-buttons .add-to-cart {
    width: 100%;
    font-family: 'Workbench', Arial, sans-serif;
}

.product-buttons .view-details {
    width: 100%;
    margin-left: 0;
    font-family: 'Workbench', Arial, sans-serif;
}

.product-buttons .sold-out-btn {
    width: 100%;
    font-family: 'Workbench', Arial, sans-serif;
}

.product-type {
    font-size: 12px;
    color: #666;
    margin: 2px 0;
    font-style: italic;
}

.product-details {
    margin-bottom: 5px;
}

.view-all {
    text-align: center;
    margin-top: 30px;
}

.view-all-link {
    color: #8b7355;
    text-decoration: none;
    font-weight: 500;
    font-size: 16px;
}

.view-all-link:hover {
    text-decoration: underline;
    color: #6d5a43;
}

/* Shop filters */
.filters {
    margin-bottom: 40px;
    text-align: center;
}

.filter-container {
    display: flex;
    gap: 40px;
    justify-content: center;
    align-items: center;
    flex-wrap: wrap;
}

.filter-section {
    display: flex;
    flex-direction: column;
    gap: 10px;
    align-items: center;
}

.filter-label {
    font-weight: 600;
    color: #2c2c2c;
    font-size: 14px;
    margin-bottom: 5px;
}

.filter-buttons,
.sort-buttons {
    display: flex;
    gap: 15px;
    justify-content: center;
    flex-wrap: wrap;
}

.filter-btn {
    background-color: #ffffff;
    border: 1px solid #e0e0e0;
    color: #2c2c2c;
    padding: 10px 16px;
    cursor: pointer;
    transition: all 0.3s ease;
    font-size: 12px;
    text-transform: lowercase;
    border-radius: 4px;
    font-weight: 500;
    font-family: "Workbench", sans-serif;
    font-optical-sizing: auto;
    font-style: normal;
    font-variation-settings:
      "BLED" 0,
      "SCAN" 0;
}

.filter-btn:hover,
.filter-btn.active {
    background-color: #8b7355;
    color: #ffffff;
    border-color: #8b7355;
}

.sort-dropdown {
    display: flex;
    justify-content: center;
    position: relative;
}

.sort-select {
    background-color: #ffffff;
    border: 1px solid #e0e0e0;
    color: #2c2c2c;
    padding: 10px 36px 10px 16px;
    cursor: pointer;
    border-radius: 4px;
    font-size: 12px;
    font-weight: 500;
    text-transform: lowercase;
    letter-spacing: 0.5px;
    transition: all 0.3s ease;
    font-family: 'Workbench', Arial, sans-serif;
    font-variation-settings:
      "BLED" 0,
      "SCAN" 0;
    min-width: 140px;
    outline: none;
    appearance: none;
    -webkit-appearance: none;
    -moz-appearance: none;
    background-image: 
        linear-gradient(45deg, transparent 50%, #2c2c2c 50%),
        linear-gradient(135deg, #2c2c2c 50%, transparent 50%);
    background-position: 
        calc(100% - 14px) calc(1em + 2px),
        calc(100% - 10px) calc(1em + 2px);
    background-size: 
        4px 4px,
        4px 4px;
    background-repeat: no-repeat;
}

.sort-select:hover,
.sort-select:focus {
    background-color: #8b7355;
    color: #ffffff;
    border-color: #8b7355;
    background-image: 
        linear-gradient(45deg, transparent 50%, #ffffff 50%),
        linear-gradient(135deg, #ffffff 50%, transparent 50%);
    background-position: 
        calc(100% - 14px) calc(1em + 2px),
        calc(100% - 10px) calc(1em + 2px);
    background-size: 
        4px 4px,
        4px 4px;
    background-repeat: no-repeat;
}

.sort-select option {
    background-color: #ffffff;
    color: #2c2c2c;
    font-family: 'Workbench', Arial, sans-serif;
}

/* About page styles */
.about-content {
    max-width: 800px;
    margin: 0 auto;
}

.about-section {
    margin-bottom: 50px;
    background-color: #ffffff;
    padding: 30px;
    border: 1px solid #e8e8e8;
    border-radius: 6px;
    box-shadow: 0 2px 8px rgba(0, 0, 0, 0.04);
}

.about-section h2 {
    color: #1a1a1a;
    font-family: "Workbench", sans-serif;
    font-optical-sizing: auto;
    font-weight: 400;
    font-style: normal;
    font-variation-settings:
      "BLED" 0,
      "SCAN" 0;
    margin-bottom: 20px;
    font-size: 24px;
}

.story-content p {
    margin-bottom: 15px;
    line-height: 1.8;
}

.mission-content {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(250px, 1fr));
    gap: 25px;
}

.mission-item h3 {
    color: #1a1a1a;
    margin-bottom: 10px;
    font-family: "Workbench", sans-serif;
    font-optical-sizing: auto;
    font-weight: 400;
    font-style: normal;
    font-variation-settings:
      "BLED" 0,
      "SCAN" 0;
}

.contact-content {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(300px, 1fr));
    gap: 30px;
}

.contact-info h3,
.contact-form h3 {
    color: #1a1a1a;
    margin-bottom: 15px;
    font-family: "Workbench", sans-serif;
    font-optical-sizing: auto;
    font-weight: 400;
    font-style: normal;
    font-variation-settings:
      "BLED" 0,
      "SCAN" 0;
}

.form-group {
    margin-bottom: 20px;
}

.form-group label {
    display: block;
    margin-bottom: 5px;
    font-weight: 600;
    color: #1a1a1a;
}

.form-group input,
.form-group textarea {
    width: 100%;
    padding: 10px;
    border: 1px solid #e0e0e0;
    background-color: #ffffff;
    font-family: "Workbench", sans-serif;
    font-optical-sizing: auto;
    font-weight: 400;
    font-style: normal;
    font-variation-settings:
      "BLED" 0,
      "SCAN" 0;
    border-radius: 4px;
    transition: border-color 0.3s ease;
}

.form-group input:focus,
.form-group textarea:focus {
    outline: none;
    border-color: #8b7355;
}

.submit-btn {
    background-color: #8b7355;
    color: #ffffff;
    border: none;
    padding: 12px 24px;
    cursor: pointer;
    font-weight: 500;
    transition: all 0.3s ease;
    text-transform: uppercase;
    border-radius: 4px;
    font-family: "Workbench", sans-serif;
    font-optical-sizing: auto;
    font-style: normal;
    font-variation-settings:
      "BLED" 0,
      "SCAN" 0;
}

.submit-btn:hover {
    background-color: #6d5a43;
}

.vintage-benefits ul {
    list-style-position: inside;
    line-height: 2;
}

.vintage-benefits li {
    color: #4a4a4a;
    margin-bottom: 8px;
}

/* Footer */
.footer {
    background-color: #f8f8f8;
    border-top: 1px solid #e0e0e0;
    padding: 40px 20px 20px;
    margin-top: auto;
}

.footer-content {
    max-width: 1200px;
    margin: 0 auto;
    display: grid;
    grid-template-columns: 1fr 1fr 1fr;
    gap: 40px;
    align-items: start;
}

.footer-column h3 {
    color: #2c2c2c;
    font-size: 16px;
    margin-bottom: 15px;
    font-family: 'Workbench', Arial, sans-serif;
    font-weight: 500;
}

.footer-column p {
    color: #6a6a6a;
    font-size: 12px;
    margin-bottom: 8px;
    line-height: 1.4;
}

.social-links {
    display: flex;
    gap: 15px;
    margin-top: 15px;
}

.social-link {
    display: inline-flex;
    align-items: center;
    justify-content: center;
    width: 36px;
    height: 36px;
    background-color: #8b7355;
    color: white;
    border-radius: 50%;
    text-decoration: none;
    transition: all 0.3s ease;
    font-size: 16px;
}

.social-link:hover {
    background-color: #6d5a43;
    transform: translateY(-2px);
}

.footer-nav {
    list-style: none;
    padding: 0;
    margin: 0;
}

.footer-nav li {
    margin-bottom: 8px;
}

.footer-nav a {
    color: #6a6a6a;
    text-decoration: none;
    font-size: 13px;
    transition: color 0.3s ease;
}

.footer-nav a:hover {
    color: #8b7355;
}

.website-credit {
    color: #6a6a6a;
    font-size: 11px;
    margin-bottom: 5px;
}

.creator-name {
    margin: 0;
}

.creator-link {
    color: #8b7355;
    text-decoration: none;
    font-size: 12px;
    font-weight: 500;
    transition: color 0.3s ease;
    display: inline-flex;
    align-items: center;
    gap: 6px;
}

.creator-link:hover {
    color: #6d5a43;
}

.creator-link i {
    font-size: 14px;
}

/* Responsive design */
@media (max-width: 768px) {
    .container {
        border: none;
        margin: 0;
    }
    
    .header {
        padding: 15px;
    }
    
    .logo h1 {
        font-size: 24px;
    }
    
    .navigation ul {
        flex-direction: column;
        gap: 15px;
        justify-content: center;
    }
    
    .navigation ul .nav-main-group {
        position: static;
        transform: none;
        gap: 15px;
        margin: 0;
    }
    
    .navigation ul .nav-cart-group {
        margin-left: 0;
        margin-top: 10px;
    }
    
    .nav-link {
        padding: 6px 12px;
        font-size: 12px;
    }
    
    .main-content {
        padding: 20px;
    }
    
    .hero {
        flex-direction: column;
        gap: 20px;
    }
    
    .hero-title {
        font-size: 24px;
    }
    
    .hero-text {
        font-size: 14px;
    }
    
    .hero-content {
        text-align: center;
    }
    
    .cta-button {
        display: block;
        margin: 0 auto;
        text-align: center;
        width: fit-content;
    }
    
    .featured-image {
        max-width: 100%;
        height: 300px;
    }
    
    .product-grid,
    .products-grid {
        grid-template-columns: repeat(auto-fill, minmax(260px, 1fr));
        gap: 15px;
        padding: 0 5px;
    }
    
    .product-card,
    .product-item {
        min-height: 360px;
        padding: 12px;
    }
    
    .product-image {
        aspect-ratio: 3/4;
        margin-bottom: 12px;
    }
    
    .feature-grid {
        grid-template-columns: 1fr;
        gap: 20px;
    }
    
    .filter-container {
        flex-direction: column;
        gap: 20px;
    }
    
    .filter-buttons {
        gap: 10px;
    }
    
    .filter-btn {
        padding: 6px 12px;
        font-size: 11px;
    }
    
    .sort-select {
        padding: 10px 36px 10px 14px;
        font-size: 12px;
        min-width: 140px;
        background-position: 
            calc(100% - 14px) calc(1em + 1px),
            calc(100% - 10px) calc(1em + 1px);
        background-size: 
            5px 5px,
            5px 5px;
    }
    
    .about-section {
        padding: 20px;
    }
    
    .mission-content,
    .contact-content {
        grid-template-columns: 1fr;
        gap: 20px;
    }
    
    /* Footer responsive */
    .footer {
        padding: 30px 15px 15px;
    }
    
    .footer-content {
        grid-template-columns: 1fr;
        gap: 25px;
        text-align: center;
    }
    
    .social-links {
        justify-content: center;
    }
}

@media (max-width: 480px) {
    body {
        font-size: 12px;
    }
    
    .logo h1 {
        font-size: 20px;
    }
    
    .navigation ul {
        flex-direction: column;
        gap: 10px;
    }
    
    .hero-title {
        font-size: 20px;
    }
    
    .product-grid,
    .products-grid {
        grid-template-columns: 1fr 1fr;
        gap: 10px;
        padding: 0;
    }
    
    .product-card,
    .product-item {
        min-height: 320px;
        padding: 10px;
    }
    
    .product-image {
        aspect-ratio: 3/4;
        margin-bottom: 10px;
    }
    
    .product-card h4,
    .product-item h3 {
        font-size: 14px;
        min-height: 38px;
    }
    
    .product-description {
        font-size: 12px;
        -webkit-line-clamp: 2;
    }
    
    .product-price {
        font-size: 16px;
    }
    
    .main-content {
        padding: 15px;
    }
    
    .featured-image {
        max-width: 100%;
        height: 300px;
    }
}

/* Cart icon styling */
.cart-icon {
    width: 18px;
    height: 18px;
    display: inline-block;
    vertical-align: baseline;
    margin-right: 5px;
    object-fit: contain;
    transform: translateY(3px);
}

.btn .cart-icon,
.add-to-cart-btn .cart-icon,
.buy-now-btn .cart-icon,
.add-to-cart .cart-icon {
    width: 16px;
    height: 16px;
    margin-right: 8px;
    vertical-align: middle;
    transform: none;
}