/**
 * Theme Name: Blocksy Child
 * Description: Blocksy Child theme
 * Author: Creative Themes
 * Template: blocksy
 * Text Domain: blocksy
 */

/* ============================================
   BLOCKSY ACCOUNT MODAL — DR. GUMMY STYLED
   ============================================ */

/* Panel wrapper */
.ct-panel-content {
    padding: 0 !important;
}

.ct-account-modal {
    padding: 40px 36px 36px;
    background: #fff;
    border-radius: 20px;
    font-family: 'DM Sans', 'Inter', sans-serif;
    min-width: 340px;
}

/* ─── FORM LABELS ─────────────────────────────── */
.ct-account-modal label {
    display: block;
    font-size: 12px;
    font-weight: 700;
    text-transform: uppercase;
    letter-spacing: 0.6px;
    color: #4B5563;
    margin-bottom: 7px;
    font-family: 'DM Sans', 'Inter', sans-serif;
}

/* ─── INPUTS ──────────────────────────────────── */
.ct-account-modal .input {
    width: 100%;
    padding: 13px 16px;
    border: 1.5px solid #E5E7EB;
    border-radius: 10px;
    font-size: 14px;
    font-family: 'DM Sans', 'Inter', sans-serif;
    color: #1a1a1a;
    background: #FAFAFA;
    transition: border-color 0.2s, box-shadow 0.2s, background 0.2s;
    outline: none;
    box-sizing: border-box;
}

.ct-account-modal .input:focus {
    border-color: #1B4332;
    background: #fff;
    box-shadow: 0 0 0 3px rgba(27, 67, 50, 0.08);
}

.ct-account-modal .input:hover:not(:focus) {
    border-color: #9CA3AF;
}

/* ─── PARAGRAPH SPACING ───────────────────────── */
.ct-account-modal p {
    margin: 0 0 18px;
}

.ct-account-modal p:last-child {
    margin-bottom: 0;
}

/* ─── PASSWORD WRAPPER ────────────────────────── */
.ct-account-modal .account-password-input {
    position: relative;
    display: block;
}

.ct-account-modal .account-password-input .input {
    padding-right: 44px;
}

.ct-account-modal .show-password-input {
    position: absolute;
    right: 14px;
    top: 50%;
    transform: translateY(-50%);
    cursor: pointer;
    color: #9CA3AF;
    font-size: 16px;
    transition: color 0.2s;
}

.ct-account-modal .show-password-input:hover {
    color: #1B4332;
}

/* ─── REMEMBER ME + FORGOT ROW ────────────────── */
.ct-account-modal .login-remember {
    display: flex;
    justify-content: space-between;
    align-items: center;
    margin-bottom: 24px !important;
}

.ct-account-modal .login-remember span {
    display: flex;
    align-items: center;
    gap: 8px;
}

.ct-account-modal .login-remember label {
    font-size: 13px;
    font-weight: 500;
    text-transform: none;
    letter-spacing: 0;
    color: #6B7280;
    margin-bottom: 0;
    cursor: pointer;
}

/* Checkbox */
.ct-account-modal .ct-checkbox {
    width: 16px;
    height: 16px;
    accent-color: #1B4332;
    cursor: pointer;
    flex-shrink: 0;
}

/* Forgot password link */
.ct-account-modal .ct-forgot-password {
    font-size: 13px;
    color: #1B4332;
    text-decoration: none;
    font-weight: 600;
    transition: color 0.2s;
}

.ct-account-modal .ct-forgot-password:hover {
    color: #2D6A4F;
    text-decoration: underline;
}

/* ─── SUBMIT BUTTON ───────────────────────────── */
.ct-account-modal .ct-button.ct-account-login-submit,
.ct-account-modal .ct-button.ct-account-lost-password-submit {
    width: 100%;
    padding: 14px 20px;
    background: #1B4332;
    color: #fff;
    border: none;
    border-radius: 12px;
    font-size: 15px;
    font-weight: 700;
    font-family: 'DM Sans', 'Inter', sans-serif;
    cursor: pointer;
    transition: background 0.2s, transform 0.15s, box-shadow 0.2s;
    display: flex;
    align-items: center;
    justify-content: center;
    gap: 10px;
    letter-spacing: 0.2px;
    box-shadow: 0 4px 14px rgba(27, 67, 50, 0.25);
}

.ct-account-modal .ct-button.ct-account-login-submit:hover,
.ct-account-modal .ct-button.ct-account-lost-password-submit:hover {
    background: #2D6A4F;
    transform: translateY(-1px);
    box-shadow: 0 6px 20px rgba(27, 67, 50, 0.35);
}

.ct-account-modal .ct-button.ct-account-login-submit:active,
.ct-account-modal .ct-button.ct-account-lost-password-submit:active {
    transform: translateY(0);
    box-shadow: 0 2px 8px rgba(27, 67, 50, 0.2);
}

/* Button loader spinner */
.ct-account-modal .ct-button-loader {
    display: none;
    animation: dg-spin 0.6s linear infinite;
}

.ct-account-modal .ct-button.loading .ct-button-loader {
    display: block;
}

@keyframes dg-spin {
    from { transform: rotate(0deg); }
    to   { transform: rotate(360deg); }
}

/* ─── FORGOT PASSWORD FORM ────────────────────── */
.ct-account-modal .ct-forgot-password-form p {
    margin-bottom: 20px;
}

/* Back to login link */
.ct-account-modal .ct-back-to-login {
    display: inline-flex;
    align-items: center;
    gap: 6px;
    margin-top: 18px;
    font-size: 13px;
    font-weight: 600;
    color: #6B7280;
    text-decoration: none;
    transition: color 0.2s;
}

.ct-account-modal .ct-back-to-login:hover {
    color: #1B4332;
}

/* ─── FORM TRANSITION (active state) ─────────── */
.ct-account-modal .ct-login-form,
.ct-account-modal .ct-forgot-password-form {
    display: none;
}

.ct-account-modal .ct-login-form.active,
.ct-account-modal .ct-forgot-password-form.active {
    display: block;
}

/* ─── PANEL POPUP SHADOW & RADIUS ─────────────── */
.ct-account-modal-panel .ct-panel-content,
[data-id="account-modal"] .ct-panel-content {
    border-radius: 20px !important;
    box-shadow: 0 20px 60px rgba(0, 0, 0, 0.15) !important;
    overflow: hidden;
}

/* ─── MOBILE ──────────────────────────────────── */
@media (max-width: 480px) {
    .ct-account-modal {
        padding: 28px 20px 24px;
        min-width: unset;
        width: 100%;
    }

    .ct-account-modal .ct-button.ct-account-login-submit,
    .ct-account-modal .ct-button.ct-account-lost-password-submit {
        padding: 13px;
        font-size: 14px;
    }
}
 
 
 /* 1. MAIN DROPDOWN CONTAINER (Glassmorphism) */
ul.ct-header-account-dropdown {
    background: rgba(255, 255, 255, 0.7) !important;
    backdrop-filter: blur(12px) saturate(180%) !important;
    -webkit-backdrop-filter: blur(12px) saturate(180%) !important;
    border: 1px solid rgba(255, 255, 255, 0.4) !important;
    border-radius: 16px !important;
    box-shadow: 0 8px 32px 0 rgba(0, 0, 0, 0.08) !important;
    padding: 15px !important;
    min-width: 220px !important;
    overflow: hidden !important;
}

/* 2. USER INFO SECTION */
.ct-header-account-user-info .ct-menu-link {
    display: flex !important;
    align-items: center !important;
    gap: 12px !important;
    padding-bottom: 12px !important;
    border-bottom: 1px solid rgba(0, 0, 0, 0.05) !important;
    margin-bottom: 8px !important;
}

/* User Avatar */
.ct-header-account-user-info .ct-media-container img {
    border-radius: 50% !important;
    border: 2px solid #2e5738 !important; /* Your brand green */
}

/* Name (Playfair Display) */
.ct-header-account-user-info span b {
    display: block !important;
    font-family: "Playfair Display", serif !important;
    font-size: 16px !important;
    font-weight: 700 !important;
    color: #000 !important;
    line-height: 1.2 !important;
}

/* Email (DM Sans) */
.ct-header-account-user-info span small {
    display: block !important;
    font-family: "DM Sans", sans-serif !important;
    font-size: 12px !important;
    color: #666 !important;
}

/* 3. MENU LINKS (DM Sans) */
ul.ct-header-account-dropdown .menu-item a.ct-menu-link {
    font-family: "DM Sans", sans-serif !important;
    font-size: 14px !important;
    font-weight: 400 !important;
    color: #333 !important;
    padding: 10px 12px !important;
    border-radius: 8px !important;
    transition: all 0.3s ease !important;
    display: block !important;
}

/* 4. HOVER STATE STYLING */
ul.ct-header-account-dropdown .menu-item a.ct-menu-link:hover {
    background: rgba(46, 87, 56, 0.1) !important; /* Very light brand green */
    color: #2e5738 !important; /* Brand green text */
    padding-left: 18px !important; /* Subtle shift effect */
}

/* Divider styling */
.ct-header-account-divider {
    height: 1px !important;
    background: rgba(0, 0, 0, 0.05) !important;
    margin: 8px 0 !important;
}


/* Cart icon wrapper */
.custom-header-cart {
  cursor: pointer;
}

.cart-icon-wrapper {
  position: relative;
  display: inline-flex;
  align-items: center;
  justify-content: center;
}

/* Dynamic cart badge (positioned like reference) */
.header-cart-count {
  position: absolute;
 top: -10px;
   right: -8px;
  min-width: 18px;
  height: 18px;
  padding: 0 5px;
  border-radius: 999px;
  background: #2f6f4e; /* adjust color if needed */
  color: #fff;
  font-size: 11px;
  font-weight: 700;
  line-height: 18px;
  text-align: center;
  display: inline-flex;
  align-items: center;
  justify-content: center;
}

/* Hide badge when empty */
.header-cart-count:empty,
.header-cart-count.is-hidden {
  display: none;
}


@media screen and (max-width: 767px){
	.cart-icon-wrapper{top:-2px !important;}
	.header-cart-count{top: -11px;right: -8px;}
}

