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

.custom-shop .category-heading {
    font-size: 2em;
    color: #333;
    margin: 0 0 30px 0;
    padding-bottom: 15px;
    border-bottom: 2px solid #8b4513;
}

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

.product-card {
    border: 1px solid #ddd;
    padding: 20px;
    border-radius: 8px;
    background: #fff;
}

.product-card img {
    width: 100%;
    height: 200px;
    object-fit: cover;
    border-radius: 4px;
}

.product-card h3 {
    margin: 15px 0 10px;
}

.product-card .price {
    font-size: 1.3em;
    color: #8b4513;
    font-weight: bold;
}

.product-card .description {
    color: #666;
    font-size: 0.9em;
    margin: 10px 0;
}

.modifiers {
    margin: 15px 0;
}

.modifier-select {
    width: 100%;
    padding: 8px;
    margin-bottom: 8px;
    border: 1px solid #ddd;
    border-radius: 4px;
}

.addons {
    margin: 15px 0;
}

.addons > label {
    font-weight: bold;
    margin-bottom: 5px;
    display: block;
}

.addon-dropdown {
    border: 1px solid #ddd;
    border-radius: 4px;
    padding: 10px;
    max-height: 150px;
    overflow-y: auto;
    background: #f9f9f9;
}

.addon-dropdown label {
    display: block;
    margin: 5px 0;
    cursor: pointer;
}

.addon-dropdown label:hover {
    background: #eee;
    padding: 2px 5px;
    border-radius: 3px;
}

.quantity {
    margin: 10px 0;
}

.qty-input {
    width: 60px;
    padding: 5px;
}

.add-to-cart {
    width: 100%;
    padding: 12px;
    background: #8b4513;
    color: white;
    border: none;
    border-radius: 4px;
    cursor: pointer;
    font-size: 1em;
    margin-bottom: 8px;
}

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

.view-cart-btn {
    display: block;
    width: 100%;
    padding: 12px;
    background: #6B766A;
    color: white;
    border: none;
    border-radius: 4px;
    cursor: pointer;
    font-size: 1em;
    text-align: center;
    text-decoration: none;
}

.view-cart-btn:hover {
    background: #5a6359;
}

.custom-shop-cart {
    max-width: 800px;
    margin: 0 auto;
    padding: 20px;
}

.cart-item {
    border: 1px solid #ddd;
    padding: 15px;
    margin-bottom: 15px;
    border-radius: 4px;
}

.cart-item .modifiers-list {
    font-size: 0.9em;
    color: #666;
    font-style: italic;
    margin: 5px 0;
}

.remove-item {
    background: #d32f2f;
    color: white;
    border: none;
    padding: 5px 10px;
    cursor: pointer;
    border-radius: 4px;
}

.cart-total {
    font-size: 1.2em;
    text-align: right;
    margin: 20px 0;
    padding: 15px;
    border-top: 2px solid #ddd;
}

.cart-total .subtotal-line,
.cart-total .tax-line {
    display: flex;
    justify-content: space-between;
    margin: 8px 0;
    color: #666;
}

.cart-total .total-line {
    display: flex;
    justify-content: space-between;
    margin: 15px 0 0 0;
    padding-top: 10px;
    border-top: 1px solid #ddd;
    font-size: 1.3em;
}

.checkout-form input,
.checkout-form button {
    display: block;
    width: 100%;
    padding: 12px;
    margin-bottom: 10px;
    border: 1px solid #ddd;
    border-radius: 4px;
}

#checkout-button {
    background: #8b4513;
    color: white;
    border: none;
    cursor: pointer;
    font-size: 1em;
}

#checkout-button:hover {
    background: #6d3410;
}

#card-container {
    min-height: 100px;
    margin: 15px 0;
}

.success {
    color: green;
    font-weight: bold;
}

.error {
    color: red;
    font-weight: bold;
}

.custom-shop-subscriptions,
.custom-shop-account {
    max-width: 600px;
    margin: 0 auto;
    padding: 20px;
}

.custom-shop-subscriptions input,
.custom-shop-subscriptions select,
.custom-shop-subscriptions button {
    display: block;
    width: 100%;
    padding: 10px;
    margin-bottom: 10px;
    border: 1px solid #ddd;
    border-radius: 4px;
}

.custom-shop-subscriptions button {
    background: #8b4513;
    color: white;
    border: none;
    cursor: pointer;
}

.account-section {
    margin: 30px 0;
    padding: 20px;
    border: 1px solid #ddd;
    border-radius: 8px;
}

.subscription {
    border: 1px solid #ddd;
    padding: 15px;
    margin-bottom: 15px;
    border-radius: 4px;
}

.custom-shop-gift-cards {
    max-width: 800px;
    margin: 0 auto;
    padding: 20px;
}

.gift-card-tabs {
    display: flex;
    gap: 10px;
    margin-bottom: 30px;
    border-bottom: 2px solid #ddd;
}

.tab-button {
    padding: 12px 24px;
    background: none;
    border: none;
    border-bottom: 3px solid transparent;
    cursor: pointer;
    font-size: 1em;
    color: #666;
    transition: all 0.3s;
}

.tab-button.active {
    color: #8b4513;
    border-bottom-color: #8b4513;
}

.tab-content {
    display: none;
}

.tab-content.active {
    display: block;
}

.gift-card-form {
    background: #f9f9f9;
    padding: 30px;
    border-radius: 8px;
}

.gift-card-form .form-row {
    margin-bottom: 20px;
}

.gift-card-form label {
    display: block;
    margin-bottom: 8px;
    font-weight: bold;
    color: #333;
}

.gift-card-form input[type="text"],
.gift-card-form input[type="email"],
.gift-card-form input[type="number"],
.gift-card-form textarea {
    width: 100%;
    padding: 12px;
    border: 1px solid #ddd;
    border-radius: 4px;
    font-size: 1em;
}

.gift-card-form textarea {
    resize: vertical;
}

.gift-card-form small {
    display: block;
    margin-top: 5px;
    color: #666;
    font-size: 0.9em;
}

.card-type-options {
    display: flex;
    gap: 20px;
}

.radio-option {
    display: flex;
    align-items: center;
    gap: 8px;
    cursor: pointer;
}

.radio-option input[type="radio"] {
    width: auto;
}

.amount-options {
    display: flex;
    gap: 10px;
    flex-wrap: wrap;
    align-items: center;
}

.amount-btn {
    padding: 12px 24px;
    background: #fff;
    border: 2px solid #ddd;
    border-radius: 4px;
    cursor: pointer;
    font-size: 1em;
    font-weight: bold;
    transition: all 0.3s;
}

.amount-btn:hover {
    border-color: #8b4513;
}

.amount-btn.selected {
    background: #8b4513;
    color: white;
    border-color: #8b4513;
}

#custom-amount {
    width: 150px;
}

.digital-only {
    display: block;
}

#gift-card-container {
    min-height: 100px;
    margin: 15px 0;
}

.btn-purchase,
.btn-check {
    width: 100%;
    padding: 15px;
    background: #8b4513;
    color: white;
    border: none;
    border-radius: 4px;
    font-size: 1.1em;
    cursor: pointer;
    transition: background 0.3s;
}

.btn-purchase:hover,
.btn-check:hover {
    background: #6d3410;
}

.btn-purchase:disabled {
    background: #ccc;
    cursor: not-allowed;
}

.gift-card-messages,
.balance-result {
    margin-top: 20px;
}

.gift-card-messages p,
.balance-result p {
    padding: 15px;
    border-radius: 4px;
    margin-bottom: 10px;
}

.error {
    background: #fee;
    color: #c00;
    border: 1px solid #fcc;
}

.success {
    background: #efe;
    color: #060;
    border: 1px solid #cfc;
}

.processing {
    background: #ffc;
    color: #660;
    border: 1px solid #ffa;
}

.success-message {
    background: #efe;
    padding: 20px;
    border-radius: 8px;
    border: 2px solid #0c0;
}

.success-message h4 {
    color: #060;
    margin-top: 0;
}

.success-message p {
    margin: 10px 0;
    padding: 0;
    background: none;
    border: none;
}

.success-message strong {
    color: #8b4513;
    font-size: 1.2em;
}

.balance-info {
    background: #fff;
    padding: 20px;
    border-radius: 8px;
    border: 2px solid #8b4513;
    text-align: center;
}

.balance-info h4 {
    margin-top: 0;
    color: #333;
}

.balance-amount {
    font-size: 2.5em;
    font-weight: bold;
    color: #8b4513;
    margin: 20px 0;
}

.balance-info p {
    margin: 10px 0;
    padding: 0;
    background: none;
    border: none;
    color: #666;
}
