/* Global Styles */
* {
    margin: 0;
    padding: 0;
    box-sizing: border-box;
}

body {
    font-family: 'Segoe UI', Tahoma, Geneva, Verdana, sans-serif;
    line-height: 1.6;
    color: #333;
    background: #f8f9fa;
}

.container {
    max-width: 1200px;
    margin: 0 auto;
    padding: 0 20px;
}

/* Header */
header {
    background: linear-gradient(135deg, #2d5016 0%, #3d6e1f 100%);
    color: white;
    padding: 20px 0;
    box-shadow: 0 4px 12px rgba(0,0,0,0.15);
    position: sticky;
    top: 0;
    z-index: 1000;
}

.header-content {
    display: flex;
    justify-content: space-between;
    align-items: center;
}

.logo {
    font-size: 24px;
    font-weight: bold;
    display: flex;
    align-items: center;
    gap: 10px;
}

.logo a {
    color: white;
    text-decoration: none;
}

nav ul {
    display: flex;
    list-style: none;
    gap: 25px;
}

nav a {
    color: white;
    text-decoration: none;
    font-weight: 500;
    padding: 8px 16px;
    border-radius: 5px;
    transition: all 0.3s ease;
}

nav a:hover, nav a.active {
    background: rgba(255,255,255,0.2);
}

.cart-link {
    background: rgba(255,215,0,0.2);
    font-weight: 600;
}

/* Breadcrumbs */
.breadcrumbs {
    background: white;
    padding: 15px 0;
    border-bottom: 1px solid #e9ecef;
}

.breadcrumbs a {
    color: #3d6e1f;
    text-decoration: none;
}

.breadcrumbs span {
    color: #666;
}

/* Shop Hero */
.shop-hero {
    background: linear-gradient(135deg, #2d5016 0%, #3d6e1f 100%);
    color: white;
    padding: 60px 20px;
    text-align: center;
}

.shop-hero h1 {
    font-size: 42px;
    margin-bottom: 15px;
}

/* Shop Page */
.shop-page {
    padding: 40px 20px;
}

.shop-controls {
    display: flex;
    justify-content: space-between;
    align-items: center;
    margin-bottom: 40px;
    gap: 20px;
    flex-wrap: wrap;
}

.category-filters {
    display: flex;
    gap: 10px;
    flex-wrap: wrap;
}

.filter-btn {
    padding: 10px 20px;
    background: white;
    border: 2px solid #e9ecef;
    border-radius: 25px;
    cursor: pointer;
    font-size: 15px;
    font-weight: 500;
    transition: all 0.3s ease;
}

.filter-btn:hover {
    border-color: #3d6e1f;
    background: #f8f9fa;
}

.filter-btn.active {
    background: linear-gradient(135deg, #2d5016 0%, #3d6e1f 100%);
    color: white;
    border-color: #3d6e1f;
}

.sort-controls {
    display: flex;
    align-items: center;
    gap: 10px;
}

.sort-controls select {
    padding: 8px 15px;
    border: 2px solid #e9ecef;
    border-radius: 5px;
    font-size: 15px;
}

/* Products Grid */
.products-grid {
    display: grid;
    grid-template-columns: repeat(auto-fill, minmax(280px, 1fr));
    gap: 30px;
}

.product-card {
    background: white;
    border-radius: 15px;
    overflow: hidden;
    box-shadow: 0 4px 15px rgba(0,0,0,0.1);
    transition: all 0.3s ease;
}

.product-card:hover {
    transform: translateY(-5px);
    box-shadow: 0 8px 25px rgba(45,80,22,0.2);
}

.product-link {
    text-decoration: none;
    color: inherit;
    display: block;
}

.product-card-image {
    position: relative;
    background: linear-gradient(135deg, #f8f9fa 0%, #e9ecef 100%);
    padding: 60px 20px;
    text-align: center;
}

.category-icon {
    font-size: 64px;
}

.category-badge {
    position: absolute;
    top: 10px;
    right: 10px;
    background: rgba(45,80,22,0.9);
    color: white;
    padding: 5px 12px;
    border-radius: 15px;
    font-size: 12px;
    font-weight: 600;
}

.product-card-content {
    padding: 20px;
}

.product-card-content h3 {
    font-size: 18px;
    color: #2d5016;
    margin-bottom: 10px;
}

.product-meta {
    display: flex;
    gap: 10px;
    margin-bottom: 10px;
    font-size: 14px;
    color: #666;
}

.product-meta .type {
    background: #f8f9fa;
    padding: 3px 10px;
    border-radius: 12px;
}

.product-potency {
    font-size: 14px;
    color: #666;
    margin-bottom: 10px;
}

.product-price {
    display: flex;
    align-items: baseline;
    gap: 5px;
}

.product-price .price {
    font-size: 24px;
    font-weight: bold;
    color: #2d5016;
}

.product-price .cad {
    font-size: 14px;
    color: #999;
}

.quick-add-btn {
    width: 100%;
    padding: 12px;
    background: #ffd700;
    border: none;
    border-radius: 0 0 15px 15px;
    font-size: 16px;
    font-weight: 600;
    color: #2d5016;
    cursor: pointer;
    transition: all 0.3s ease;
}

.quick-add-btn:hover {
    background: #ffed4e;
}

.no-results {
    text-align: center;
    padding: 60px 20px;
    font-size: 18px;
    color: #666;
}

/* Product Page */
.product-page {
    padding: 40px 20px;
    background: white;
}

.product-grid {
    display: grid;
    grid-template-columns: 1fr 1fr;
    gap: 60px;
    margin-bottom: 60px;
}

.product-image .image-placeholder {
    background: linear-gradient(135deg, #f8f9fa 0%, #e9ecef 100%);
    border-radius: 15px;
    padding: 100px 40px;
    text-align: center;
    margin-bottom: 20px;
}

.product-image .image-placeholder .category-icon {
    font-size: 120px;
    display: block;
    margin-bottom: 20px;
}

.product-image .image-placeholder p {
    font-size: 18px;
    font-weight: 600;
    color: #666;
}

.trust-badges {
    display: flex;
    flex-wrap: wrap;
    gap: 10px;
}

.trust-badges .badge {
    background: #f8f9fa;
    padding: 8px 15px;
    border-radius: 20px;
    font-size: 13px;
    font-weight: 500;
    border: 1px solid #e9ecef;
}

.product-info h1 {
    font-size: 36px;
    color: #2d5016;
    margin-bottom: 15px;
}

.product-meta {
    display: flex;
    gap: 10px;
    margin-bottom: 20px;
}

.category-tag, .type-tag {
    background: linear-gradient(135deg, #2d5016 0%, #3d6e1f 100%);
    color: white;
    padding: 6px 15px;
    border-radius: 15px;
    font-size: 14px;
    font-weight: 600;
}

.type-tag {
    background: #f8f9fa;
    color: #666;
    border: 1px solid #e9ecef;
}

.price-section {
    display: flex;
    align-items: baseline;
    gap: 15px;
    margin: 30px 0;
}

.price-section .price {
    font-size: 42px;
    font-weight: bold;
    color: #2d5016;
}

.price-section .size {
    font-size: 18px;
    color: #999;
}

.cannabinoids {
    display: flex;
    gap: 30px;
    margin: 30px 0;
    padding: 20px;
    background: #f8f9fa;
    border-radius: 10px;
}

.cannabinoid {
    font-size: 16px;
}

.cannabinoid strong {
    color: #2d5016;
}

.effects-section {
    margin: 30px 0;
}

.effects-section h3 {
    color: #2d5016;
    margin-bottom: 15px;
}

.effects-tags {
    display: flex;
    flex-wrap: wrap;
    gap: 10px;
}

.effect-tag {
    background: #ffd700;
    color: #2d5016;
    padding: 8px 16px;
    border-radius: 20px;
    font-size: 14px;
    font-weight: 500;
}

.quantity-section {
    margin: 30px 0;
}

.quantity-section label {
    display: block;
    margin-bottom: 10px;
    font-weight: 600;
    color: #2d5016;
}

.quantity-select {
    padding: 12px 20px;
    border: 2px solid #e9ecef;
    border-radius: 8px;
    font-size: 16px;
    min-width: 100px;
}

.add-to-cart-btn {
    width: 100%;
    padding: 18px 40px;
    background: linear-gradient(135deg, #2d5016 0%, #3d6e1f 100%);
    color: white;
    border: none;
    border-radius: 50px;
    font-size: 20px;
    font-weight: bold;
    cursor: pointer;
    transition: all 0.3s ease;
    margin: 30px 0;
}

.add-to-cart-btn:hover {
    transform: translateY(-2px);
    box-shadow: 0 6px 20px rgba(45,80,22,0.3);
}

.delivery-info {
    background: #fff3cd;
    padding: 20px;
    border-radius: 10px;
    border-left: 4px solid #ffd700;
}

.delivery-info p {
    margin-bottom: 10px;
}

.product-description {
    max-width: 900px;
    margin: 0 auto;
}

.product-description h2 {
    color: #2d5016;
    font-size: 32px;
    margin: 40px 0 20px;
}

.product-description h3 {
    color: #3d6e1f;
    font-size: 24px;
    margin: 30px 0 15px;
}

.product-description p {
    margin-bottom: 20px;
    line-height: 1.8;
}

.specs-table {
    width: 100%;
    border-collapse: collapse;
    margin: 30px 0;
}

.specs-table tr {
    border-bottom: 1px solid #e9ecef;
}

.specs-table td {
    padding: 15px 10px;
}

.specs-table td:first-child {
    width: 200px;
}

.warning-box {
    background: #fff3cd;
    border: 2px solid #ffd700;
    padding: 25px;
    border-radius: 10px;
    margin: 40px 0;
}

.warning-box h3 {
    color: #856404;
    margin-bottom: 15px;
}

.warning-box ul {
    margin-left: 20px;
}

.warning-box li {
    margin-bottom: 10px;
}

.related-products {
    margin: 60px 0 40px;
    text-align: center;
}

.related-products h2 {
    color: #2d5016;
    margin-bottom: 20px;
}

/* Cart Page */
.cart-page {
    padding: 40px 20px;
    min-height: 60vh;
}

.cart-page h1 {
    font-size: 36px;
    color: #2d5016;
    margin-bottom: 40px;
}

.cart-empty {
    text-align: center;
    padding: 80px 20px;
}

.cart-empty p {
    font-size: 24px;
    color: #999;
    margin-bottom: 30px;
}

.continue-shopping-btn {
    display: inline-block;
    padding: 15px 40px;
    background: linear-gradient(135deg, #2d5016 0%, #3d6e1f 100%);
    color: white;
    text-decoration: none;
    border-radius: 50px;
    font-weight: 600;
    transition: all 0.3s ease;
}

.continue-shopping-btn:hover {
    transform: translateY(-2px);
    box-shadow: 0 6px 20px rgba(45,80,22,0.3);
}

.cart-content {
    display: flex;
    gap: 40px;
}

.cart-items {
    flex: 2;
}

.cart-item {
    display: grid;
    grid-template-columns: 80px 1fr 150px 120px 50px;
    gap: 20px;
    align-items: center;
    padding: 20px;
    background: white;
    border-radius: 15px;
    margin-bottom: 20px;
    box-shadow: 0 2px 10px rgba(0,0,0,0.08);
}

.cart-item .item-image {
    background: linear-gradient(135deg, #f8f9fa 0%, #e9ecef 100%);
    border-radius: 10px;
    padding: 15px;
    text-align: center;
}

.cart-item .item-image .category-icon {
    font-size: 36px;
}

.item-details h3 {
    font-size: 18px;
    color: #2d5016;
    margin-bottom: 5px;
}

.item-details h3 a {
    color: #2d5016;
    text-decoration: none;
}

.item-details h3 a:hover {
    text-decoration: underline;
}

.item-meta {
    font-size: 14px;
    color: #666;
    margin-bottom: 5px;
}

.item-potency {
    font-size: 13px;
    color: #999;
}

.item-quantity {
    display: flex;
    align-items: center;
    gap: 10px;
}

.item-quantity button {
    width: 32px;
    height: 32px;
    border: 2px solid #e9ecef;
    background: white;
    border-radius: 5px;
    cursor: pointer;
    font-size: 18px;
    transition: all 0.3s ease;
}

.item-quantity button:hover {
    border-color: #3d6e1f;
    background: #f8f9fa;
}

.item-quantity input {
    width: 60px;
    height: 32px;
    text-align: center;
    border: 2px solid #e9ecef;
    border-radius: 5px;
    font-size: 16px;
}

.item-price .price {
    font-size: 20px;
    font-weight: bold;
    color: #2d5016;
}

.item-remove button {
    width: 32px;
    height: 32px;
    border: none;
    background: #f8f9fa;
    border-radius: 5px;
    cursor: pointer;
    font-size: 18px;
    color: #999;
    transition: all 0.3s ease;
}

.item-remove button:hover {
    background: #dc3545;
    color: white;
}

.cart-summary {
    flex: 1;
    background: white;
    padding: 30px;
    border-radius: 15px;
    box-shadow: 0 4px 15px rgba(0,0,0,0.1);
    align-self: flex-start;
    position: sticky;
    top: 100px;
}

.cart-summary h2 {
    color: #2d5016;
    margin-bottom: 25px;
}

.summary-row {
    display: flex;
    justify-content: space-between;
    padding: 15px 0;
    border-bottom: 1px solid #e9ecef;
}

.summary-row.total {
    border-bottom: none;
    border-top: 2px solid #2d5016;
    font-size: 22px;
    font-weight: bold;
    color: #2d5016;
    margin-top: 15px;
}

.summary-row.taxes {
    font-size: 14px;
    color: #666;
}

.free-delivery-notice {
    color: #28a745;
    font-weight: 600;
}

.summary-progress {
    margin: 20px 0;
}

.progress-message {
    text-align: center;
    font-size: 14px;
    color: #666;
    margin-bottom: 10px;
}

.progress-bar {
    height: 8px;
    background: #e9ecef;
    border-radius: 10px;
    overflow: hidden;
}

.progress-fill {
    height: 100%;
    background: linear-gradient(135deg, #2d5016 0%, #3d6e1f 100%);
    transition: width 0.3s ease;
}

.checkout-btn {
    width: 100%;
    padding: 15px;
    background: linear-gradient(135deg, #2d5016 0%, #3d6e1f 100%);
    color: white;
    border: none;
    border-radius: 50px;
    font-size: 18px;
    font-weight: bold;
    cursor: pointer;
    margin: 25px 0 15px;
    transition: all 0.3s ease;
}

.checkout-btn:hover {
    transform: translateY(-2px);
    box-shadow: 0 6px 20px rgba(45,80,22,0.3);
}

.continue-shopping {
    display: block;
    text-align: center;
    color: #3d6e1f;
    text-decoration: none;
    font-weight: 500;
    margin-bottom: 20px;
}

.cart-notice {
    background: #f8f9fa;
    padding: 20px;
    border-radius: 10px;
    font-size: 14px;
    line-height: 1.6;
}

.cart-notice p {
    margin-bottom: 10px;
}

/* Footer */
footer {
    background: #1a1a1a;
    color: white;
    padding: 40px 20px;
    text-align: center;
    margin-top: 80px;
}

footer a {
    color: #ffd700;
    text-decoration: none;
}

footer a:hover {
    text-decoration: underline;
}

/* Responsive Design */
@media (max-width: 968px) {
    .product-grid {
        grid-template-columns: 1fr;
        gap: 40px;
    }
    
    .cart-content {
        flex-direction: column;
    }
    
    .cart-summary {
        position: static;
    }
    
    .cart-item {
        grid-template-columns: 60px 1fr 120px 40px;
        gap: 15px;
    }
    
    .item-price {
        grid-column: 2;
    }
    
    .item-remove {
        grid-column: 4;
        grid-row: 1;
    }
}

@media (max-width: 768px) {
    nav ul {
        display: none;
    }
    
    .shop-hero h1 {
        font-size: 28px;
    }
    
    .products-grid {
        grid-template-columns: 1fr;
    }
    
    .product-info h1 {
        font-size: 28px;
    }
    
    .price-section .price {
        font-size: 32px;
    }
    
    .cart-item {
        grid-template-columns: 1fr;
        text-align: center;
    }
    
    .item-quantity {
        justify-content: center;
    }
}