/* Shop Page Styles */

.shop-header {
    background: linear-gradient(135deg, var(--primary-color), var(--secondary-color));
    padding: 60px 0;
    color: white;
    text-align: center;
}

.shop-header h1 {
    font-family: 'Montserrat', sans-serif;
    font-size: 42px;
    margin-bottom: 10px;
}

.shop-header p {
    font-size: 20px;
    margin-bottom: 40px;
}

.disclaimer-banner {
    background: rgba(255, 255, 255, 0.98);
    border: 2px solid var(--secondary-color);
    box-shadow: 0 4px 15px rgba(0, 102, 204, 0.15);
    color: var(--text-dark);
    padding: 35px 40px;
    border-radius: 12px;
    margin: 0 auto;
    max-width: 900px;
    text-align: left;
}

.disclaimer-banner h3 {
    font-size: 22px;
    margin-bottom: 25px;
    text-align: center;
    color: var(--secondary-color);
    font-weight: 700;
    text-transform: uppercase;
    letter-spacing: 1px;
}

.disclaimer-banner ul {
    list-style: none;
    padding: 0;
}

.disclaimer-banner li {
    padding-left: 30px;
    position: relative;
    margin-bottom: 12px;
    font-size: 15px;
    line-height: 1.6;
}

.disclaimer-banner li::before {
    content: '✓';
    position: absolute;
    left: 0;
    color: var(--accent-color);
    font-weight: bold;
    font-size: 18px;
}

/* Cart Icon in Header */
.cart-icon {
    position: relative;
    cursor: pointer;
    margin-left: 20px;
}

.cart-icon svg {
    fill: white;
}

.cart-count {
    position: absolute;
    top: -8px;
    right: -8px;
    background: var(--accent-color);
    color: white;
    width: 20px;
    height: 20px;
    border-radius: 50%;
    display: flex;
    align-items: center;
    justify-content: center;
    font-size: 12px;
    font-weight: bold;
}

/* Section Styling */
.customer-info-section,
.product-listing-section,
.order-summary-section {
    padding: 70px 0;
    background: #fafafa;
}

.product-listing-section {
    background: white;
}

.order-summary-section {
    background: linear-gradient(to bottom, #fafafa 0%, #f0f0f0 100%);
}

.customer-info-section h2,
.product-listing-section h2,
.order-summary-section h2 {
    font-family: 'Montserrat', sans-serif;
    font-size: 36px;
    font-weight: 700;
    margin-bottom: 40px;
    color: var(--primary-color);
    text-align: center;
    position: relative;
    padding-bottom: 15px;
}

.customer-info-section h2::after,
.product-listing-section h2::after,
.order-summary-section h2::after {
    content: '';
    position: absolute;
    bottom: 0;
    left: 50%;
    transform: translateX(-50%);
    width: 80px;
    height: 4px;
    background: linear-gradient(90deg, var(--secondary-color), var(--accent-color));
    border-radius: 2px;
}

/* Product Categories */
.product-categories {
    padding: 60px 0;
    background: var(--bg-light);
}

.category-tabs {
    display: flex;
    justify-content: center;
    gap: 20px;
    margin-bottom: 40px;
    flex-wrap: wrap;
}

.category-tab {
    padding: 14px 32px;
    background: white;
    border: 2px solid var(--secondary-color);
    color: var(--secondary-color);
    border-radius: 30px;
    cursor: pointer;
    font-weight: 600;
    font-size: 15px;
    transition: all 0.3s ease;
    box-shadow: 0 2px 8px rgba(0, 102, 204, 0.1);
    letter-spacing: 0.5px;
}

.category-tab:hover {
    background: rgba(0, 102, 204, 0.1);
    transform: translateY(-2px);
    box-shadow: 0 4px 12px rgba(0, 102, 204, 0.2);
}

.category-tab.active {
    background: var(--secondary-color);
    color: white;
    box-shadow: 0 4px 12px rgba(0, 102, 204, 0.3);
}

/* Order Form Section */
.order-form-section {
    background: white;
    padding: 45px;
    border-radius: 16px;
    box-shadow: 0 6px 24px rgba(0, 0, 0, 0.08);
    border: 1px solid #e8e8e8;
}

.customer-info {
    margin-bottom: 0;
    padding-bottom: 0;
    border-bottom: none;
}

.customer-info h3 {
    font-family: 'Montserrat', sans-serif;
    font-size: 24px;
    margin-bottom: 25px;
    color: var(--primary-color);
}

.form-row {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(200px, 1fr));
    gap: 20px;
    margin-bottom: 20px;
}

.customer-info input {
    width: 100%;
    padding: 14px 18px;
    border: 2px solid #e0e0e0;
    border-radius: 8px;
    font-size: 16px;
    transition: all 0.3s ease;
    background: #fafafa;
    font-family: 'Open Sans', sans-serif;
}

.customer-info input:hover {
    border-color: #c0c0c0;
    background: white;
}

.customer-info input:focus {
    outline: none;
    border-color: var(--secondary-color);
    background: white;
    box-shadow: 0 0 0 3px rgba(0, 102, 204, 0.1);
}

/* Product Listing Wrapper */
.product-listing-wrapper {
    background: #fafafa;
    padding: 45px;
    border-radius: 16px;
    box-shadow: 0 6px 24px rgba(0, 0, 0, 0.08);
    border: 1px solid #e8e8e8;
}

/* Products Grid */
.products-grid {
    margin-bottom: 0;
}

.product-item {
    background: white;
    padding: 24px;
    border-radius: 12px;
    margin-bottom: 16px;
    display: flex;
    justify-content: space-between;
    align-items: center;
    transition: all 0.3s ease;
    border: 2px solid #f0f0f0;
    box-shadow: 0 2px 8px rgba(0, 0, 0, 0.04);
}

.product-item:hover {
    border-color: var(--secondary-color);
    box-shadow: 0 4px 16px rgba(0, 102, 204, 0.12);
    transform: translateY(-2px);
}

.product-info {
    flex-grow: 1;
}

.product-name {
    font-weight: 600;
    font-size: 17px;
    color: var(--primary-color);
    margin-bottom: 6px;
    line-height: 1.4;
}

.product-price {
    color: var(--accent-color);
    font-size: 22px;
    font-weight: 700;
    font-family: 'Montserrat', sans-serif;
}

.product-controls {
    display: flex;
    align-items: center;
    gap: 15px;
}

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

.quantity-selector button {
    width: 36px;
    height: 36px;
    background: var(--secondary-color);
    color: white;
    border: none;
    border-radius: 8px;
    cursor: pointer;
    font-size: 20px;
    font-weight: bold;
    transition: all 0.3s ease;
    box-shadow: 0 2px 4px rgba(0, 102, 204, 0.2);
}

.quantity-selector button:hover {
    background: var(--accent-color);
    transform: scale(1.1);
    box-shadow: 0 3px 8px rgba(0, 168, 107, 0.3);
}

.quantity-selector button:active {
    transform: scale(0.95);
}

.quantity-display {
    width: 50px;
    text-align: center;
    font-weight: 600;
    font-size: 16px;
}

.item-subtotal {
    font-weight: 600;
    min-width: 80px;
    text-align: right;
}

/* Cart Summary */
.cart-summary {
    background: white;
    border: 2px solid var(--secondary-color);
    padding: 35px;
    border-radius: 12px;
    margin-bottom: 40px;
    box-shadow: 0 4px 15px rgba(0, 102, 204, 0.1);
}

.cart-summary h3 {
    font-family: 'Montserrat', sans-serif;
    font-size: 24px;
    margin-bottom: 20px;
    color: var(--primary-color);
}

.cart-items {
    margin-bottom: 20px;
}

.cart-item {
    display: flex;
    justify-content: space-between;
    padding: 10px 0;
    border-bottom: 1px solid #ddd;
}

.cart-item:last-child {
    border-bottom: none;
}

.cart-empty {
    text-align: center;
    color: #999;
    padding: 20px;
}

.cart-total {
    display: flex;
    justify-content: space-between;
    font-size: 24px;
    font-weight: bold;
    color: var(--primary-color);
    padding-top: 20px;
    border-top: 2px solid var(--secondary-color);
}

/* Payment Section */
.payment-section {
    margin-bottom: 40px;
}

.payment-section h3 {
    font-family: 'Montserrat', sans-serif;
    font-size: 24px;
    margin-bottom: 25px;
    color: var(--primary-color);
}

.payment-options {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(250px, 1fr));
    gap: 20px;
    margin-bottom: 20px;
}

.payment-option {
    background: #fafafa;
    padding: 18px 20px;
    border-radius: 10px;
    border: 2px solid #e0e0e0;
    transition: all 0.3s ease;
    text-align: center;
}

.payment-option:hover {
    border-color: var(--accent-color);
    background: white;
    box-shadow: 0 4px 12px rgba(0, 168, 107, 0.15);
    transform: translateY(-2px);
}

.payment-option strong {
    color: var(--secondary-color);
}

.payment-note {
    text-align: center;
    color: #666;
    font-style: italic;
    margin-top: 20px;
}

.btn-submit {
    width: 100%;
    padding: 22px;
    font-size: 20px;
    font-weight: 700;
    background: linear-gradient(135deg, var(--accent-color) 0%, #00916a 100%);
    border: none;
    border-radius: 12px;
    color: white;
    cursor: pointer;
    transition: all 0.3s ease;
    box-shadow: 0 6px 20px rgba(0, 168, 107, 0.3);
    text-transform: uppercase;
    letter-spacing: 1px;
}

.btn-submit:hover {
    transform: translateY(-3px);
    box-shadow: 0 8px 25px rgba(0, 168, 107, 0.4);
    background: linear-gradient(135deg, #00916a 0%, var(--accent-color) 100%);
}

.btn-submit:active {
    transform: translateY(-1px);
}

/* Shipping Notice */
.shipping-notice {
    background: #d1ecf1;
    color: #0c5460;
    padding: 15px;
    border-radius: 8px;
    margin-bottom: 20px;
    text-align: center;
}

/* Order Confirmation Modal */
.modal {
    display: none;
    position: fixed;
    z-index: 1000;
    left: 0;
    top: 0;
    width: 100%;
    height: 100%;
    overflow: auto;
    background-color: rgba(0, 0, 0, 0.6);
    animation: fadeIn 0.3s ease;
}

@keyframes fadeIn {
    from { opacity: 0; }
    to { opacity: 1; }
}

.modal-content {
    background-color: #fefefe;
    margin: 3% auto;
    padding: 0;
    border: 2px solid var(--secondary-color);
    border-radius: 16px;
    width: 90%;
    max-width: 700px;
    box-shadow: 0 10px 40px rgba(0, 0, 0, 0.3);
    animation: slideIn 0.3s ease;
}

@keyframes slideIn {
    from {
        transform: translateY(-50px);
        opacity: 0;
    }
    to {
        transform: translateY(0);
        opacity: 1;
    }
}

.modal-header {
    background: linear-gradient(135deg, var(--primary-color), var(--secondary-color));
    color: white;
    padding: 25px 30px;
    border-radius: 14px 14px 0 0;
    display: flex;
    justify-content: space-between;
    align-items: center;
}

.modal-header h2 {
    margin: 0;
    font-family: 'Montserrat', sans-serif;
    font-size: 26px;
    font-weight: 700;
}

.close-modal {
    color: white;
    font-size: 32px;
    font-weight: bold;
    cursor: pointer;
    transition: all 0.3s ease;
    line-height: 1;
    width: 35px;
    height: 35px;
    display: flex;
    align-items: center;
    justify-content: center;
    border-radius: 50%;
}

.close-modal:hover {
    background: rgba(255, 255, 255, 0.2);
    transform: rotate(90deg);
}

.modal-body {
    padding: 30px;
    max-height: 60vh;
    overflow-y: auto;
}

.modal-body h3 {
    font-family: 'Montserrat', sans-serif;
    color: var(--secondary-color);
    font-size: 20px;
    margin-bottom: 25px;
    text-align: center;
}

.order-details-section {
    background: #f9f9f9;
    border: 1px solid #e0e0e0;
    border-radius: 10px;
    padding: 20px;
    margin-bottom: 20px;
}

.order-details-section h4 {
    font-family: 'Montserrat', sans-serif;
    color: var(--primary-color);
    font-size: 18px;
    margin-bottom: 15px;
    border-bottom: 2px solid var(--accent-color);
    padding-bottom: 8px;
}

.order-details-section p {
    margin: 8px 0;
    line-height: 1.6;
    color: #333;
}

.order-details-section ul {
    margin: 10px 0;
    padding-left: 0;
    list-style: none;
}

.order-details-section li {
    margin: 8px 0;
    line-height: 1.6;
}

.order-details-section textarea {
    width: 100%;
    padding: 14px 18px;
    border: 2px solid #e0e0e0;
    border-radius: 8px;
    font-size: 16px;
    font-family: 'Open Sans', sans-serif;
    background: white;
    resize: vertical;
    min-height: 100px;
    transition: all 0.3s ease;
    margin-bottom: 8px;
}

.order-details-section textarea:hover {
    border-color: #c0c0c0;
}

.order-details-section textarea:focus {
    outline: none;
    border-color: var(--secondary-color);
    box-shadow: 0 0 0 3px rgba(0, 102, 204, 0.1);
}

.character-counter {
    text-align: right;
    font-size: 14px;
    color: #666;
    font-style: italic;
}

.modal-items-list {
    list-style: none;
    padding: 0;
}

.modal-items-list li {
    background: white;
    padding: 12px 15px;
    margin-bottom: 10px;
    border-radius: 8px;
    border: 1px solid #e0e0e0;
}

.modal-item-name {
    font-weight: 600;
    color: var(--primary-color);
    margin-bottom: 5px;
}

.modal-item-details {
    color: #666;
    font-size: 14px;
}

.modal-total {
    font-size: 24px;
    color: var(--accent-color);
    font-family: 'Montserrat', sans-serif;
}

.modal-footer {
    padding: 20px 30px;
    background: #f5f5f5;
    border-radius: 0 0 14px 14px;
    display: flex;
    justify-content: flex-end;
    gap: 15px;
}

.modal-footer .btn {
    padding: 12px 30px;
    border: none;
    border-radius: 8px;
    font-weight: 600;
    cursor: pointer;
    transition: all 0.3s ease;
    font-size: 16px;
}

.modal-footer .btn-secondary {
    background: #6c757d;
    color: white;
}

.modal-footer .btn-secondary:hover {
    background: #5a6268;
    transform: translateY(-2px);
    box-shadow: 0 4px 12px rgba(108, 117, 125, 0.3);
}

.modal-footer .btn-primary {
    background: linear-gradient(135deg, var(--accent-color) 0%, #00916a 100%);
    color: white;
}

.modal-footer .btn-primary:hover {
    transform: translateY(-2px);
    box-shadow: 0 4px 12px rgba(0, 168, 107, 0.4);
}

/* TOS Modal Styles */
.tos-modal-content {
    max-width: 550px;
}

.tos-summary {
    border: 1px solid #333;
    border-radius: 8px;
    padding: 20px;
    margin: 15px 0;
    background: #1a1a1a;
}

.tos-summary ul {
    list-style: none;
    padding: 0;
    margin: 0;
}

.tos-summary li {
    color: #ccc;
    padding: 8px 0;
    border-bottom: 1px solid #2a2a2a;
    line-height: 1.5;
    padding-left: 20px;
    position: relative;
}

.tos-summary li::before {
    content: "\2022";
    color: #00a86b;
    font-size: 18px;
    position: absolute;
    left: 0;
    top: 7px;
}

.tos-summary li:last-child {
    border-bottom: none;
}

.tos-full-link {
    margin-top: 15px;
    margin-bottom: 0;
    text-align: center;
}

.tos-full-link a {
    color: #00a86b;
    text-decoration: underline;
    font-weight: 600;
}

.tos-full-link a:hover {
    color: #00c97d;
}

.tos-accept-row {
    margin-top: 15px;
    padding: 10px 0;
}

.tos-checkbox-label {
    display: flex;
    align-items: center;
    gap: 10px;
    cursor: pointer;
    color: #e0e0e0;
    font-size: 15px;
}

.tos-checkbox-label input[type="checkbox"] {
    width: 18px;
    height: 18px;
    cursor: pointer;
    accent-color: #00a86b;
}

#tosAcceptBtn:disabled {
    opacity: 0.5;
    cursor: not-allowed;
    transform: none;
}

/* Responsive Styles */
@media (max-width: 768px) {
    .shop-header h1 {
        font-size: 32px;
    }

    .category-tabs {
        gap: 10px;
    }

    .category-tab {
        padding: 10px 20px;
        font-size: 14px;
    }

    .order-form-section {
        padding: 20px;
    }

    .product-item {
        flex-direction: column;
        text-align: center;
        gap: 15px;
    }

    .product-controls {
        width: 100%;
        justify-content: center;
    }

    .payment-options {
        grid-template-columns: 1fr;
    }

    /* Modal responsive adjustments */
    .modal-content {
        width: 95%;
        margin: 10% auto;
    }

    .modal-header {
        padding: 20px;
    }

    .modal-header h2 {
        font-size: 20px;
    }

    .modal-body {
        padding: 20px;
        max-height: 50vh;
    }

    .modal-footer {
        flex-direction: column;
        padding: 15px 20px;
    }

    .modal-footer .btn {
        width: 100%;
    }
}