/**
 * Flower Delivery Product Page Styles
 * Using Blocksy Theme Form Styling
 */

/* ========================================
   PRODUCT HEADER SECTION
   ======================================== */

/* Product Title */
.woocommerce div.product .product_title {
    font-size: 32px;
    font-weight: 800;
    margin-bottom: 16px;
    color: #1a1a1a;
    line-height: 1.3;
    letter-spacing: -0.5px;
}

/* Product Rating Section */
.product-rating-wrapper {
    display: flex;
    align-items: center;
    gap: 12px;
    margin-bottom: 18px;
}

.product-rating-wrapper .woocommerce-product-rating {
    display: flex;
    align-items: center;
    gap: 10px;
}

.product-rating-wrapper .star-rating {
    font-size: 16px;
    filter: drop-shadow(0 1px 2px rgba(255, 193, 7, 0.3));
}

.product-rating-wrapper .rating-number {
    font-weight: 700;
    color: #1a1a1a;
    font-size: 17px;
}

.product-rating-wrapper .woocommerce-review-link {
    color: #666;
    text-decoration: none;
    font-size: 14px;
    transition: color 0.2s ease;
}

.product-rating-wrapper .woocommerce-review-link:hover {
    color: #27ae60;
}

/* ========================================
   PRICE SECTION
   ======================================== */

.product-price-wrapper {
    margin-bottom: 24px;
}

.product-price-wrapper .price {
    font-size: 40px;
    font-weight: 800;
    color: #1a1a1a;
    display: flex;
    align-items: baseline;
    gap: 12px;
    line-height: 1;
}

.product-price-wrapper .price del {
    font-size: 22px;
    color: #999;
    text-decoration: line-through;
    font-weight: 600;
}

.product-price-wrapper .price ins {
    text-decoration: none;
}

.product-price-wrapper .price .discount-badge {
    font-size: 17px;
    color: #27ae60;
    font-weight: 700;
    background: #e8f5e9;
    padding: 4px 10px;
    border-radius: 4px;
}

.price-note {
    display: block;
    font-size: 13px;
    color: #666;
    margin-top: 8px;
    font-weight: 400;
}

/* ========================================
   BOOKING NOTICE
   ======================================== */

.booking-notice {
    background: linear-gradient(135deg, #fff0f6 0%, #fce4ec 100%);
    padding: 14px 18px;
    border-radius: 8px;
    display: flex;
    align-items: center;
    gap: 12px;
    margin-bottom: 24px;
    border: 1px solid #ffc9d6;
    box-shadow: 0 2px 8px rgba(252, 228, 236, 0.4);
}

.booking-notice .booking-icon {
    font-size: 20px;
    flex-shrink: 0;
}

.booking-notice span:last-child {
    font-size: 14px;
    color: #2c2c2c;
    font-weight: 500;
}

/* ========================================
   TRUST BADGES
   ======================================== */

.trust-badges {
    display: grid;
    grid-template-columns: repeat(2, 1fr);
    gap: 20px;
    margin-bottom: 35px;
    padding: 28px 0;
    border-top: 2px solid var(--theme-border-color, #e0e0e0);
    border-bottom: 2px solid var(--theme-border-color, #e0e0e0);
}

.trust-badge {
    display: flex;
    align-items: center;
    gap: 14px;
    padding: 4px;
    transition: transform 0.3s ease;
}

.trust-badge:hover {
    transform: translateX(3px);
}

.trust-badge .badge-icon {
    width: 58px;
    height: 58px;
    background: linear-gradient(135deg, #27ae60 0%, #229954 100%);
    border-radius: 50%;
    display: flex;
    align-items: center;
    justify-content: center;
    font-size: 26px;
    flex-shrink: 0;
    box-shadow: 0 4px 12px rgba(39, 174, 96, 0.25);
    transition: all 0.3s ease;
}

.trust-badge:hover .badge-icon {
    transform: scale(1.05);
    box-shadow: 0 6px 16px rgba(39, 174, 96, 0.35);
}

.trust-badge .badge-text {
    display: flex;
    flex-direction: column;
    gap: 2px;
}

.trust-badge .badge-text strong {
    font-size: 15px;
    font-weight: 700;
    color: #1a1a1a;
    line-height: 1.3;
}

.trust-badge .badge-text span {
    font-size: 13px;
    color: #666;
    font-weight: 400;
}

/* ========================================
   DELIVERY FIELDS - BLOCKSY THEME STYLING
   ======================================== */

.flower-delivery-fields {
    margin: 35px 0;
    padding: 0;
}

/* Override autofill styles */
.delivery-input:-webkit-autofill,
.delivery-input:-webkit-autofill:hover,
.delivery-input:-webkit-autofill:focus,
.delivery-input:-webkit-autofill:active {
    -webkit-box-shadow: 0 0 0 30px var(--theme-form-field-background-initial-color, #fff) inset !important;
    -webkit-text-fill-color: var(--theme-form-text-initial-color, var(--theme-text-color)) !important;
    transition: background-color 5000s ease-in-out 0s;
}

.delivery-select:-webkit-autofill,
.delivery-select:-webkit-autofill:hover,
.delivery-select:-webkit-autofill:focus,
.delivery-select:-webkit-autofill:active {
    -webkit-box-shadow: 0 0 0 30px var(--theme-form-field-background-initial-color, #fff) inset !important;
    -webkit-text-fill-color: var(--theme-form-text-initial-color, var(--theme-text-color)) !important;
}

/* Delivery Row Layout */
.delivery-row {
    display: grid;
    grid-template-columns: 1fr 1fr;
    gap: 20px;
    margin-bottom: 20px;
}

.delivery-row:last-child {
    margin-bottom: 0;
}

/* Delivery Field Container */
.delivery-field {
    position: relative;
    width: 100%;
}

/* Input Fields - Using Theme Variables */
.delivery-input {
    width: 100%;
    height: var(--theme-form-field-height, 40px);
    padding: var(--theme-form-field-padding, 0 15px);
    padding-right: 45px !important;
    font-size: var(--theme-form-font-size, 15px);
    line-height: var(--theme-form-line-height, inherit);
    color: var(--theme-form-text-initial-color, var(--theme-text-color));
    background-color: var(--theme-form-field-background-initial-color, #fff);
    border: var(--theme-form-field-border-width, 1px) var(--theme-form-field-border-style, solid) var(--theme-form-field-border-initial-color);
    border-radius: var(--theme-form-field-border-radius, 3px);
    transition: all var(--transition-duration, .15s) ease;
}

.delivery-input:hover {
    border-color: var(--theme-form-field-border-hover-color, var(--theme-form-field-border-initial-color));
}

.delivery-input:focus {
    outline: none;
    border-color: var(--theme-form-field-border-focus-color, var(--theme-palette-color-1));
    background-color: var(--theme-form-field-background-focus-color, var(--theme-form-field-background-initial-color));
}

.delivery-input::placeholder {
    color: var(--theme-form-text-placeholder-color, #9ca3af);
    opacity: 1;
}

.delivery-input::-webkit-input-placeholder {
    color: var(--theme-form-text-placeholder-color, #9ca3af);
    opacity: 1;
}

.delivery-input::-moz-placeholder {
    color: var(--theme-form-text-placeholder-color, #9ca3af);
    opacity: 1;
}

.delivery-input:-ms-input-placeholder {
    color: var(--theme-form-text-placeholder-color, #9ca3af);
    opacity: 1;
}

/* Select Fields - Using Theme Variables */
.delivery-select {
    width: 100%;
    height: var(--theme-form-field-height, 40px);
    padding: var(--theme-form-field-padding, 0 15px);
    padding-right: 40px !important;
    font-size: var(--theme-form-font-size, 15px);
    line-height: var(--theme-form-line-height, inherit);
    color: var(--theme-form-text-initial-color, var(--theme-text-color));
    background-color: var(--theme-form-field-background-initial-color, #fff);
    border: var(--theme-form-field-border-width, 1px) var(--theme-form-field-border-style, solid) var(--theme-form-field-border-initial-color);
    border-radius: var(--theme-form-field-border-radius, 3px);
    appearance: none;
    -webkit-appearance: none;
    -moz-appearance: none;
    background-image: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' width='12' height='8' viewBox='0 0 12 8'%3E%3Cpath fill='%234a5568' d='M1.41 0L6 4.58 10.59 0 12 1.41l-6 6-6-6z'/%3E%3C/svg%3E");
    background-repeat: no-repeat;
    background-position: right 15px center;
    cursor: pointer;
    transition: all var(--transition-duration, .15s) ease;
}

/* Placeholder state for select */
.delivery-select:invalid,
.delivery-select[required]:invalid,
.delivery-select.placeholder-shown {
    color: var(--theme-form-text-placeholder-color, #9ca3af);
}

/* Valid selection state */
.delivery-select:valid {
    color: var(--theme-form-text-initial-color, var(--theme-text-color));
}

.delivery-select:hover {
    border-color: var(--theme-form-field-border-hover-color, var(--theme-form-field-border-initial-color));
}

.delivery-select:focus {
    outline: none;
    border-color: var(--theme-form-field-border-focus-color, var(--theme-palette-color-1));
    background-color: var(--theme-form-field-background-focus-color, var(--theme-form-field-background-initial-color));
}

.delivery-select option {
    color: var(--theme-form-text-initial-color, var(--theme-text-color));
    background-color: var(--theme-form-field-background-initial-color, #fff);
}

/* Placeholder option - hidden in dropdown */
.delivery-select option[value=""][disabled] {
    display: none;
}

.delivery-select option[value=""]:checked {
    color: var(--theme-form-text-placeholder-color, #9ca3af);
}

/* Icon Styling */
.location-icon,
.calendar-icon {
    position: absolute;
    right: 15px;
    top: 50%;
    transform: translateY(-50%);
    font-size: 20px;
    pointer-events: none;
    opacity: 0.6;
    transition: opacity 0.2s ease;
}

.delivery-field:hover .location-icon,
.delivery-field:hover .calendar-icon {
    opacity: 0.8;
}

.delivery-field:focus-within .location-icon,
.delivery-field:focus-within .calendar-icon {
    opacity: 1;
    color: var(--theme-palette-color-1, #27ae60);
}

/* ========================================
   BUTTONS - USING THEME VARIABLES
   ======================================== */

.occasion-message-btn,
.add-to-cart-btn {
    width: 100%;
    min-height: var(--theme-button-min-height, 40px);
    padding: var(--theme-button-padding, 5px 20px);
    font-size: var(--theme-button-font-size, 15px);
    font-weight: 700;
    text-transform: uppercase;
    letter-spacing: 0.5px;
    border: none;
    border-radius: var(--theme-button-border-radius, 3px);
    cursor: pointer;
    transition: all var(--transition-duration, .15s) ease;
    position: relative;
}

.occasion-message-btn {
    background-color: #ffffff !important;
    color: var(--theme-palette-color-1, #27ae60) !important;
    border: 2px solid var(--theme-palette-color-1, #27ae60) !important;
    box-shadow: 0 1px 3px rgba(0, 0, 0, 0.1);
    font-weight: 700;
}

.occasion-message-btn:hover {
    background-color: var(--theme-palette-color-1, #27ae60) !important;
    color: #ffffff !important;
    border-color: var(--theme-palette-color-1, #27ae60) !important;
    transform: translateY(-2px);
    box-shadow: 0 4px 12px rgba(39, 174, 96, 0.25);
}

.add-to-cart-btn {
    background-color: var(--theme-button-background-initial-color, var(--theme-palette-color-1, #27ae60)) !important;
    color: #ffffff !important;
    border: 2px solid transparent !important;
    box-shadow: 0 2px 8px rgba(39, 174, 96, 0.3);
}

.add-to-cart-btn:hover {
    background-color: var(--theme-button-background-hover-color, var(--theme-palette-color-2, #229954)) !important;
    color: #ffffff !important;
    transform: translateY(-2px);
    box-shadow: 0 4px 16px rgba(39, 174, 96, 0.4);
}

.add-to-cart-btn:active,
.occasion-message-btn:active {
    transform: translateY(0);
}

/* Loading state */
.add-to-cart-btn.loading {
    opacity: 0.8;
    pointer-events: none;
}

/* Incomplete state (warning) */
.add-to-cart-btn.incomplete::before {
    content: "⚠";
    position: absolute;
    left: 18px;
    font-size: 18px;
    opacity: 0.85;
}

/* ========================================
   OCCASION MODAL
   ======================================== */

.occasion-modal {
    position: fixed;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    background-color: rgba(0, 0, 0, 0.65);
    backdrop-filter: blur(4px);
    z-index: 10000;
    display: flex;
    align-items: center;
    justify-content: center;
    padding: 20px;
}

.occasion-modal-content {
    background-color: var(--theme-palette-color-8, #fff);
    border-radius: var(--theme-border-radius, 8px);
    max-width: 600px;
    width: 100%;
    box-shadow: 0 20px 60px rgba(0, 0, 0, 0.3);
    animation: modalFadeIn 0.4s cubic-bezier(0.4, 0, 0.2, 1);
}

@keyframes modalFadeIn {
    from {
        opacity: 0;
        transform: scale(0.9) translateY(20px);
    }
    to {
        opacity: 1;
        transform: scale(1) translateY(0);
    }
}

/* Modal Header */
.occasion-modal-header {
    padding: 28px 32px;
    border-bottom: 2px solid var(--theme-border-color, #e0e0e0);
}

.occasion-modal-header h2 {
    margin: 0;
    font-size: 22px;
    font-weight: 700;
    color: var(--theme-headings-color, #1a1a1a);
    text-align: center;
}

/* Modal Body */
.occasion-modal-body {
    padding: 32px;
}

.occasion-field {
    margin-bottom: 24px;
}

.occasion-field:last-child {
    margin-bottom: 0;
}

.occasion-field label {
    display: block;
    margin-bottom: 8px;
    font-size: 14px;
    font-weight: 600;
    color: var(--theme-headings-color, #1a1a1a);
}

/* Occasion Select - Using Theme Styling */
.occasion-select {
    width: 100%;
    height: var(--theme-form-field-height, 40px);
    padding: var(--theme-form-field-padding, 0 15px);
    padding-right: 40px !important;
    font-size: var(--theme-form-font-size, 15px);
    color: var(--theme-form-text-initial-color, var(--theme-text-color));
    background-color: var(--theme-form-field-background-initial-color, #fff);
    border: var(--theme-form-field-border-width, 1px) var(--theme-form-field-border-style, solid) var(--theme-form-field-border-initial-color);
    border-radius: var(--theme-form-field-border-radius, 3px);
    appearance: none;
    background-image: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' width='12' height='8' viewBox='0 0 12 8'%3E%3Cpath fill='%234a5568' d='M1.41 0L6 4.58 10.59 0 12 1.41l-6 6-6-6z'/%3E%3C/svg%3E");
    background-repeat: no-repeat;
    background-position: right 15px center;
    cursor: pointer;
    transition: all var(--transition-duration, .15s) ease;
}

/* Placeholder state */
.occasion-select:has(option[value=""]:checked),
.occasion-select.placeholder-shown {
    color: var(--theme-form-text-placeholder-color, #9ca3af);
}

.occasion-select:hover {
    border-color: var(--theme-form-field-border-hover-color, var(--theme-form-field-border-initial-color));
}

.occasion-select:focus {
    outline: none;
    border-color: var(--theme-form-field-border-focus-color, var(--theme-palette-color-1));
}

.occasion-select option {
    color: var(--theme-form-text-initial-color, var(--theme-text-color));
    background-color: var(--theme-form-field-background-initial-color, #fff);
}

/* Placeholder option - hidden */
.occasion-select option[value=""][disabled] {
    display: none;
}

.occasion-select option[value=""]:checked {
    color: var(--theme-form-text-placeholder-color, #9ca3af);
}

/* Occasion Textarea - Using Theme Styling */
.occasion-textarea {
    width: 100%;
    min-height: 130px;
    padding: var(--theme-form-field-padding, 0 15px);
    padding-top: 12px;
    padding-bottom: 12px;
    font-size: var(--theme-form-font-size, 15px);
    font-family: inherit;
    line-height: 1.6;
    color: var(--theme-form-text-initial-color, var(--theme-text-color));
    background-color: var(--theme-form-field-background-initial-color, #fff);
    border: var(--theme-form-field-border-width, 1px) var(--theme-form-field-border-style, solid) var(--theme-form-field-border-initial-color);
    border-radius: var(--theme-form-field-border-radius, 3px);
    resize: vertical;
    transition: all var(--transition-duration, .15s) ease;
}

.occasion-textarea:hover {
    border-color: var(--theme-form-field-border-hover-color, var(--theme-form-field-border-initial-color));
}

.occasion-textarea:focus {
    outline: none;
    border-color: var(--theme-form-field-border-focus-color, var(--theme-palette-color-1));
}

.occasion-textarea::placeholder {
    color: var(--theme-form-text-placeholder-color, #9ca3af);
}

.occasion-textarea::-webkit-input-placeholder {
    color: var(--theme-form-text-placeholder-color, #9ca3af);
}

.occasion-textarea::-moz-placeholder {
    color: var(--theme-form-text-placeholder-color, #9ca3af);
}

.occasion-textarea:-ms-input-placeholder {
    color: var(--theme-form-text-placeholder-color, #9ca3af);
}

/* Character Count */
.character-count {
    text-align: right;
    margin-top: 10px;
    font-size: 13px;
    color: #6b7280;
    font-weight: 500;
}

#char-count {
    color: var(--theme-palette-color-1, #27ae60);
    font-weight: 700;
}

/* Modal Footer */
.occasion-modal-footer {
    padding: 24px 32px;
    border-top: 2px solid var(--theme-border-color, #e0e0e0);
    display: flex;
    gap: 16px;
    justify-content: flex-end;
    background-color: var(--theme-palette-color-7, #fafafa);
    border-radius: 0 0 var(--theme-border-radius, 8px) var(--theme-border-radius, 8px);
}

.modal-btn {
    min-height: var(--theme-button-min-height, 40px);
    padding: var(--theme-button-padding, 5px 30px);
    font-size: var(--theme-button-font-size, 15px);
    font-weight: var(--theme-button-font-weight, 600);
    border: none;
    border-radius: var(--theme-button-border-radius, 3px);
    cursor: pointer;
    transition: all var(--transition-duration, .15s) ease;
}

.save-btn {
    background-color: var(--theme-button-background-initial-color, var(--theme-palette-color-1));
    color: var(--theme-button-text-initial-color, #fff);
}

.save-btn:hover {
    background-color: var(--theme-button-background-hover-color, var(--theme-palette-color-2));
    transform: var(--theme-button-transform, translateY(-2px));
}

.cancel-btn {
    background-color: var(--theme-border-color, #e0e0e0);
    color: var(--theme-text-color, #1a1a1a);
}

.cancel-btn:hover {
    background-color: #d0d0d0;
    transform: var(--theme-button-transform, translateY(-2px));
}

/* ========================================
   DATEPICKER STYLING
   ======================================== */

.ui-datepicker {
    background-color: var(--theme-palette-color-8, #fff);
    border: 2px solid var(--theme-border-color, #e0e0e0);
    border-radius: var(--theme-border-radius, 8px);
    box-shadow: 0 10px 40px rgba(0, 0, 0, 0.15);
    padding: 12px;
    font-family: inherit;
}

.ui-datepicker-header {
    background: var(--theme-palette-color-1, #27ae60);
    color: #fff;
    border-radius: calc(var(--theme-border-radius, 8px) - 4px);
    padding: 14px;
    margin-bottom: 12px;
}

.ui-datepicker-title {
    color: #fff;
    font-weight: 700;
    font-size: 16px;
}

.ui-datepicker-prev,
.ui-datepicker-next {
    cursor: pointer;
    color: #fff;
    transition: opacity 0.2s ease;
}

.ui-datepicker-prev:hover,
.ui-datepicker-next:hover {
    opacity: 0.8;
}

.ui-datepicker-calendar td a {
    text-align: center;
    padding: 10px;
    color: var(--theme-text-color, #1a1a1a);
    text-decoration: none;
    border-radius: calc(var(--theme-border-radius, 3px) + 2px);
    transition: all 0.2s ease;
    font-weight: 500;
}

.ui-datepicker-calendar td a:hover {
    background-color: var(--theme-palette-color-7, #e8f5e9);
    color: var(--theme-palette-color-1, #27ae60);
}

.ui-datepicker-calendar td .ui-state-active {
    background: var(--theme-palette-color-1, #27ae60);
    color: #fff;
    font-weight: 700;
}

.ui-datepicker-calendar td .ui-state-disabled {
    color: #ccc;
    cursor: not-allowed;
    opacity: 0.4;
}

/* ========================================
   PICK AN UPGRADE SECTION
   ======================================== */

.pick-upgrade-section {
    margin: 50px 0;
}

.pick-upgrade-section .section-title {
    font-size: 24px;
    font-weight: 800;
    color: var(--theme-headings-color, #1a1a1a);
    margin-bottom: 28px;
}

.upgrade-products {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(200px, 1fr));
    gap: 20px;
}

.upgrade-product-card {
    border: 2px solid var(--theme-border-color, #e0e0e0);
    border-radius: var(--theme-border-radius, 8px);
    overflow: hidden;
    transition: all 0.3s ease;
    cursor: pointer;
    background: var(--theme-palette-color-8, #fff);
}

.upgrade-product-card:hover {
    box-shadow: var(--theme-box-shadow, 0 8px 24px rgba(0, 0, 0, 0.12));
    border-color: var(--theme-palette-color-1, #27ae60);
    transform: translateY(-4px);
}

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

.upgrade-product-image img {
    width: 100%;
    height: 100%;
    object-fit: cover;
    transition: transform 0.4s ease;
}

.upgrade-product-card:hover .upgrade-product-image img {
    transform: scale(1.08);
}

.upgrade-product-info {
    padding: 18px;
    text-align: center;
}

.upgrade-price {
    display: flex;
    align-items: center;
    justify-content: center;
    gap: 10px;
    margin-bottom: 10px;
    flex-wrap: wrap;
}

.upgrade-price .price-amount {
    font-size: 20px;
    font-weight: 800;
    color: var(--theme-text-color, #1a1a1a);
}

.upgrade-price .regular-price {
    font-size: 15px;
    color: #999;
    text-decoration: line-through;
    font-weight: 500;
}

.savings-badge {
    font-size: 13px;
    color: var(--theme-palette-color-1, #27ae60);
    font-weight: 700;
    background: var(--theme-palette-color-7, #e8f5e9);
    padding: 3px 8px;
    border-radius: 4px;
}

/* ========================================
   OFFERS AVAILABLE SECTION - REMOVED
   ======================================== */

/* Section removed from template */

/* ========================================
   ADDITIONAL INTEGRATIONS
   ======================================== */

.woocommerce div.product form.cart {
    margin-bottom: 0;
}

.woocommerce div.product .flower-delivery-fields {
    border-top: 2px solid var(--theme-border-color, #e0e0e0);
    padding-top: 30px;
    margin-top: 30px;
}

/* Modal Hidden States */
.occasion-modal[style*="display: none"] {
    display: none !important;
}

.occasion-modal[style*="display: flex"] {
    display: flex !important;
}

/* ========================================
   RESPONSIVE DESIGN
   ======================================== */

@media (max-width: 1024px) {
    .upgrade-products {
        grid-template-columns: repeat(3, 1fr);
    }
}

@media (max-width: 768px) {
    .woocommerce div.product .product_title {
        font-size: 26px;
    }
    
    .product-price-wrapper .price {
        font-size: 34px;
    }
    
    .delivery-row {
        grid-template-columns: 1fr;
        gap: 16px;
    }
    
    .trust-badges {
        grid-template-columns: 1fr;
        gap: 16px;
        padding: 24px 0;
    }
    
    .upgrade-products {
        grid-template-columns: repeat(2, 1fr);
        gap: 16px;
    }
    
    .occasion-modal-content {
        margin: 20px;
    }
    
    .occasion-modal-header,
    .occasion-modal-body {
        padding: 24px;
    }
    
    .occasion-modal-footer {
        padding: 20px 24px;
        flex-direction: column;
    }
    
    .modal-btn {
        width: 100%;
    }
    
    .pick-upgrade-section .section-title,
    .offers-section .section-title {
        font-size: 22px;
    }
    
    .offers-section {
        padding: 24px;
    }
}

@media (max-width: 480px) {
    .woocommerce div.product .product_title {
        font-size: 22px;
    }
    
    .product-price-wrapper .price {
        font-size: 30px;
    }
    
    .upgrade-products {
        grid-template-columns: 1fr;
    }
    
    .trust-badge .badge-icon {
        width: 52px;
        height: 52px;
        font-size: 22px;
    }
    
    .trust-badge .badge-text strong {
        font-size: 14px;
    }
    
    .occasion-message-btn,
    .add-to-cart-btn {
        font-size: 14px;
    }
    
    .offer-item {
        flex-direction: column;
        text-align: center;
    }
    
    .offer-terms {
        margin-left: 0;
        margin-top: 12px;
    }
}

/* ========================================
   ACCESSIBILITY
   ======================================== */

*:focus-visible {
    outline: 2px solid var(--theme-palette-color-1, #27ae60);
    outline-offset: 2px;
}

html {
    scroll-behavior: smooth;
}

@media (prefers-reduced-motion: reduce) {
    *,
    *::before,
    *::after {
        animation-duration: 0.01ms !important;
        animation-iteration-count: 1 !important;
        transition-duration: 0.01ms !important;
    }
}

/* ========================================
   VALIDATION ERROR MESSAGES
   ======================================== */

.delivery-error-message {
    background: #ffebee;
    color: #c62828;
    padding: 12px 15px;
    border-radius: 8px;
    margin-bottom: 15px;
    border: 2px solid #ef5350;
    font-size: 14px;
    line-height: 1.6;
    animation: slideDown 0.3s ease;
    box-shadow: 0 4px 12px rgba(239, 83, 80, 0.2);
}

.delivery-error-message strong {
    display: block;
    margin-bottom: 6px;
    font-size: 15px;
}

/* Shake Animation for Validation Errors */
@keyframes shake {
    0%, 100% { transform: translateX(0); }
    10%, 30%, 50%, 70%, 90% { transform: translateX(-5px); }
    20%, 40%, 60%, 80% { transform: translateX(5px); }
}

.shake {
    animation: shake 0.5s ease;
}

/* Slide Down Animation */
@keyframes slideDown {
    from {
        opacity: 0;
        transform: translateY(-10px);
    }
    to {
        opacity: 1;
        transform: translateY(0);
    }
}

/* Invalid Field Styling */
.delivery-input[style*="border-color: rgb(244, 67, 54)"],
.delivery-select[style*="border-color: rgb(244, 67, 54)"] {
    animation: shake 0.3s ease;
}

/* ========================================
   HIDE DEFAULT WOOCOMMERCE ADD TO CART
   ======================================== */

/* Hide any default WooCommerce add to cart forms/buttons on single product pages */
.single-product div.product form.cart,
.single-product .single_add_to_cart_button,
.single-product button[name="add-to-cart"] {
    display: none !important;
}

/* But show our custom button */
.single-product .add-to-cart-btn {
    display: inline-block !important;
}
