/**
 * Modern E-Commerce Design System
 * Clean, sharp, contemporary aesthetic
 */

/* Reset and Base Styles */
* {
    margin: 0;
    padding: 0;
    box-sizing: border-box;
}

body {
    font-family: -apple-system, BlinkMacSystemFont, 'Segoe UI', 'Roboto', 'Helvetica Neue', Arial, sans-serif;
    font-size: 14px;
    line-height: 1.6;
    color: #1a1a1a;
    background: #ffffff;
    font-weight: 400;
}

/* Optimize images for retina displays */
img {
    image-rendering: auto;
    -webkit-backface-visibility: hidden;
    backface-visibility: hidden;
    -webkit-transform: translateZ(0);
    transform: translateZ(0);
}

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

/* Top Contact Bar */
.top-bar {
    background: #006CA6;
    color: #fff;
    padding: 12px 0;
    font-size: 14px;
    transition: transform 0.3s ease, opacity 0.3s ease;
}

.top-bar.hide-on-scroll {
    transform: translateY(-100%);
    opacity: 0;
}

.contact-info {
    display: flex;
    flex-wrap: wrap;
    gap: 30px;
    justify-content: center;
    align-items: center;
}

.contact-item {
    display: inline-flex;
    align-items: center;
    gap: 5px;
}

.contact-item a {
    color: #fff;
    text-decoration: none;
    font-weight: 500;
    transition: opacity 0.3s;
}

.contact-item a:hover {
    opacity: 0.85;
}

/* Header */
.site-header {
    background: #fff;
    box-shadow: 0 2px 8px rgba(0,0,0,0.08);
    padding: 20px 0;
    position: sticky;
    top: 0;
    z-index: 1000;
}

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

.logo {
    transition: transform 0.3s ease, opacity 0.3s ease;
}

.logo.hide-on-scroll {
    transform: translateY(-100%);
    opacity: 0;
    position: absolute;
}

.logo a {
    text-decoration: none;
    color: #006CA6;
}

.logo h1 {
    font-size: 26px;
    font-weight: 700;
    margin-bottom: 2px;
    color: #006CA6;
}

.logo .tagline {
    font-size: 12px;
    color: #3FC4DD;
    font-weight: 500;
}

/* Header Search */
.header-search {
    display: flex;
    gap: 0;
    max-width: 280px;
    min-width: 200px;
    flex-shrink: 1;
}

.search-input {
    flex: 1;
    padding: 8px 12px;
    font-size: 14px;
    border: 2px solid #E5E5E5;
    border-right: none;
    border-radius: 0;
    font-family: inherit;
    outline: none;
    min-width: 0;
}

.search-input:focus {
    border-color: #006CA6;
}

.search-button {
    background: #006CA6;
    color: white;
    border: none;
    padding: 8px 16px;
    font-size: 16px;
    cursor: pointer;
    border-radius: 0;
    transition: background 0.3s;
    flex-shrink: 0;
}

.search-button:hover {
    background: #005a8a;
}

/* Navigation */
.main-nav ul {
    list-style: none;
    display: flex;
    gap: 5px;
    flex-wrap: wrap;
    align-items: center;
}

.main-nav a {
    text-decoration: none;
    color: #414042;
    font-size: 14px;
    font-weight: 600;
    padding: 8px 14px;
    border-radius: 4px;
    display: inline-block;
    transition: all 0.3s;
    white-space: nowrap;
}

.main-nav a:hover,
.main-nav a:focus {
    background: #F0F0F0;
    color: #006CA6;
}

.cart-link {
    background: #00B551 !important;
    color: #fff !important;
}

.cart-link:hover {
    background: #009944 !important;
}

.cart-count {
    background: #fff;
    color: #00B551;
    padding: 2px 10px;
    border-radius: 4px;
    font-size: 13px;
    font-weight: 700;
}

/* Main Content */
.main-content {
    padding: 50px 0;
    min-height: 60vh;
}

/* Page Titles */
h1, h2 {
    color: #006CA6;
    margin-bottom: 20px;
    line-height: 1.2;
    font-weight: 700;
}

h1 {
    font-size: 32px;
}

h2 {
    font-size: 24px;
}

h3 {
    font-size: 18px;
    color: #414042;
    margin-bottom: 15px;
    font-weight: 700;
}

/* Buttons */
.btn {
    display: inline-block;
    padding: 14px 32px;
    font-size: 16px;
    font-weight: 700;
    text-decoration: none;
    text-align: center;
    border-radius: 4px;
    cursor: pointer;
    transition: all 0.3s;
    border: none;
    font-family: inherit;
    letter-spacing: 0.3px;
}

.btn-primary {
    background: #00B551;
    color: #fff;
}

.btn-primary:hover,
.btn-primary:focus {
    background: #009944;
    transform: translateY(-1px);
    box-shadow: 0 4px 12px rgba(0, 181, 81, 0.3);
}

.btn-secondary {
    background: #006CA6;
    color: #fff;
}

.btn-secondary:hover,
.btn-secondary:focus {
    background: #005a8a;
    transform: translateY(-1px);
    box-shadow: 0 4px 12px rgba(0, 108, 166, 0.3);
}

.btn-danger {
    background: #dc3545;
    color: #fff;
    border-radius: 4px;
}

.btn-danger:hover,
.btn-danger:focus {
    background: #c82333;
}

.btn-large {
    font-size: 18px;
    padding: 16px 40px;
}

.btn:disabled {
    opacity: 0.6;
    cursor: not-allowed;
}

/* Products Page Layout */
.products-page {
    max-width: 100%;
}

.products-header {
    margin-bottom: 30px;
}

.products-layout {
    display: flex;
    gap: 30px;
    align-items: flex-start;
}

/* Mobile Filter Toggle */
.mobile-filter-toggle {
    display: none;
    width: 100%;
    padding: 14px 20px;
    background: #006CA6;
    color: white;
    border: none;
    border-radius: 4px;
    font-size: 16px;
    font-weight: 700;
    cursor: pointer;
    margin-bottom: 20px;
    transition: background 0.3s;
}

.mobile-filter-toggle:hover {
    background: #005a8a;
}

/* Filter Sidebar */
.filter-sidebar {
    flex: 0 0 280px;
    background: #fff;
    border: 1px solid #E5E5E5;
    border-radius: 8px;
    padding: 25px;
    position: sticky;
    top: 90px;
    max-height: calc(100vh - 110px);
    overflow-y: auto;
}

.filter-sidebar-header {
    display: flex;
    justify-content: space-between;
    align-items: center;
    margin-bottom: 20px;
}

.filter-sidebar-header h2 {
    font-size: 24px;
    color: #006CA6;
    margin: 0;
}

.mobile-filter-close {
    display: none;
    background: none;
    border: none;
    font-size: 28px;
    color: #666;
    cursor: pointer;
    padding: 0;
    line-height: 1;
}

/* Active Filters Summary */
.active-filters-summary {
    display: flex;
    justify-content: space-between;
    align-items: center;
    padding: 12px;
    background: #E8F5E9;
    border-radius: 6px;
    margin-bottom: 20px;
    font-size: 14px;
    font-weight: 600;
    color: #2E7D32;
}

.clear-filters {
    color: #006CA6;
    text-decoration: none;
    font-weight: 700;
    font-size: 13px;
    transition: color 0.3s;
}

.clear-filters:hover {
    color: #3FC4DD;
    text-decoration: underline;
}

/* Filter Sections */
.filter-section {
    margin-bottom: 30px;
    padding-bottom: 25px;
    border-bottom: 1px solid #E5E5E5;
}

.filter-section:last-of-type {
    border-bottom: none;
}

.filter-section h3 {
    font-size: 16px;
    font-weight: 700;
    color: #414042;
    margin-bottom: 15px;
}

/* Filter Select */
.filter-select {
    width: 100%;
    padding: 10px 12px;
    font-size: 14px;
    border: 2px solid #E5E5E5;
    border-radius: 4px;
    background: white;
    font-family: inherit;
    cursor: pointer;
    transition: border-color 0.3s;
}

.filter-select:focus {
    outline: none;
    border-color: #006CA6;
}

/* Filter Options */
.filter-options {
    display: flex;
    flex-direction: column;
    gap: 10px;
}

.filter-checkbox {
    display: flex;
    align-items: center;
    gap: 10px;
    cursor: pointer;
    padding: 8px;
    border-radius: 4px;
    transition: background 0.2s;
    font-size: 14px;
}

.filter-checkbox:hover {
    background: #F5F5F5;
}

.filter-checkbox input[type="checkbox"],
.filter-checkbox input[type="radio"] {
    width: 18px;
    height: 18px;
    cursor: pointer;
    accent-color: #006CA6;
}

.filter-checkbox span {
    flex: 1;
    color: #414042;
}

/* Price Inputs */
.price-inputs {
    display: flex;
    align-items: center;
    gap: 10px;
    margin-bottom: 10px;
}

.price-inputs input {
    flex: 1;
    padding: 10px;
    font-size: 14px;
    border: 2px solid #E5E5E5;
    border-radius: 4px;
    text-align: center;
    font-weight: 600;
}

.price-inputs input:focus {
    outline: none;
    border-color: #006CA6;
}

.price-inputs span {
    color: #666;
    font-size: 14px;
}

.price-range-info {
    font-size: 13px;
    color: #666;
    text-align: center;
}

/* Filter Apply Button */
.filter-apply-btn {
    width: 100%;
    margin-top: 20px;
}

/* Filter Overlay (Mobile) */
.filter-overlay {
    display: none;
    position: fixed;
    top: 0;
    left: 0;
    right: 0;
    bottom: 0;
    background: rgba(0, 0, 0, 0.5);
    z-index: 999;
}

.filter-overlay.active {
    display: block;
}

/* Filter Loading Indicator */
.filter-loading {
    position: fixed;
    top: 50%;
    left: 50%;
    transform: translate(-50%, -50%);
    background: white;
    padding: 40px 60px;
    border-radius: 12px;
    box-shadow: 0 8px 32px rgba(0, 0, 0, 0.2);
    z-index: 10000;
    display: flex;
    flex-direction: column;
    align-items: center;
    gap: 20px;
}

.filter-loading-spinner {
    width: 50px;
    height: 50px;
    border: 5px solid #E5E5E5;
    border-top: 5px solid #006CA6;
    border-radius: 50%;
    animation: spin 0.8s linear infinite;
}

.filter-loading p {
    margin: 0;
    font-size: 16px;
    font-weight: 600;
    color: #006CA6;
}

@keyframes spin {
    0% { transform: rotate(0deg); }
    100% { transform: rotate(360deg); }
}

/* Products Main Area */
.products-main {
    flex: 1;
    min-width: 0;
}

.products-results-header {
    margin-bottom: 20px;
    padding-bottom: 15px;
    border-bottom: 2px solid #E5E5E5;
}

.products-results-header p {
    font-size: 16px;
    color: #666;
    font-weight: 600;
}

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

/* Clickable Product Card */
.product-card {
    position: relative;
    background: #fff;
    border: 1px solid #E5E5E5;
    border-radius: 12px;
    overflow: hidden;
    transition: all 0.2s ease;
    text-align: center;
    box-shadow: 0 2px 8px rgba(0,0,0,0.06);
    cursor: pointer;
    display: block;
    text-decoration: none;
    color: inherit;
}

.product-card:hover {
    box-shadow: 0 4px 12px rgba(0,0,0,0.1);
    border-color: #ccc;
}

.product-card-inner {
    padding: 0;
}

.product-card-image-wrapper {
    position: relative;
    width: 100%;
    height: 220px;
    overflow: hidden;
    background: #f8f9fa;
}

.product-card img {
    width: 100%;
    height: 100%;
    object-fit: cover;
    transition: opacity 0.2s ease;
}

.product-card:hover img {
    opacity: 0.95;
}

/* View Details Overlay */
.product-card-overlay {
    position: absolute;
    top: 0;
    left: 0;
    right: 0;
    bottom: 0;
    background: rgba(255, 255, 255, 0.05);
    display: flex;
    align-items: flex-end;
    justify-content: center;
    padding: 30px;
    opacity: 0;
    transition: opacity 0.2s ease;
    pointer-events: none;
}

.product-card:hover .product-card-overlay {
    opacity: 1;
}

.product-card-view-text {
    color: transparent;
    font-size: 0;
    display: none;
}

/* Badge */
.product-card-badge {
    position: absolute;
    top: 15px;
    right: 15px;
    background: #FF6B6B;
    color: white;
    padding: 8px 16px;
    border-radius: 6px;
    font-weight: 700;
    font-size: 13px;
    z-index: 2;
    box-shadow: 0 2px 8px rgba(255, 107, 107, 0.4);
}

/* Content Area */
.product-card-content {
    padding: 24px;
}

.product-card h3 {
    font-size: 16px;
    margin-bottom: 12px;
    min-height: 40px;
    color: #2c3e50;
    font-weight: 700;
    line-height: 1.4;
}

/* Rating */
.product-card-rating {
    display: flex;
    align-items: center;
    gap: 8px;
    justify-content: center;
    margin: 12px 0;
}

.product-card-stars {
    color: #FFA41C;
    font-size: 14px;
    letter-spacing: 2px;
}

.product-card-reviews {
    color: #666;
    font-size: 12px;
}

/* Price Section */
.product-card-price-section {
    margin: 16px 0;
}

.product-card .price {
    font-size: 28px;
    color: #00B551;
    font-weight: 800;
    margin: 0;
    line-height: 1;
}

.product-card-price-original {
    display: flex;
    align-items: center;
    justify-content: center;
    gap: 12px;
    margin-top: 8px;
}

.product-card-list-price {
    text-decoration: line-through;
    color: #999;
    font-size: 14px;
}

.product-card-savings {
    color: #00B551;
    font-weight: 700;
    font-size: 13px;
    background: #e8f5e9;
    padding: 4px 10px;
    border-radius: 6px;
}

.product-card .description {
    font-size: 15px;
    color: #6B6B6B;
    margin: 16px 0;
    line-height: 1.6;
    min-height: 70px;
    display: -webkit-box;
    -webkit-line-clamp: 3;
    -webkit-box-orient: vertical;
    overflow: hidden;
}

/* Stock Info */
.product-card-stock {
    margin: 14px 0;
    font-size: 15px;
    color: #27ae60;
    font-weight: 600;
}

/* Remove old button styles from cards */
.product-card .btn {
    display: none;
}

/* Product Detail Page */
.product-detail {
    display: grid;
    grid-template-columns: 1fr 1fr;
    gap: 60px;
    margin-top: 40px;
    background: #fff;
    padding: 50px;
    border-radius: 0;
    box-shadow: 0 4px 20px rgba(0,0,0,0.08);
}

.product-image img {
    width: 100%;
    border-radius: 0;
    box-shadow: 0 4px 16px rgba(0,0,0,0.1);
}

/* Image Carousel */
.image-carousel {
    width: 100%;
}

.carousel-main {
    position: relative;
    width: 100%;
    margin-bottom: 20px;
}

.carousel-main img {
    width: 100%;
    border-radius: 0;
    box-shadow: 0 4px 16px rgba(0,0,0,0.1);
}

.carousel-btn {
    position: absolute;
    top: 50%;
    transform: translateY(-50%);
    background: rgba(0, 108, 166, 0.8);
    color: #fff;
    border: none;
    width: 50px;
    height: 50px;
    border-radius: 0;
    font-size: 32px;
    cursor: pointer;
    transition: all 0.3s;
    display: flex;
    align-items: center;
    justify-content: center;
    line-height: 1;
}

.carousel-btn:hover {
    background: rgba(0, 108, 166, 1);
    transform: translateY(-50%) scale(1.1);
}

.carousel-prev {
    left: 15px;
}

.carousel-next {
    right: 15px;
}

.carousel-counter {
    position: absolute;
    bottom: 15px;
    right: 15px;
    background: rgba(0, 108, 166, 0.9);
    color: #fff;
    padding: 8px 15px;
    border-radius: 0;
    font-size: 14px;
    font-weight: 600;
}

.carousel-thumbnails {
    display: grid;
    grid-template-columns: repeat(auto-fill, minmax(80px, 1fr));
    gap: 12px;
}

.thumbnail {
    width: 100%;
    height: 80px;
    object-fit: cover;
    border-radius: 0;
    cursor: pointer;
    border: 3px solid transparent;
    transition: all 0.3s;
}

.thumbnail:hover {
    border-color: #3FC4DD;
    transform: scale(1.05);
}

.thumbnail.active {
    border-color: #00B551;
    box-shadow: 0 0 0 2px rgba(0, 181, 81, 0.2);
}

.product-info h1 {
    margin-bottom: 15px;
    font-size: 38px;
}

.product-info .price {
    font-size: 42px;
    color: #00B551;
    font-weight: 700;
    margin: 25px 0;
}

.product-info .description {
    font-size: 17px;
    line-height: 1.7;
    margin-bottom: 30px;
    color: #414042;
}

.product-features {
    margin: 35px 0;
    background: #F0F0F0;
    padding: 30px;
    border-radius: 0;
    border-left: 4px solid #F7914C;
}

.product-features h3 {
    margin-bottom: 20px;
    color: #006CA6;
}

.product-features ul {
    list-style: none;
    padding: 0;
}

.product-features li {
    padding: 12px 0;
    border-bottom: 1px solid #d0d0d0;
    font-size: 16px;
    color: #414042;
}

.product-features li:last-child {
    border-bottom: none;
}

.product-features li:before {
    content: "✓ ";
    color: #00B551;
    font-weight: bold;
    font-size: 20px;
    margin-right: 10px;
}

.stock-info {
    font-size: 16px;
    color: #00B551;
    margin: 20px 0;
    font-weight: 600;
}

/* Shopping Cart */
.cart-table {
    width: 100%;
    border-collapse: collapse;
    margin: 40px 0;
    font-size: 16px;
    background: #fff;
    border-radius: 0;
    overflow: hidden;
    box-shadow: 0 4px 16px rgba(0,0,0,0.08);
}

.cart-table th,
.cart-table td {
    padding: 20px;
    text-align: left;
    border-bottom: 1px solid #E5E5E5;
}

.cart-table th {
    background: #006CA6;
    color: #fff;
    font-size: 16px;
    font-weight: 700;
}

.cart-table img {
    width: 90px;
    height: 90px;
    object-fit: cover;
    border-radius: 0;
}

.cart-table .quantity-input {
    width: 80px;
    padding: 10px;
    font-size: 16px;
    text-align: center;
    border: 2px solid #E5E5E5;
    border-radius: 4px;
    font-weight: 600;
}

.cart-table .price {
    font-size: 20px;
    font-weight: 700;
    color: #00B551;
}

.cart-total {
    text-align: right;
    font-size: 28px;
    margin: 30px 0;
    padding: 25px;
    background: #F0F0F0;
    border-radius: 0;
    font-weight: 700;
}

.cart-total strong {
    color: #006CA6;
}

.cart-actions {
    display: flex;
    justify-content: space-between;
    gap: 20px;
    margin-top: 40px;
}

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

.empty-cart p {
    font-size: 22px;
    color: #6B6B6B;
    margin-bottom: 30px;
}

/* Forms */
.checkout-form {
    max-width: 100%;
}

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

.form-group label {
    display: block;
    font-size: 16px;
    font-weight: 700;
    margin-bottom: 10px;
    color: #414042;
}

.form-group input,
.form-group textarea {
    width: 100%;
    padding: 14px 18px;
    font-size: 16px;
    border: 2px solid #E5E5E5;
    border-radius: 4px;
    font-family: inherit;
    transition: all 0.3s;
}

.form-group input:focus,
.form-group textarea:focus {
    outline: none;
    border-color: #3FC4DD;
    box-shadow: 0 0 0 3px rgba(63, 196, 221, 0.15);
}

.form-group textarea {
    min-height: 120px;
    resize: vertical;
}

.form-required {
    color: #F7914C;
    font-weight: bold;
}

.order-summary {
    background: #F0F0F0;
    padding: 30px;
    border-radius: 0;
    border: 2px solid #E5E5E5;
}

.order-summary h3 {
    margin-bottom: 25px;
    color: #006CA6;
    font-size: 24px;
}

.order-summary-item {
    display: flex;
    justify-content: space-between;
    padding: 15px 0;
    border-bottom: 1px solid #d0d0d0;
    font-size: 16px;
}

.order-summary-total {
    font-size: 28px;
    font-weight: 700;
    color: #00B551;
    margin-top: 25px;
}

/* Success Messages */
.success-message {
    background: linear-gradient(135deg, #E8F8F0 0%, #D4F1E4 100%);
    border: 3px solid #00B551;
    color: #006B35;
    padding: 50px;
    border-radius: 0;
    margin: 40px 0;
    text-align: center;
    box-shadow: 0 4px 20px rgba(0, 181, 81, 0.2);
}

.success-message h2 {
    color: #006B35;
    margin-bottom: 20px;
}

.success-message h1 {
    color: #006B35;
}

.success-message p {
    font-size: 17px;
    margin: 15px 0;
}

.order-number {
    font-size: 32px;
    font-weight: 700;
    color: #00B551;
    margin: 25px 0;
    padding: 20px;
    background: #fff;
    border-radius: 0;
    display: inline-block;
}

/* Footer */
.site-footer {
    background: #414042;
    color: #E0E0E0;
    padding: 60px 0 25px;
    margin-top: 80px;
    font-size: 15px;
}

.footer-columns {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(240px, 1fr));
    gap: 50px;
    margin-bottom: 50px;
}

.footer-column h3 {
    color: #fff;
    font-size: 20px;
    margin-bottom: 20px;
    font-weight: 700;
}

.footer-column ul {
    list-style: none;
}

.footer-column li {
    margin-bottom: 12px;
}

.footer-column a {
    color: #E0E0E0;
    text-decoration: none;
    font-size: 15px;
    transition: color 0.3s;
}

.footer-column a:hover {
    color: #3FC4DD;
}

.footer-column p {
    line-height: 1.7;
    font-size: 15px;
}

.footer-bottom {
    text-align: center;
    padding-top: 30px;
    border-top: 1px solid #5A5A5A;
    font-size: 14px;
}

.footer-bottom p {
    margin: 10px 0;
}

.wp-credit {
    color: #999;
}

.wp-credit a {
    color: #3FC4DD;
    text-decoration: none;
}

/* Hero Section */
.hero {
    text-align: center;
    padding: 50px 0;
}

.hero h1 {
    font-size: 48px;
    margin-bottom: 20px;
    font-weight: 700;
}

.hero p {
    font-size: 20px;
    color: #6B6B6B;
    max-width: 850px;
    margin: 0 auto;
    line-height: 1.6;
}

/* Benefits Section */
.benefits {
    background: #F0F0F0;
    padding: 50px 40px;
    border-radius: 0;
    margin: 50px 0;
}

/* CTA Section */
.cta {
    background: linear-gradient(135deg, #006CA6 0%, #3FC4DD 100%);
    color: white;
    padding: 60px 40px;
    border-radius: 0;
    margin: 80px 0;
    text-align: center;
}

.cta h2 {
    color: #fff;
    font-size: 38px;
    margin-bottom: 20px;
}

.cta p {
    font-size: 20px;
    margin-bottom: 25px;
}

/* Info Boxes */
div[style*="background: #d1ecf1"],
div[style*="background: #d4edda"],
div[style*="background: #f8f9fa"] {
    border-radius: 0 !important;
    padding: 30px !important;
}

/* Responsive Design */
@media (max-width: 968px) {
    .product-detail {
        grid-template-columns: 1fr !important;
        padding: 30px;
    }

    .header-content {
        flex-direction: column;
        text-align: center;
        gap: 15px;
    }

    .header-search {
        width: 100%;
        max-width: 100%;
        order: -1;
    }

    .main-nav ul {
        justify-content: center;
    }

    .products-grid {
        grid-template-columns: repeat(auto-fill, minmax(280px, 1fr));
        gap: 20px;
    }

    .product-card-image-wrapper {
        height: 240px;
    }

    .product-card h3 {
        font-size: 17px;
        min-height: 40px;
    }

    .product-card .price {
        font-size: 28px;
    }

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

    .cart-actions {
        flex-direction: column;
    }

    .contact-info {
        flex-direction: column;
        gap: 12px;
    }

    h1 {
        font-size: 36px;
    }

    .hero h1 {
        font-size: 38px;
    }

    .cta h2 {
        font-size: 32px;
    }
}

/* Mobile Filter Styles */
@media (max-width: 768px) {
    .mobile-filter-toggle {
        display: block;
    }

    .products-layout {
        flex-direction: column;
    }

    .filter-sidebar {
        position: fixed;
        top: 0;
        left: -100%;
        width: 85%;
        max-width: 320px;
        height: 100vh;
        max-height: 100vh;
        z-index: 1000;
        transition: left 0.3s ease;
        border-radius: 0;
        border: none;
        box-shadow: 2px 0 10px rgba(0, 0, 0, 0.2);
    }

    .filter-sidebar.mobile-open {
        left: 0;
    }

    .mobile-filter-close {
        display: block;
    }

    .products-main {
        width: 100%;
    }

    .products-grid {
        grid-template-columns: repeat(auto-fill, minmax(250px, 1fr));
        gap: 15px;
    }
}

@media (max-width: 600px) {
    body {
        font-size: 15px;
    }

    .logo h1 {
        font-size: 26px;
    }

    h1 {
        font-size: 30px;
    }

    h2 {
        font-size: 26px;
    }

    .main-nav a {
        font-size: 14px;
        padding: 8px 18px;
    }

    .btn {
        font-size: 15px;
        padding: 12px 24px;
    }

    .cart-table {
        font-size: 14px;
    }

    .cart-table th,
    .cart-table td {
        padding: 14px 10px;
    }

    .hero h1 {
        font-size: 32px;
    }
}

/* Loading spinner */
.loading {
    display: inline-block;
    width: 18px;
    height: 18px;
    border: 3px solid #f3f3f3;
    border-top: 3px solid #00B551;
    border-radius: 50%;
    animation: spin 1s linear infinite;
    margin-left: 10px;
}

@keyframes spin {
    0% { transform: rotate(0deg); }
    100% { transform: rotate(360deg); }
}

/* Alert messages */
.alert {
    padding: 18px 24px;
    margin: 20px 0;
    border-radius: 0;
    font-size: 16px;
}

.alert-success {
    background: #E8F8F0;
    color: #006B35;
    border: 2px solid #00B551;
}

.alert-error {
    background: #FDEAEA;
    color: #C92A2A;
    border: 2px solid #dc3545;
}

.alert-info {
    background: #E3F6FC;
    color: #0C5460;
    border: 2px solid #3FC4DD;
}

/* Breadcrumbs */
nav[style*="margin-bottom"] {
    margin-bottom: 30px !important;
    font-size: 15px !important;
}

/* Additional professional touches */
.product-card,
.order-summary,
.product-detail {
    transition: all 0.3s ease;
}

a {
    transition: all 0.3s ease;
}

/* Table improvements */
table a {
    color: #006CA6;
    font-weight: 600;
}

table a:hover {
    color: #3FC4DD;
}

/* Product Description Full Width */
.product-description-full {
    background: #fff;
    padding: 50px;
    border-radius: 0;
    box-shadow: 0 4px 20px rgba(0,0,0,0.08);
}

.description-content {
    max-width: 100%;
    font-size: 17px;
    line-height: 1.8;
    color: #414042;
}

.description-content h1,
.description-content h2 {
    color: #006CA6;
    margin-top: 40px;
    margin-bottom: 20px;
    font-weight: 700;
    padding-bottom: 12px;
    border-bottom: 3px solid #3FC4DD;
}

.description-content h1:first-child,
.description-content h2:first-child {
    margin-top: 0;
}

.description-content h2 {
    font-size: 32px;
}

.description-content h3 {
    color: #414042;
    font-size: 24px;
    margin-top: 30px;
    margin-bottom: 15px;
    font-weight: 700;
}

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

.description-content ul {
    margin: 25px 0;
    padding-left: 30px;
    list-style: none;
}

.description-content ul li {
    margin-bottom: 12px;
    padding-left: 25px;
    position: relative;
    line-height: 1.7;
}

.description-content ul li:before {
    content: "✓";
    position: absolute;
    left: 0;
    color: #00B551;
    font-weight: bold;
    font-size: 18px;
}

.description-content strong {
    color: #006CA6;
    font-weight: 700;
}

.description-content em {
    font-style: italic;
    color: #6B6B6B;
}

/* Description Images */
.description-content img,
.description-image {
    max-width: 100%;
    height: auto;
    border-radius: 0;
    box-shadow: none;
}

.description-content img {
    cursor: default;
}

/* Image gallery in description - flex layout for side-by-side display */
.description-images-row {
    display: flex;
    flex-wrap: wrap;
    gap: 0;
    align-items: flex-start;
    justify-content: flex-start;
    margin: 40px 0;
}

.description-images-row img {
    flex: 0 0 auto;
    max-width: 100%;
    height: auto;
    margin: 0;
    padding: 0;
    border: none;
    /* Display at natural size, let wrapping happen naturally */
}

/* On smaller screens, stack images vertically */
@media (max-width: 768px) {
    .description-images-row {
        flex-direction: column;
        align-items: center;
    }
}

/* Legacy support for paragraphs with images */
.description-content p:has(img) {
    text-align: center;
    margin: 40px 0;
}

/* Links in description */
.description-content a {
    color: #006CA6;
    text-decoration: underline;
    font-weight: 600;
}

.description-content a:hover {
    color: #3FC4DD;
}

/* Responsive adjustments for description */
@media (max-width: 968px) {
    .product-description-full {
        padding: 30px 20px;
    }

    .description-content {
        font-size: 16px;
    }

    .description-content h2 {
        font-size: 26px;
    }

    .description-content h3 {
        font-size: 22px;
    }
}

/* ========================================
   HAMBURGER MENU STYLES
   ======================================== */

/* Hamburger menu button */
.hamburger-menu {
    display: none;
    flex-direction: column;
    justify-content: space-between;
    width: 30px;
    height: 24px;
    background: transparent;
    border: none;
    cursor: pointer;
    padding: 0;
    z-index: 1001;
    position: relative;
}

.hamburger-menu span {
    width: 100%;
    height: 3px;
    background: #006CA6;
    border-radius: 3px;
    transition: all 0.3s ease;
}

.hamburger-menu.active span:nth-child(1) {
    transform: rotate(45deg) translate(8px, 8px);
}

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

.hamburger-menu.active span:nth-child(3) {
    transform: rotate(-45deg) translate(7px, -7px);
}

/* ========================================
   RESPONSIVE HOMEPAGE SECTIONS
   ======================================== */

/* Make 2-column grids responsive on homepage */
@media (max-width: 768px) {
    /* Two-column layouts stack on mobile */
    .two-column-responsive {
        grid-template-columns: 1fr !important;
        gap: 30px !important;
    }

    /* Image heights adjustment for mobile */
    .two-column-responsive div[style*="height: 500px"],
    .two-column-responsive div[style*="height: 550px"],
    .two-column-responsive div[style*="height: 450px"] {
        height: 300px !important;
    }

    /* Hero section adjustments */
    .hero-banner {
        height: 400px !important;
    }

    .hero-banner h1 {
        font-size: 36px !important;
    }

    .hero-banner p {
        font-size: 18px !important;
    }

    /* Button container adjustments */
    .hero-banner div[style*="display: flex"] {
        flex-direction: column !important;
        align-items: stretch !important;
    }

    .hero-banner .btn {
        width: 100%;
        text-align: center;
    }
}

/* ========================================
   MOBILE NAVIGATION (Tablet & Mobile)
   ======================================== */

@media (max-width: 968px) {
    /* Adjust header content layout */
    .header-content {
        display: grid;
        grid-template-columns: 1fr auto;
        grid-template-rows: auto auto;
        gap: 15px;
    }

    /* Logo - full width first row */
    .logo {
        grid-column: 1 / -1;
        grid-row: 1;
    }

    /* Search bar - second row, left side */
    .header-search {
        grid-column: 1;
        grid-row: 2;
        width: 100%;
        max-width: 100%;
        min-width: 0;
    }

    .search-input {
        width: 100%;
        min-width: 0;
    }

    /* Hamburger menu - second row, right side (same row as search) */
    .hamburger-menu {
        display: flex;
        grid-column: 2;
        grid-row: 2;
        position: relative;
        z-index: 1001;
        margin-left: 10px;
        align-self: center;
    }

    /* Hide navigation by default on mobile */
    .main-nav {
        position: fixed;
        top: 0;
        right: -100%;
        width: 280px;
        height: 100vh;
        background: #ffffff !important;
        box-shadow: -2px 0 10px rgba(0, 0, 0, 0.1);
        transition: right 0.3s ease;
        z-index: 1000;
        overflow-y: auto;
        padding: 0;
    }

    /* Show navigation when mobile-open class is added */
    .main-nav.mobile-open {
        right: 0;
    }

    /* Stack navigation links vertically - aligned to top */
    .main-nav ul {
        flex-direction: column;
        gap: 0;
        padding: 70px 20px 20px 20px;
        background: #ffffff;
        min-height: 100vh;
        margin: 0;
        justify-content: flex-start !important;
        align-items: stretch !important;
    }

    .main-nav li {
        width: 100%;
        display: block;
    }

    .main-nav a {
        display: block;
        width: 100%;
        padding: 15px 20px;
        border-radius: 0;
        border-bottom: 1px solid #f0f0f0;
        text-align: left;
        background: #ffffff;
        justify-content: flex-start;
    }

    .main-nav a:hover {
        background: #f8f9fa;
    }

    /* Position hamburger X at top of menu when open */
    .hamburger-menu.active {
        position: fixed;
        top: 20px;
        right: 20px;
        z-index: 1002;
    }
}

/* Mobile overlay when menu is open */
@media (max-width: 968px) {
    .main-nav.mobile-open::before {
        content: '';
        position: fixed;
        top: 0;
        left: 0;
        width: 100%;
        height: 100%;
        background: rgba(0, 0, 0, 0.5);
        z-index: -1;
    }
}

/* Smaller mobile adjustments */
@media (max-width: 480px) {
    .hamburger-menu {
        width: 26px;
        height: 20px;
    }

    .hamburger-menu span {
        height: 2.5px;
    }

    .logo img {
        height: 50px !important;
    }

    .main-nav {
        width: 85%;
        max-width: 280px;
    }
}
