/* =============================================
   PREMIUM COUPON OFFERS SECTION
   ============================================= */

/* Offers Section Container */
.offers-section {
    margin-bottom: 2rem;
}

.offers-header {
    display: flex;
    align-items: center;
    justify-content: space-between;
    margin-bottom: 1.25rem;
    padding-bottom: 0.75rem;
    border-bottom: 2px solid transparent;
    background: linear-gradient(to right, var(--t-shadow-gold), transparent) bottom;
    background-size: 100% 2px;
    background-repeat: no-repeat;
}

.offers-title {
    font-size: 1.125rem;
    font-weight: 700;
    color: #1a1a1a;
    letter-spacing: 0.5px;
    display: flex;
    align-items: center;
    gap: 0.5rem;
}

.offers-title svg {
    width: 24px;
    height: 24px;
    color: var(--t-secondary);
}

.offers-subtitle {
    font-size: 0.75rem;
    color: #666;
    font-weight: 500;
}

/* Coupons Container */
.coupons-container {
    display: flex;
    flex-direction: column;
    gap: 0.75rem;
}

/* Individual Coupon Card */
.coupon-card {
    position: relative;
    display: flex;
    align-items: center;
    gap: 1rem;
    padding: 1rem 1.25rem;
    background: linear-gradient(135deg, 
        color-mix(in srgb, var(--t-secondary) 5%, white) 0%,
        rgba(255, 255, 255, 1) 50%,
        color-mix(in srgb, var(--t-accent) 5%, white) 100%
    );
    border: 1.5px dashed var(--t-secondary);
    border-radius: 12px;
    transition: all 0.3s ease;
    overflow: hidden;
}

.coupon-card::before {
    content: '';
    position: absolute;
    left: -10px;
    top: 50%;
    transform: translateY(-50%);
    width: 20px;
    height: 20px;
    background: white;
    border-radius: 50%;
    box-shadow: 2px 0 4px rgba(0, 0, 0, 0.1);
}

.coupon-card::after {
    content: '';
    position: absolute;
    right: -10px;
    top: 50%;
    transform: translateY(-50%);
    width: 20px;
    height: 20px;
    background: white;
    border-radius: 50%;
    box-shadow: -2px 0 4px rgba(0, 0, 0, 0.1);
}

.coupon-card:hover {
    border-color: var(--t-secondary-dark);
    box-shadow: 0 4px 16px color-mix(in srgb, var(--t-btn-from) 20%, transparent);
    transform: translateY(-2px);
}

/* Coupon Icon */
.coupon-icon {
    flex-shrink: 0;
    width: 48px;
    height: 48px;
    background: linear-gradient(135deg, var(--t-btn-from) 0%, var(--t-btn-to) 100%);
    border-radius: 10px;
    display: flex;
    align-items: center;
    justify-content: center;
    box-shadow: 0 2px 8px color-mix(in srgb, var(--t-btn-from) 30%, transparent);
}

.coupon-icon svg {
    width: 24px;
    height: 24px;
    color: white;
}

/* Coupon Details */
.coupon-details {
    flex: 1;
}

.coupon-code {
    font-size: 0.9375rem;
    font-weight: 700;
    color: #1a1a1a;
    margin-bottom: 0.25rem;
    letter-spacing: 0.5px;
}

.coupon-description {
    font-size: 0.8125rem;
    color: #666;
    line-height: 1.4;
}

.coupon-discount {
    font-weight: 600;
    color: var(--t-secondary);
}

/* Copy Button */
.coupon-copy-btn {
    flex-shrink: 0;
    padding: 0.5rem 1rem;
    background: linear-gradient(135deg, var(--t-btn-from) 0%, var(--t-btn-to) 100%);
    color: var(--t-btn-text);
    font-size: 0.8125rem;
    font-weight: 600;
    border: none;
    border-radius: 8px;
    cursor: pointer;
    transition: all 0.3s ease;
    text-transform: uppercase;
    letter-spacing: 0.5px;
    box-shadow: 0 2px 8px color-mix(in srgb, var(--t-btn-from) 30%, transparent);
}

.coupon-copy-btn:hover {
    background: linear-gradient(135deg, var(--t-btn-hover-from) 0%, var(--t-btn-hover-to) 100%);
    box-shadow: 0 4px 12px color-mix(in srgb, var(--t-secondary) 40%, transparent);
    transform: translateY(-2px);
}

.coupon-copy-btn:active {
    transform: translateY(0);
}

.coupon-copy-btn.copied {
    background: linear-gradient(135deg, #10b981 0%, #059669 100%);
}

/* Expiry Tag */
.coupon-expiry {
    position: absolute;
    top: 8px;
    right: 12px;
    font-size: 0.6875rem;
    color: #999;
    background: rgba(255, 255, 255, 0.9);
    padding: 0.25rem 0.5rem;
    border-radius: 4px;
    font-weight: 500;
}

/* ══ Action Buttons — LAYOUT ONLY (colours set by theme block in detail.php head) ══ */
.product-actions {
    display: flex;
    gap: 1rem;
    margin-bottom: 1.5rem;
}

.product-actions .btn {
    flex: 1;
    padding: 1rem 1.5rem;
    font-size: 1rem;
    font-weight: 600;
    border-radius: 10px;
    cursor: pointer;
    text-transform: uppercase;
    letter-spacing: 0.5px;
    display: flex;
    align-items: center;
    justify-content: center;
    gap: 0.5rem;
    /* No border/background/color here — handled by theme block */
}

.btn-icon {
    width: 20px;
    height: 20px;
    flex-shrink: 0;
}

/* Mobile Responsive */
@media (max-width: 768px) {
    .coupon-card {
        flex-wrap: wrap;
        padding: 1rem;
    }
    
    .coupon-icon {
        width: 40px;
        height: 40px;
    }
    
    .coupon-icon svg {
        width: 20px;
        height: 20px;
    }
    
    .coupon-copy-btn {
        width: 100%;
        margin-top: 0.5rem;
    }

    .product-actions {
        flex-direction: column;
    }

    .offers-header {
        flex-direction: column;
        align-items: flex-start;
        gap: 0.5rem;
    }
}

/* Trust Badge Title Size Adjustment */
.trust-badge-title {
    font-size: 0.8125rem !important; /* Reduced from 0.875rem */
    font-weight: 700;
    color: #1a1a1a;
    margin-bottom: 0.25rem;
    letter-spacing: 0.5px;
    text-transform: uppercase;
}

/* Coupon Animation */
@keyframes slideIn {
    from {
        opacity: 0;
        transform: translateX(-20px);
    }
    to {
        opacity: 1;
        transform: translateX(0);
    }
}

.coupon-card {
    animation: slideIn 0.4s ease-out;
}

.coupon-card:nth-child(1) {
    animation-delay: 0.1s;
}

.coupon-card:nth-child(2) {
    animation-delay: 0.2s;
}

.coupon-card:nth-child(3) {
    animation-delay: 0.3s;
}

/* View All Offers Link */
.view-all-offers {
    display: inline-flex;
    align-items: center;
    gap: 0.5rem;
    font-size: 0.8125rem;
    color: var(--t-secondary);
    font-weight: 600;
    text-decoration: none;
    transition: all 0.3s ease;
}

.view-all-offers:hover {
    color: var(--t-secondary-dark);
    gap: 0.75rem;
}

.view-all-offers svg {
    width: 16px;
    height: 16px;
    transition: transform 0.3s ease;
}

.view-all-offers:hover svg {
    transform: translateX(4px);
}