/* Enhanced Online Shop Styles */

/* Hero Section */
.shop-hero {
    background: linear-gradient(135deg, #ff0000, #cc0000);
    padding: 5rem 2rem 3rem;
    text-align: center;
    margin-top: 170px;
}

.shop-hero-title {
    font-size: 3rem;
    font-weight: 700;
    color: #ffffff;
    margin-bottom: 1rem;
    text-shadow: 2px 2px 4px rgba(0, 0, 0, 0.3);
}

.shop-hero-subtitle {
    font-size: 1.25rem;
    color: #ffffff;
    opacity: 0.95;
    margin-bottom: 2rem;
}

.hero-features {
    display: flex;
    justify-content: center;
    gap: 3rem;
    flex-wrap: wrap;
    margin-top: 2rem;
}

.hero-feature {
    display: flex;
    align-items: center;
    gap: 0.75rem;
    color: #ffffff;
    font-weight: 600;
}

.hero-feature svg {
    width: 2rem;
    height: 2rem;
    stroke-width: 2;
}

/* Main Shop Layout */
.shop-main {
    padding: 3rem 0;
}

.shop-layout {
    display: grid;
    grid-template-columns: 1fr;
    gap: 2rem;
}

/* Sidebar */
.shop-sidebar {
    background: linear-gradient(135deg, #1a1a1a, #000000);
    padding: 2rem;
    border-radius: 1rem;
    border: 2px solid rgba(255, 0, 0, 0.2);
    height: fit-content;
    position: relative;
}

.sidebar-section {
    margin-bottom: 2rem;
}

.sidebar-section:last-child {
    margin-bottom: 0;
}

.sidebar-title {
    font-size: 1.25rem;
    font-weight: 700;
    color: #ffffff;
    margin-bottom: 1rem;
    padding-bottom: 0.75rem;
    border-bottom: 2px solid rgba(255, 0, 0, 0.3);
}

.category-list {
    display: flex;
    flex-direction: column;
    gap: 0.75rem;
}

.category-checkbox,
.stock-checkbox {
    display: flex;
    align-items: center;
    gap: 0.75rem;
    color: #cccccc;
    cursor: pointer;
    padding: 0.5rem;
    border-radius: 0.5rem;
    transition: background-color 0.3s;
}

.category-checkbox:hover,
.stock-checkbox:hover {
    background-color: rgba(255, 0, 0, 0.1);
}

.category-checkbox input,
.stock-checkbox input {
    cursor: pointer;
    width: 1.125rem;
    height: 1.125rem;
    accent-color: #ff0000;
}

.category-count {
    margin-left: auto;
    background: rgba(255, 0, 0, 0.2);
    padding: 0.25rem 0.625rem;
    border-radius: 1rem;
    font-size: 0.875rem;
    color: #ff4444;
    font-weight: 600;
}

.price-filter input[type="range"] {
    width: 100%;
    height: 6px;
    background: rgba(255, 255, 255, 0.1);
    outline: none;
    border-radius: 3px;
    accent-color: #ff0000;
}

.price-display {
    display: flex;
    justify-content: space-between;
    margin-top: 0.75rem;
    color: #cccccc;
    font-weight: 600;
}

/* Shop Content */
.shop-content {
    flex: 1;
}

.shop-toolbar {
    background: linear-gradient(135deg, #1a1a1a, #000000);
    padding: 1.5rem;
    border-radius: 1rem;
    border: 2px solid rgba(255, 0, 0, 0.2);
    margin-bottom: 2rem;
}

.search-box {
    position: relative;
    margin-bottom: 1rem;
}

.search-icon {
    position: absolute;
    left: 1rem;
    top: 50%;
    transform: translateY(-50%);
    width: 1.25rem;
    height: 1.25rem;
    stroke: #999999;
    stroke-width: 2;
}

.search-box input {
    width: 100%;
    padding: 0.875rem 1rem 0.875rem 3rem;
    background-color: rgba(255, 255, 255, 0.05);
    border: 2px solid rgba(255, 255, 255, 0.1);
    border-radius: 0.5rem;
    color: #ffffff;
    font-size: 1rem;
    transition: border-color 0.3s;
}

.search-box input:focus {
    outline: none;
    border-color: #ff0000;
}

.toolbar-right {
    display: flex;
    justify-content: space-between;
    align-items: center;
    flex-wrap: wrap;
    gap: 1rem;
}

.results-count {
    color: #cccccc;
    font-weight: 600;
}

.sort-controls {
    display: flex;
    align-items: center;
    gap: 0.75rem;
}

.sort-controls label {
    color: #ffffff;
    font-weight: 600;
}

.sort-controls select {
    padding: 0.625rem 1rem;
    background-color: rgba(255, 255, 255, 0.05);
    border: 2px solid rgba(255, 255, 255, 0.1);
    border-radius: 0.5rem;
    color: #ffffff;
    cursor: pointer;
}

/* Products Grid */
.products-grid {
    display: grid;
    grid-template-columns: repeat(auto-fill, minmax(280px, 1fr));
    gap: 2rem;
}

/* Product Card */
.product-card {
    background: linear-gradient(135deg, #1a1a1a, #000000);
    border-radius: 1rem;
    overflow: hidden;
    border: 2px solid rgba(255, 255, 255, 0.05);
    transition: transform 0.3s, box-shadow 0.3s, border-color 0.3s;
    display: flex;
    flex-direction: column;
}

.product-card:hover {
    transform: translateY(-8px);
    box-shadow: 0 12px 24px rgba(255, 0, 0, 0.3);
    border-color: #ff0000;
}

.product-image-container {
    position: relative;
    width: 100%;
    height: 250px;
    overflow: hidden;
    background-color: rgba(255, 255, 255, 0.03);
}

.product-image {
    width: 100%;
    height: 100%;
    object-fit: cover;
    transition: transform 0.3s;
}

.product-card:hover .product-image {
    transform: scale(1.1);
}

.stock-badge {
    position: absolute;
    top: 1rem;
    right: 1rem;
    padding: 0.5rem 1rem;
    border-radius: 0.5rem;
    font-size: 0.875rem;
    font-weight: 700;
    background: rgba(34, 197, 94, 0.9);
    color: #ffffff;
}

.stock-badge.out-of-stock {
    background: rgba(239, 68, 68, 0.9);
}

.product-info {
    padding: 1.5rem;
    flex: 1;
    display: flex;
    flex-direction: column;
}

.product-category {
    font-size: 0.875rem;
    color: #ff4444;
    font-weight: 600;
    text-transform: uppercase;
    margin-bottom: 0.5rem;
}

.product-name {
    font-size: 1.25rem;
    font-weight: 700;
    color: #ffffff;
    margin-bottom: 0.75rem;
    line-height: 1.3;
}

.product-description {
    font-size: 0.95rem;
    color: #cccccc;
    line-height: 1.5;
    margin-bottom: 1rem;
    flex: 1;
}

.product-specs {
    background: rgba(255, 0, 0, 0.05);
    padding: 0.75rem;
    border-radius: 0.5rem;
    margin-bottom: 1rem;
    font-size: 0.875rem;
    color: #cccccc;
}

.product-footer {
    display: flex;
    justify-content: space-between;
    align-items: center;
    margin-bottom: 1rem;
}

.product-price {
    font-size: 2rem;
    font-weight: 700;
    color: #ff0000;
}

.product-rating {
    display: flex;
    align-items: center;
    gap: 0.25rem;
    color: #fbbf24;
}

.add-to-cart-btn {
    width: 100%;
    padding: 1rem;
    background: linear-gradient(135deg, #ff0000, #cc0000);
    color: #ffffff;
    border: none;
    border-radius: 0.5rem;
    font-size: 1rem;
    font-weight: 700;
    cursor: pointer;
    transition: transform 0.3s, box-shadow 0.3s;
    display: flex;
    align-items: center;
    justify-content: center;
    gap: 0.5rem;
}

.add-to-cart-btn:hover:not(:disabled) {
    transform: translateY(-2px);
    box-shadow: 0 6px 12px rgba(255, 0, 0, 0.4);
}

.add-to-cart-btn:disabled {
    opacity: 0.5;
    cursor: not-allowed;
}

/* Cart Badge */
.cart-btn {
    position: relative;
}

.cart-badge {
    position: absolute;
    top: -10px;
    right: -10px;
    background: #ff0000;
    color: #ffffff;
    min-width: 1.25rem;
    height: 1.25rem;
    padding: 0 0.3rem;
    border-radius: 50%;
    display: flex;
    align-items: center;
    justify-content: center;
    font-size: 0.65rem;
    font-weight: 700;
    border: 2px solid #1a1a1a;
    box-shadow: 0 2px 6px rgba(255, 0, 0, 0.6);
    z-index: 10;
}

/* Cart Sidebar */
.cart-sidebar {
    position: fixed;
    top: 0;
    right: -500px;
    width: 100%;
    max-width: 480px;
    height: 100%;
    background: linear-gradient(135deg, #1a1a1a, #000000);
    box-shadow: -4px 0 20px rgba(0, 0, 0, 0.5);
    z-index: 3000;
    transition: right 0.3s ease;
    display: flex;
    flex-direction: column;
}

.cart-sidebar.active {
    right: 0;
}

.cart-sidebar-header {
    display: flex;
    justify-content: space-between;
    align-items: center;
    padding: 1.5rem;
    border-bottom: 2px solid rgba(255, 0, 0, 0.2);
}

.cart-sidebar-header h2 {
    font-size: 1.75rem;
    color: #ffffff;
}

.close-cart {
    background: none;
    border: none;
    color: #ffffff;
    cursor: pointer;
    padding: 0.5rem;
    transition: color 0.3s;
}

.close-cart:hover {
    color: #ff0000;
}

.close-cart svg {
    width: 1.5rem;
    height: 1.5rem;
    stroke-width: 2;
}

.cart-items-container {
    flex: 1;
    overflow-y: auto;
    padding: 1.5rem;
}

.empty-cart-message {
    text-align: center;
    padding: 3rem 2rem;
    color: #999999;
}

.empty-cart-message svg {
    width: 4rem;
    height: 4rem;
    stroke-width: 2;
    margin-bottom: 1rem;
}

.empty-cart-subtitle {
    font-size: 0.875rem;
    margin-top: 0.5rem;
}

.cart-item {
    display: flex;
    gap: 1rem;
    padding: 1.25rem;
    background-color: rgba(255, 255, 255, 0.03);
    border-radius: 0.75rem;
    margin-bottom: 1rem;
    border: 2px solid rgba(255, 255, 255, 0.05);
}

.cart-item-image {
    width: 90px;
    height: 90px;
    object-fit: cover;
    border-radius: 0.5rem;
    flex-shrink: 0;
}

.cart-item-details {
    flex: 1;
}

.cart-item-name {
    font-size: 1.05rem;
    font-weight: 700;
    color: #ffffff;
    margin-bottom: 0.5rem;
}

.cart-item-price {
    font-size: 1.25rem;
    color: #ff0000;
    font-weight: 700;
    margin-bottom: 0.75rem;
}

.cart-item-controls {
    display: flex;
    align-items: center;
    gap: 1rem;
}

.quantity-controls {
    display: flex;
    align-items: center;
    gap: 0.5rem;
    background: rgba(255, 255, 255, 0.05);
    padding: 0.25rem;
    border-radius: 0.5rem;
}

.qty-btn {
    width: 2rem;
    height: 2rem;
    background: rgba(255, 0, 0, 0.2);
    border: 1px solid #ff0000;
    color: #ffffff;
    border-radius: 0.25rem;
    cursor: pointer;
    font-weight: 700;
    transition: background 0.3s;
}

.qty-btn:hover {
    background: #ff0000;
}

.item-quantity {
    color: #ffffff;
    font-weight: 700;
    min-width: 2rem;
    text-align: center;
}

.remove-item-btn {
    background: none;
    border: none;
    color: #ef4444;
    cursor: pointer;
    padding: 0.5rem;
    transition: color 0.3s;
}

.remove-item-btn:hover {
    color: #ff6666;
}

.remove-item-btn svg {
    width: 1.25rem;
    height: 1.25rem;
}

.cart-sidebar-footer {
    padding: 1.5rem;
    border-top: 2px solid rgba(255, 0, 0, 0.2);
}

.cart-summary {
    margin-bottom: 1.5rem;
}

.cart-summary-row {
    display: flex;
    justify-content: space-between;
    margin-bottom: 0.75rem;
    color: #cccccc;
    font-size: 1rem;
}

.cart-total-row {
    font-size: 1.5rem;
    font-weight: 700;
    color: #ffffff;
    padding-top: 0.75rem;
    border-top: 2px solid rgba(255, 0, 0, 0.2);
}

.cart-total-row span:last-child {
    color: #ff0000;
}

.checkout-btn,
.continue-shopping-btn {
    width: 100%;
    padding: 1.25rem;
    border: none;
    border-radius: 0.5rem;
    font-size: 1.125rem;
    font-weight: 700;
    cursor: pointer;
    transition: transform 0.3s, box-shadow 0.3s;
    display: flex;
    align-items: center;
    justify-content: center;
    gap: 0.75rem;
}

.checkout-btn {
    background: linear-gradient(135deg, #ff0000, #cc0000);
    color: #ffffff;
    margin-bottom: 0.75rem;
}

.checkout-btn:hover {
    transform: translateY(-2px);
    box-shadow: 0 6px 12px rgba(255, 0, 0, 0.4);
}

.checkout-btn svg {
    width: 1.25rem;
    height: 1.25rem;
    stroke-width: 2;
}

.continue-shopping-btn {
    background-color: rgba(255, 255, 255, 0.05);
    color: #ffffff;
    border: 2px solid rgba(255, 255, 255, 0.1);
}

.continue-shopping-btn:hover {
    background-color: rgba(255, 255, 255, 0.1);
}

/* Cart Overlay */
.cart-overlay {
    display: none;
    position: fixed;
    top: 0;
    left: 0;
    right: 0;
    bottom: 0;
    background: rgba(0, 0, 0, 0.7);
    z-index: 2999;
}

.cart-overlay.active {
    display: block;
}

/* Checkout Modal */
.checkout-modal {
    display: none;
    position: fixed;
    top: 0;
    left: 0;
    right: 0;
    bottom: 0;
    background: rgba(0, 0, 0, 0.9);
    z-index: 3001;
    align-items: center;
    justify-content: center;
    padding: 2rem;
    overflow-y: auto;
}

.checkout-modal.active {
    display: flex;
}

.checkout-modal-content {
    background: linear-gradient(135deg, #1a1a1a, #000000);
    border-radius: 1rem;
    max-width: 800px;
    width: 100%;
    padding: 2.5rem;
    border: 2px solid rgba(255, 0, 0, 0.2);
    position: relative;
    max-height: 90vh;
    overflow-y: auto;
}

.close-checkout {
    position: absolute;
    top: 1rem;
    right: 1rem;
    background: rgba(0, 0, 0, 0.7);
    border: 2px solid #ff0000;
    color: #ffffff;
    width: 2.5rem;
    height: 2.5rem;
    border-radius: 50%;
    cursor: pointer;
    display: flex;
    align-items: center;
    justify-content: center;
}

.close-checkout:hover {
    background: #ff0000;
}

.checkout-title {
    font-size: 2rem;
    color: #ffffff;
    margin-bottom: 2rem;
    padding-bottom: 1rem;
    border-bottom: 2px solid rgba(255, 0, 0, 0.2);
}

.checkout-section {
    margin-bottom: 2rem;
}

.checkout-section-title {
    font-size: 1.25rem;
    color: #ffffff;
    margin-bottom: 1rem;
    font-weight: 700;
}

.form-row {
    display: grid;
    grid-template-columns: 1fr;
    gap: 1rem;
}

.form-group {
    display: flex;
    flex-direction: column;
}

.form-group label {
    color: #ffffff;
    font-weight: 600;
    margin-bottom: 0.5rem;
}

.form-group input,
.form-group select {
    padding: 0.875rem;
    background-color: rgba(255, 255, 255, 0.05);
    border: 2px solid rgba(255, 255, 255, 0.1);
    border-radius: 0.5rem;
    color: #ffffff;
    font-size: 1rem;
    transition: border-color 0.3s;
}

.form-group input:focus,
.form-group select:focus {
    outline: none;
    border-color: #ff0000;
}

.payment-methods {
    display: flex;
    flex-direction: column;
    gap: 1rem;
}

.payment-option {
    display: flex;
    align-items: center;
    padding: 1rem;
    background-color: rgba(255, 255, 255, 0.03);
    border: 2px solid rgba(255, 255, 255, 0.1);
    border-radius: 0.5rem;
    cursor: pointer;
    transition: border-color 0.3s;
}

.payment-option:hover {
    border-color: #ff0000;
}

.payment-option input {
    margin-right: 1rem;
    accent-color: #ff0000;
}

.payment-label {
    display: flex;
    align-items: center;
    gap: 0.75rem;
    color: #ffffff;
    font-weight: 600;
}

.payment-label svg {
    width: 1.5rem;
    height: 1.5rem;
    stroke-width: 2;
}

.checkout-summary {
    background: rgba(255, 0, 0, 0.05);
    padding: 1rem;
    border-radius: 0.5rem;
}

.checkout-total {
    display: flex;
    justify-content: space-between;
    font-size: 1.75rem;
    font-weight: 700;
    color: #ffffff;
    padding: 1.5rem 0;
    margin-bottom: 1.5rem;
    border-top: 2px solid rgba(255, 0, 0, 0.2);
    border-bottom: 2px solid rgba(255, 0, 0, 0.2);
}

.checkout-total span:last-child {
    color: #ff0000;
}

.place-order-btn {
    width: 100%;
    padding: 1.25rem;
    background: linear-gradient(135deg, #ff0000, #cc0000);
    color: #ffffff;
    border: none;
    border-radius: 0.5rem;
    font-size: 1.25rem;
    font-weight: 700;
    cursor: pointer;
    transition: transform 0.3s, box-shadow 0.3s;
    display: flex;
    align-items: center;
    justify-content: center;
    gap: 0.75rem;
}

.place-order-btn:hover {
    transform: translateY(-2px);
    box-shadow: 0 8px 16px rgba(255, 0, 0, 0.4);
}

.place-order-btn svg {
    width: 1.5rem;
    height: 1.5rem;
}

/* No Results */
.no-results {
    text-align: center;
    padding: 4rem 2rem;
}

.no-results svg {
    width: 4rem;
    height: 4rem;
    stroke: #666666;
    stroke-width: 2;
    margin-bottom: 1rem;
}

.no-results h3 {
    font-size: 1.5rem;
    color: #ffffff;
    margin-bottom: 0.5rem;
}

.no-results p {
    color: #999999;
    margin-bottom: 1.5rem;
}

.reset-filters-btn {
    padding: 0.875rem 2rem;
    background: linear-gradient(135deg, #ff0000, #cc0000);
    color: #ffffff;
    border: none;
    border-radius: 0.5rem;
    font-weight: 700;
    cursor: pointer;
    transition: transform 0.3s;
}

.reset-filters-btn:hover {
    transform: translateY(-2px);
}

/* Responsive Design */
@media (min-width: 768px) {
    .shop-layout {
        grid-template-columns: 280px 1fr;
    }

    .shop-sidebar {
        position: sticky;
        top: 180px;
    }

    .form-row {
        grid-template-columns: 1fr 1fr;
    }
}

@media (min-width: 1024px) {
    .shop-hero {
        padding: 6rem 2rem 4rem;
    }

    .shop-layout {
        grid-template-columns: 300px 1fr;
    }

    .products-grid {
        grid-template-columns: repeat(auto-fill, minmax(300px, 1fr));
    }
}

/* Download Catalogue Styles */
.hero-catalogue-section {
    margin-top: 2.5rem;
    text-align: center;
}

.download-catalogue-btn {
    padding: 1rem 2.5rem;
    background: linear-gradient(135deg, #ffffff, #f0f0f0);
    color: #000000;
    border: 2px solid rgba(255, 255, 255, 0.3);
    border-radius: 0.75rem;
    font-size: 1.125rem;
    font-weight: 700;
    cursor: pointer;
    transition: transform 0.3s, box-shadow 0.3s, background 0.3s;
    display: inline-flex;
    align-items: center;
    justify-content: center;
    gap: 0.75rem;
}

.download-catalogue-btn svg {
    width: 1.5rem;
    height: 1.5rem;
    stroke-width: 2.5;
}

.download-catalogue-btn:hover {
    transform: translateY(-3px);
    box-shadow: 0 8px 20px rgba(255, 255, 255, 0.3);
    background: linear-gradient(135deg, #ffffff, #ffffff);
}

.catalogue-description {
    margin-top: 0.75rem;
    color: rgba(255, 255, 255, 0.85);
    font-size: 0.875rem;
    font-weight: 500;
}

/* Sidebar Catalogue Button */
.sidebar-catalogue {
    margin-top: 1rem;
    padding-top: 1.5rem;
    border-top: 2px solid rgba(255, 0, 0, 0.3);
}

.sidebar-catalogue-btn {
    width: 100%;
    padding: 1rem;
    background: linear-gradient(135deg, #ff0000, #cc0000);
    border: 2px solid rgba(255, 0, 0, 0.3);
    border-radius: 0.75rem;
    cursor: pointer;
    transition: transform 0.3s, box-shadow 0.3s, background 0.3s;
    display: flex;
    align-items: center;
    gap: 1rem;
}

.sidebar-catalogue-btn svg {
    width: 2rem;
    height: 2rem;
    stroke: #ffffff;
    stroke-width: 2.5;
    flex-shrink: 0;
}

.sidebar-catalogue-text {
    display: flex;
    flex-direction: column;
    align-items: flex-start;
    text-align: left;
}

.sidebar-catalogue-title {
    color: #ffffff;
    font-weight: 700;
    font-size: 1rem;
    line-height: 1.3;
}

.sidebar-catalogue-subtitle {
    color: rgba(255, 255, 255, 0.8);
    font-size: 0.8rem;
    margin-top: 0.125rem;
}

.sidebar-catalogue-btn:hover {
    transform: translateY(-2px);
    box-shadow: 0 6px 16px rgba(255, 0, 0, 0.4);
    background: linear-gradient(135deg, #ff1a1a, #d90000);
}