/* ============================================================
   deals.imagirlfriday.com — Custom Styles
   Brand: Hot Pink #D81B76 | Blush #F5DCE8 | Dark #1A1A1A
   ============================================================ */

:root {
    --pink:       #D81B76;
    --pink-dark:  #B01560;
    --blush:      #F5DCE8;
    --pale:       #FDF0F7;
    --dark:       #1A1A1A;
}

/* ── Base ── */
html { scroll-behavior: smooth; }

/* ── Cart sidebar open state ── */
#cart-sidebar.open  { transform: translateX(0); }
#cart-overlay.open  { display: block; }

/* ── Cart sidebar scrollbar ── */
#cart-items::-webkit-scrollbar       { width: 4px; }
#cart-items::-webkit-scrollbar-track { background: transparent; }
#cart-items::-webkit-scrollbar-thumb { background: var(--blush); border-radius: 2px; }

/* ── Product card ── */
.product-card {
    background: #fff;
    border: 1px solid var(--blush);
    border-radius: 14px;
    overflow: hidden;
    transition: box-shadow 0.22s ease, transform 0.22s ease;
    display: flex;
    flex-direction: column;
}
.product-card:hover {
    box-shadow: 0 10px 30px rgba(216, 27, 118, 0.13);
    transform: translateY(-3px);
}
.product-card-image {
    width: 100%;
    height: 230px;
    object-fit: cover;
    background: var(--pale);
    flex-shrink: 0;
}
.product-card-body {
    padding: 16px;
    display: flex;
    flex-direction: column;
    flex: 1;
}

/* ── Featured ribbon ── */
.badge-featured {
    display: inline-flex;
    align-items: center;
    gap: 4px;
    background: var(--pink);
    color: #fff;
    font-size: 0.68rem;
    font-weight: 700;
    letter-spacing: 0.08em;
    text-transform: uppercase;
    padding: 3px 10px;
    border-radius: 999px;
}

/* ── Low stock warning ── */
.badge-stock {
    display: inline-block;
    background: #FEF3C7;
    color: #92400E;
    font-size: 0.68rem;
    font-weight: 600;
    padding: 2px 8px;
    border-radius: 999px;
}

/* ── Price display ── */
.price-retail {
    text-decoration: line-through;
    color: #9CA3AF;
    font-size: 0.85rem;
}
.price-deal {
    color: var(--pink);
    font-size: 1.3rem;
    font-weight: 700;
    font-family: 'Gill Sans', 'Gill Sans MT', 'Gill Sans Nova', Lato, sans-serif;
    line-height: 1.1;
}

/* ── Buttons ── */
.btn-cart {
    width: 100%;
    background: var(--pink);
    color: #fff;
    border: none;
    border-radius: 9px;
    padding: 11px 20px;
    font-weight: 600;
    font-size: 0.875rem;
    cursor: pointer;
    transition: background 0.2s ease, transform 0.1s ease;
    margin-top: auto;
}
.btn-cart:hover    { background: var(--pink-dark); }
.btn-cart:active   { transform: scale(0.98); }
.btn-cart:disabled { background: #D1D5DB; cursor: not-allowed; }

.btn-primary {
    display: inline-block;
    background: var(--pink);
    color: #fff;
    border: none;
    border-radius: 9px;
    padding: 11px 24px;
    font-weight: 600;
    font-size: 0.9rem;
    cursor: pointer;
    transition: background 0.2s ease;
    text-decoration: none;
    text-align: center;
}
.btn-primary:hover { background: var(--pink-dark); color: #fff; }

/* ── Cart sidebar items ── */
.cart-item {
    display: flex;
    align-items: flex-start;
    gap: 12px;
    padding-bottom: 16px;
    border-bottom: 1px solid var(--blush);
}
.cart-item-img {
    width: 58px;
    height: 58px;
    object-fit: cover;
    border-radius: 8px;
    background: var(--pale);
    flex-shrink: 0;
}
.cart-item-remove {
    background: none;
    border: none;
    padding: 4px 6px;
    color: #94A3B8;
    cursor: pointer;
    font-size: 1rem;
    line-height: 1;
    transition: color 0.2s, background 0.2s;
    flex-shrink: 0;
    border-radius: 4px;
}
.cart-item-remove:hover {
    color: #DC2626;
    background: #FEE2E2;
}
.qty-btn {
    width: 24px;
    height: 24px;
    display: inline-flex;
    align-items: center;
    justify-content: center;
    border: 1px solid var(--blush);
    border-radius: 5px;
    background: white;
    font-size: 0.8rem;
    cursor: pointer;
    transition: border-color 0.15s;
    line-height: 1;
}
.qty-btn:hover { border-color: var(--pink); color: var(--pink); }

/* ── Form elements ── */
.form-label {
    display: block;
    font-weight: 500;
    font-size: 0.875rem;
    margin-bottom: 5px;
    color: var(--dark);
}
.form-input {
    width: 100%;
    border: 1px solid var(--blush);
    border-radius: 8px;
    padding: 10px 14px;
    font-size: 0.9rem;
    font-family: inherit;
    outline: none;
    transition: border-color 0.2s, box-shadow 0.2s;
    background: #fff;
}
.form-input:focus {
    border-color: var(--pink);
    box-shadow: 0 0 0 3px rgba(216, 27, 118, 0.1);
}
textarea.form-input { resize: vertical; min-height: 90px; }

/* ── Fulfillment badges ── */
.badge-shipped,
.badge-pickup,
.badge-both {
    display: inline-flex;
    align-items: center;
    gap: 5px;
    font-size: 0.66rem;
    font-weight: 700;
    letter-spacing: 0.04em;
    text-transform: uppercase;
    padding: 4px 10px;
    border-radius: 999px;
    white-space: nowrap;
}
.badge-shipped {
    background: #DBEAFE;
    color: #1D4ED8;
}
.badge-pickup {
    background: #FEF3C7;
    color: #92400E;
}
.badge-both {
    background: #D1FAE5;
    color: #065F46;
}

/* ── Fulfillment inline select (admin dashboard) ── */
.fulfillment-select {
    border: 1.5px solid #e2e8f0;
    border-radius: 999px;
    padding: 3px 10px 3px 8px;
    font-size: 0.72rem;
    font-weight: 700;
    font-family: inherit;
    letter-spacing: 0.04em;
    cursor: pointer;
    outline: none;
    appearance: none;
    -webkit-appearance: none;
    background-image: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' width='10' height='6' viewBox='0 0 10 6'%3E%3Cpath d='M1 1l4 4 4-4' stroke='currentColor' stroke-width='1.5' fill='none' stroke-linecap='round'/%3E%3C/svg%3E");
    background-repeat: no-repeat;
    background-position: right 7px center;
    padding-right: 22px;
    transition: box-shadow 0.15s;
    white-space: nowrap;
}
.fulfillment-select:focus {
    box-shadow: 0 0 0 3px rgba(216, 27, 118, 0.15);
}

/* ── Alerts ── */
.alert-success {
    background: #D1FAE5; color: #065F46;
    border: 1px solid #6EE7B7;
    border-radius: 8px; padding: 12px 16px; font-size: 0.875rem;
}
.alert-error {
    background: #FEE2E2; color: #991B1B;
    border: 1px solid #FCA5A5;
    border-radius: 8px; padding: 12px 16px; font-size: 0.875rem;
}

/* ── Admin table ── */
.admin-table { width: 100%; border-collapse: collapse; }
.admin-table th {
    background: var(--pale);
    font-weight: 600;
    font-size: 0.75rem;
    text-transform: uppercase;
    letter-spacing: 0.06em;
    color: #6B7280;
    padding: 10px 16px;
    border-bottom: 1px solid var(--blush);
}
.admin-table td {
    padding: 12px 16px;
    border-bottom: 1px solid var(--blush);
    font-size: 0.875rem;
    vertical-align: middle;
}
.admin-table tbody tr:last-child td { border-bottom: none; }
.admin-table tbody tr:hover td { background: var(--pale); }

/* Newsletter copy-link button */
.copy-link-btn {
    color: #6B7280;
    background: none;
    border: none;
    cursor: pointer;
    transition: color .15s;
    padding: 0;
}
.copy-link-btn:hover { color: var(--pink); }

/* ── Toggle switch ── */
.toggle-switch {
    position: relative;
    display: inline-block;
    width: 38px;
    height: 21px;
    cursor: pointer;
}
.toggle-switch input { opacity: 0; width: 0; height: 0; position: absolute; }
.toggle-slider {
    position: absolute;
    inset: 0;
    background: #D1D5DB;
    border-radius: 999px;
    transition: background 0.2s;
}
.toggle-slider::before {
    content: '';
    position: absolute;
    height: 15px; width: 15px;
    left: 3px; bottom: 3px;
    background: white;
    border-radius: 50%;
    transition: transform 0.2s;
    box-shadow: 0 1px 3px rgba(0,0,0,.15);
}
.toggle-switch input:checked + .toggle-slider             { background: var(--pink); }
.toggle-switch input:checked + .toggle-slider::before     { transform: translateX(17px); }

/* ── Spinner ── */
.spinner {
    display: inline-block;
    width: 32px; height: 32px;
    border: 3px solid var(--blush);
    border-top-color: var(--pink);
    border-radius: 50%;
    animation: spin 0.7s linear infinite;
}
@keyframes spin { to { transform: rotate(360deg); } }


/* ── Admin hamburger button ── */
.admin-hamburger {
    display: flex;
    flex-direction: column;
    justify-content: center;
    gap: 5px;
    width: 38px;
    height: 38px;
    padding: 8px;
    background: none;
    border: none;
    cursor: pointer;
    border-radius: 6px;
    flex-shrink: 0;
}
.admin-hamburger span {
    display: block;
    width: 20px;
    height: 2px;
    background: #374151;
    border-radius: 2px;
    transition: transform 0.2s, opacity 0.2s;
}
.admin-hamburger.open span:nth-child(1) { transform: translateY(7px) rotate(45deg); }
.admin-hamburger.open span:nth-child(2) { opacity: 0; }
.admin-hamburger.open span:nth-child(3) { transform: translateY(-7px) rotate(-45deg); }

/* ── Admin mobile nav dropdown ── */
.admin-mobile-nav {
    display: none;
    border-top: 1px solid var(--blush);
    background: #fff;
    padding: 4px 0;
}
.admin-mobile-nav.open { display: block; }
.admin-mobile-nav a {
    display: block;
    padding: 13px 18px;
    font-size: 0.95rem;
    color: #374151;
    text-decoration: none;
    border-bottom: 1px solid var(--blush);
    transition: color 0.15s, background 0.15s;
}
.admin-mobile-nav a:last-child { border-bottom: none; }
.admin-mobile-nav a:hover,
.admin-mobile-nav a:active { color: var(--pink); background: var(--pale); }
.admin-mobile-nav a.admin-nav-active { color: var(--pink); font-weight: 600; }

.admin-desktop-nav {
    display: none;
}

.admin-mobile-toggle {
    display: flex;
}

.admin-mobile-hide {
    display: none;
}

.admin-desktop-inline {
    display: none;
}

.admin-section-head {
    display: flex;
    align-items: center;
    justify-content: space-between;
    gap: 12px;
    flex-wrap: wrap;
}

.admin-form-actions {
    display: flex;
    flex-direction: column;
    align-items: stretch;
    gap: 12px;
}

.admin-back-link {
    font-size: 0.875rem;
    color: #9CA3AF;
    transition: color 0.2s ease;
}

.admin-back-link:hover {
    color: var(--pink);
}

@media (min-width: 768px) {
    .admin-desktop-nav {
        display: flex;
    }

    .admin-mobile-toggle {
        display: none;
    }

    .admin-mobile-nav {
        display: none !important;
    }

    .admin-mobile-hide {
        display: table-cell;
    }

    .admin-desktop-inline {
        display: inline-flex;
    }

    .admin-form-actions {
        flex-direction: row;
        align-items: center;
    }
}

/* ── Floating package navigation active state ── */
.floating-dock-btn-active {
    background-color: var(--pink) !important;
    color: #ffffff !important;
    border-color: var(--pink) !important;
    transform: scale(1.1) !important;
    box-shadow: 0 4px 10px rgba(216, 27, 118, 0.25) !important;
}

/* ── Google Preferred Source Footer Badge ── */
.google-pref-source-wrapper {
    background-color: var(--pale);
    border: 1px solid var(--blush);
    box-shadow: 0 2px 8px rgba(216, 27, 118, 0.04);
    cursor: pointer;
    transition: all 0.22s ease-in-out;
}
.google-pref-source-wrapper:hover {
    box-shadow: 0 4px 14px rgba(216, 27, 118, 0.14);
    border-color: rgba(216, 27, 118, 0.4);
    transform: translateY(-1px);
}


