/*
Theme Name: Sunnah Shopping
Theme URI: https://sunnahshopping.in
Author: Mohamad Yousuf
Author URI: https://sunnahshopping.in
Description: Custom WooCommerce theme for Sunnah Shopping
Version: 1.0
Requires at least: 6.0
Tested up to: 6.4
Requires PHP: 8.0
Text Domain: sunnahshopping
*/

/* ===== BASIC RESET ===== */
body {
  margin: 0;
  padding: 0;
  font-family: 'Inter', sans-serif;
}

/* Optional: Custom styles if needed */
.category-card {
  background: #EAF6F3;
  border-radius: 16px;
  padding: 10px;
}
/* Green Add to Cart Button */
.single_add_to_cart_button {
    background-color: #11d452 !important;
    color: #fff !important;
    font-weight: 700;
    border-radius: 12px;
    padding: 14px 20px;
}

.single_add_to_cart_button:hover {
    background-color: #0eb545 !important;
}

/* Review Stars Green */
.woocommerce .star-rating span {
    color: #11d452 !important;
}

/* Sale Badge */
.woocommerce span.onsale {
    background-color: #11d452 !important;
    border-radius: 8px;
}
/* Brand Green */
:root {
  --primary: #11d452;
}

/* Add to Cart Button */
.single_add_to_cart_button {
    background-color: #11d452 !important;
    color: #fff !important;
    border-radius: 14px !important;
    padding: 14px 18px !important;
    font-weight: 700 !important;
    width: 100%;
}

.single_add_to_cart_button:hover {
    background-color: #0eb545 !important;
}

/* Sale Badge */
.woocommerce span.onsale {
    background: #11d452 !important;
    border-radius: 8px !important;
}

/* Star Color */
.woocommerce .star-rating span {
    color: #11d452 !important;
}
/* ================= GLOBAL ANIMATIONS ================= */

.fade-in {
    animation: fadeIn .4s ease forwards;
}

@keyframes fadeIn {
    from {opacity: 0; transform: translateY(10px);}
    to {opacity: 1; transform: translateY(0);}
}

/* ================= ACCORDION ================= */

details summary {
    list-style: none;
}

details summary::-webkit-details-marker {
    display: none;
}

details[open] summary ~ * {
    animation: sweep .3s ease-in-out;
}

@keyframes sweep {
    from {opacity: 0; transform: translateY(-8px);}
    to {opacity: 1; transform: translateY(0);}
}

/* ================= SALE BADGE ================= */

.woocommerce span.onsale {
    background: #11d452 !important;
    animation: pulseBadge 1.5s infinite;
}

@keyframes pulseBadge {
    0% {transform: scale(1);}
    50% {transform: scale(1.08);}
    100% {transform: scale(1);}
}

/* ================= STAR COLOR ================= */

.woocommerce .star-rating span {
    color: #11d452 !important;
}

/* ================= APP QUANTITY SELECTOR ================= */

.quantity {
    display: flex;
    align-items: center;
    border: 1px solid #e5e7eb;
    border-radius: 12px;
    overflow: hidden;
}

.quantity input {
    width: 50px;
    text-align: center;
    border: none !important;
}

.quantity button {
    background: #f3f4f6;
    padding: 8px 12px;
    cursor: pointer;
    border: none;
    font-weight: bold;
}

/* ================= ADD TO CART BUTTON ================= */

.single_add_to_cart_button {
    background-color: #11d452 !important;
    color: #fff !important;
    border-radius: 16px !important;
    padding: 16px !important;
    font-weight: 700 !important;
    width: 100%;
    transition: all .2s ease;
}

.single_add_to_cart_button:hover {
    background-color: #0eb545 !important;
    transform: scale(1.02);
}
.no-scrollbar::-webkit-scrollbar { display: none; }
.no-scrollbar { scrollbar-width: none; }
.fade-in {
    animation: fadeIn .4s ease forwards;
}

@keyframes fadeIn {
    from {
        opacity: 0;
        transform: translateY(12px);
    }
    to {
        opacity: 1;
        transform: translateY(0);
    }
}
.slide-up-cart {
    animation: slideUp .35s ease forwards;
}

@keyframes slideUp {
    from {
        transform: translateY(100%);
        opacity: 0;
    }
    to {
        transform: translateY(0);
        opacity: 1;
    }
}
/* Checkout Fields */
.woocommerce form .form-row input,
.woocommerce form .form-row textarea,
.woocommerce form .form-row select {
    border-radius: 12px !important;
    border: 1px solid #e5e7eb !important;
    padding: 12px !important;
    background: #f9fafb !important;
}

.woocommerce form .form-row label {
    font-weight: 600 !important;
    margin-bottom: 6px;
}

#place_order {
    display: none !important; /* Hide default button */
}
/* Payment Method Style */
.wc_payment_method {
    border: 1px solid #e5e7eb;
    border-radius: 14px;
    padding: 14px;
    margin-bottom: 10px;
}

.wc_payment_method input:checked + label {
    color: #11d452;
    font-weight: 600;
}
@keyframes fadeInUp {
  from { opacity: 0; transform: translateY(20px); }
  to { opacity: 1; transform: translateY(0); }
}

.woocommerce-order {
  animation: fadeInUp 0.6s ease;
}
.woocommerce-MyAccount-navigation {
    display:none !important;
}

.woocommerce-MyAccount-content {
    width:100% !important;
}

.woocommerce table.shop_table {
    border-radius:16px;
    overflow:hidden;
}
.pb-safe {
  padding-bottom: env(safe-area-inset-bottom);
}
/* ================= PRODUCT SLIDER DOTS ================= */

.dot {
  height: 6px;
  width: 6px;
  border-radius: 9999px;
  background-color: #d1d5db; /* gray */
  transition: all 0.3s ease;
}

.dot.active {
  width: 20px;
  background-color: #11d452; /* your brand green */
}
/* Hide WooCommerce default review title */
#review_form_wrapper h3,
#reply-title {
    display: none !important;
}
/* Clean star rating UI */
.comment-form-rating label {
    display: none !important;
}

.comment-form-rating .stars a {
    font-size: 22px;
    color: #d1d5db;
}

.comment-form-rating .stars a:hover,
.comment-form-rating .stars a.active {
    color: #11d452 !important;
}

/* Hide numeric fallback text */
.comment-form-rating select {
    display: none !important;
}
/* Review Submit Button */
#review_form_wrapper input[type="submit"],
#review_form_wrapper button[type="submit"] {
    background: #11d452 !important;
    color: #fff !important;
    border: none !important;
    border-radius: 14px !important;
    padding: 14px !important;
    font-weight: 700 !important;
    width: 100% !important;
    margin-top: 15px !important;
}

#review_form_wrapper input[type="submit"]:hover {
    background: #0eb545 !important;
}
/* Review Submit Button */
#review_form_wrapper input[type="submit"],
#review_form_wrapper button[type="submit"] {
    background: #11d452 !important;
    color: #fff !important;
    border: none !important;
    border-radius: 14px !important;
    padding: 14px !important;
    font-weight: 700 !important;
    width: 100% !important;
    margin-top: 15px !important;
}

#review_form_wrapper input[type="submit"]:hover {
    background: #0eb545 !important;
}
/* Review Form Fields */
#review_form_wrapper input,
#review_form_wrapper textarea {
    border-radius: 14px !important;
    border: 1px solid #e5e7eb !important;
    padding: 12px !important;
    background: #f9fafb !important;
}

#review_form_wrapper textarea {
    min-height: 120px;
}
/* Proceed to Checkout Button - Block Cart */
.wp-block-woocommerce-proceed-to-checkout-block .wc-block-cart__submit-button,
.wc-block-cart__submit-button {
    background-color: #11d452 !important;
    color: #ffffff !important;
    border-radius: 12px !important;
    font-weight: 600 !important;
    padding: 14px 20px !important;
}

/* Hover */
.wc-block-cart__submit-button:hover {
    background-color: #0fb94a !important;
}
.wc-block-cart__submit-button {
    box-shadow: 0 8px 20px rgba(17, 212, 82, 0.3);
    transition: all 0.2s ease;
}

.wc-block-cart__submit-button:active {
    transform: scale(0.98);
}
/* Checkout form container */
.wp-block-woocommerce-checkout {
    max-width: 720px;
    margin: 0 auto;
}

/* Section cards */
.wc-block-components-checkout-step {
    background: #ffffff;
    padding: 24px;
    border-radius: 16px;
    box-shadow: 0 4px 20px rgba(0,0,0,0.04);
    margin-bottom: 20px;
}

/* Input fields */
.wc-block-components-text-input input,
.wc-block-components-select select {
    border-radius: 12px !important;
    border: 1px solid #e5e7eb !important;
    padding: 14px !important;
    transition: all 0.2s ease;
}

/* Focus effect */
.wc-block-components-text-input input:focus,
.wc-block-components-select select:focus {
    border-color: #11d452 !important;
    box-shadow: 0 0 0 3px rgba(17,212,82,0.15) !important;
}
/* Place Order button */
.wc-block-components-button,
.wc-block-components-checkout-place-order-button {
    background-color: #11d452 !important;
    color: #ffffff !important;
    border-radius: 14px !important;
    font-weight: 600 !important;
    height: 52px !important;
    font-size: 16px !important;
    box-shadow: 0 8px 20px rgba(17,212,82,0.3);
    transition: all 0.2s ease;
}

/* Hover */
.wc-block-components-button:hover {
    background-color: #0fb94a !important;
}

/* Click effect */
.wc-block-components-button:active {
    transform: scale(0.98);
}
@media (min-width: 768px) {
    .wc-block-checkout__sidebar {
        position: sticky;
        top: 100px;
    }
}
/* Place Order button */
.wc-block-components-button,
.wc-block-components-checkout-place-order-button {
    background-color: #11d452 !important;
    color: #ffffff !important;
    border-radius: 14px !important;
    font-weight: 600 !important;
    height: 52px !important;
    font-size: 16px !important;
    box-shadow: 0 8px 20px rgba(17,212,82,0.3);
    transition: all 0.2s ease;
}

/* Hover */
.wc-block-components-button:hover {
    background-color: #0fb94a !important;
}

/* Click effect */
.wc-block-components-button:active {
    transform: scale(0.98);
}
/* Fix missing login button */
.woocommerce form.login button,
.woocommerce-MyAccount-content button,
.woocommerce button.button {
    display: inline-block !important;
    background-color: #11d452 !important;
    color: #ffffff !important;
    padding: 12px 20px !important;
    border-radius: 12px !important;
    font-weight: 600 !important;
    border: none !important;
    box-shadow: 0 6px 18px rgba(17,212,82,0.25);
}

/* Hover */
.woocommerce button.button:hover {
    background-color: #0fb94a !important;
}
/* My Account container */
.woocommerce-account .woocommerce {
    max-width: 720px;
    margin: 0 auto;
    padding: 20px;
}

/* Login form card */
.woocommerce form.login {
    background: #ffffff;
    padding: 30px;
    border-radius: 16px;
    box-shadow: 0 6px 25px rgba(0,0,0,0.05);
}

/* Input fields */
.woocommerce form .input-text {
    border-radius: 12px !important;
    padding: 14px !important;
    border: 1px solid #e5e7eb !important;
}

/* Focus state */
.woocommerce form .input-text:focus {
    border-color: #11d452 !important;
    box-shadow: 0 0 0 3px rgba(17,212,82,0.15) !important;
}
/* Fix password field eye icon visibility */
.woocommerce form .password-input {
    position: relative;
}

.woocommerce form .password-input input {
    padding-right: 45px !important;
}
/* Fix eye toggle button */
.woocommerce form .show-password-input {
    right: 14px !important;
    top: 50% !important;
    transform: translateY(-50%);
    color: #000000 !important;
}

/* Hover color */
.woocommerce form .show-password-input:hover {
    color: #fff !important;
}
.woocommerce form.login {
    overflow: visible !important;
}
.woocommerce form .show-password-input {
    background: #fff;
    border-radius: 999px;
    padding: 4px;
}
/* Page background */
.woocommerce-account {
    background: #f6f8f6;
}

/* Main container */
.woocommerce-account .woocommerce {
    max-width: 720px;
    margin: 0 auto;
    padding: 20px;
}
/* Profile card */
.account-profile-card,
    background: #ffffff;
    border-radius: 18px;
    padding: 22px;
    box-shadow: 0 8px 30px rgba(0,0,0,0.04);
    border: 1px solid #eef2ef;
}

/* Avatar circle */
.account-profile-card .avatar,
.woocommerce-account .avatar {
    background: #11d452;
    color: #fff;
    font-weight: 600;
    box-shadow: 0 4px 12px rgba(17,212,82,0.25);
}
/* Small action pills */
.account-shortcuts a,
.woocommerce-account .button {
    border-radius: 999px !important;
    padding: 10px 18px !important;
    font-weight: 500;
    border: 1px solid #e5e7eb !important;
    background: #ffffff !important;
    transition: all 0.2s ease;
}

/* Hover effect */
.account-shortcuts a:hover,
.woocommerce-account .button:hover {
    background: #11d452 !important;
    color: #ffffff !important;
    border-color: #11d452 !important;
}
/* Order card */
.woocommerce-account table.shop_table,
.woocommerce-account .woocommerce-MyAccount-content .order-card {
    background: #ffffff;
    border-radius: 16px;
    padding: 18px;
    border: 1px solid #eef2ef;
    box-shadow: 0 6px 20px rgba(0,0,0,0.04);
}
/* Menu list container */
.woocommerce-MyAccount-navigation {
    background: #ffffff;
    border-radius: 16px;
    padding: 10px 0;
    border: 1px solid #eef2ef;
}

/* Menu items */
.woocommerce-MyAccount-navigation ul li a {
    padding: 14px 20px;
    display: block;
    transition: all 0.2s ease;
}

/* Hover */
.woocommerce-MyAccount-navigation ul li a:hover {
    background: #f0fdf4;
    color: #11d452;
}
/* Logout button */
.woocommerce-account .woocommerce-MyAccount-content .logout,
.woocommerce-account a.logout {
    border-radius: 14px !important;
    border: 1px solid #ef4444 !important;
    color: #ef4444 !important;
    padding: 14px !important;
    text-align: center;
    display: block;
    transition: all 0.2s ease;
}

/* Hover */
.woocommerce-account a.logout:hover {
    background: #ef4444 !important;
    color: #ffffff !important;
}
/* STEP CONTAINER */
.tracking-step,
.order-tracking-step,
.order-status-step {
    position: relative;
}

/* Circle base */
.tracking-step .circle,
.order-tracking-step .step-icon,
.order-status-step .step-icon {
    width: 22px;
    height: 22px;
    border-radius: 50%;
    background: #e5e7eb;
    position: relative;
    z-index: 2;
}

/* Completed circle */
.tracking-step.completed .circle,
.order-tracking-step.completed .step-icon,
.order-status-step.completed .step-icon {
    background: #11d452 !important;
}

/* Visible Tick */
.tracking-step.completed .circle::after,
.order-tracking-step.completed .step-icon::after,
.order-status-step.completed .step-icon::after {
    content: "✓";
    color: #11d452;
    font-size: 14px;
    font-weight: 700;
    position: absolute;
    top: 50%;
    left: 50%;
    transform: translate(-50%, -55%);
}
/* Step wrapper must be relative */
.tracking-wrapper,
.order-tracking-wrapper {
    position: relative;
}

/* Grey line base */
.tracking-wrapper::before,
.order-tracking-wrapper::before {
    content: "";
    position: absolute;
    left: 10px;
    top: 20px;
    bottom: 20px;
    width: 3px;
    background: #e5e7eb;
    z-index: 0;
}

/* Green animated progress */
.tracking-wrapper.progress-complete::after,
.order-tracking-wrapper.progress-complete::after {
    content: "";
    position: absolute;
    left: 10px;
    top: 20px;
    width: 3px;
    background: #11d452;
    z-index: 1;
    animation: growLine 0.8s ease forwards;
}

/* Animation */
@keyframes growLine {
    from { height: 0; }
    to { height: 100%; }
}
/* Remove table style */
.woocommerce-orders-table {
    border: none;
}

.woocommerce-orders-table thead {
    display: none;
}

.woocommerce-orders-table tbody tr {
    display: block;
    background: #ffffff;
    border-radius: 16px;
    padding: 16px;
    margin-bottom: 16px;
    box-shadow: 0 6px 18px rgba(0,0,0,0.05);
    border: 1px solid #f1f1f1;
}

/* Make cells vertical */
.woocommerce-orders-table td {
    display: flex;
    justify-content: space-between;
    padding: 6px 0;
    border: none;
}

/* Order number bold */
.woocommerce-orders-table__cell-order-number a {
    font-weight: 700;
    color: #111827;
    font-size: 16px;
}

/* Status badge */
.woocommerce-orders-table__cell-order-status {
    font-weight: 600;
}

.woocommerce-orders-table__cell-order-status .woocommerce-Order-status {
    background: #11d45220;
    color: #11d452;
    padding: 4px 10px;
    border-radius: 999px;
    font-size: 12px;
}

/* Total highlight */
.woocommerce-orders-table__cell-order-total {
    font-weight: 700;
}

/* View button premium */
.woocommerce-button.button.view {
    background: #11d452;
    color: #11d452;
    border-radius: 999px;
    padding: 6px 16px;
    font-weight: 600;
    border: none;
    transition: 0.3s ease;
}

.woocommerce-button.button.view:hover {
    background: #0fbe49;
}
.woocommerce-button.button.view {
    background: #eafcf1;
    color: #11d452 !important;
    border: 1px solid #11d452;
    padding: 6px 16px;
    border-radius: 999px;
    font-weight: 600;
    font-size: 14px;
    transition: all 0.3s ease;
}

.woocommerce-button.button.view:hover {
    background: #11d452;
    color: #fff !important;
}
/* Wrap edit account in premium card */
.woocommerce-EditAccountForm {
    background: #ffffff;
    padding: 24px;
    border-radius: 20px;
    box-shadow: 0 10px 25px rgba(0,0,0,0.05);
    border: 1px solid #f1f1f1;
}

/* Space between fields */
.woocommerce-EditAccountForm p {
    margin-bottom: 18px;
}

/* Labels */
.woocommerce-EditAccountForm label {
    font-size: 13px;
    font-weight: 600;
    color: #374151;
    margin-bottom: 6px;
    display: block;
}
/* Input fields */
.woocommerce-EditAccountForm input[type="text"],
.woocommerce-EditAccountForm input[type="email"],
.woocommerce-EditAccountForm input[type="password"] {
    width: 100%;
    border: 1px solid #e5e7eb;
    border-radius: 12px;
    padding: 12px 14px;
    font-size: 14px;
    transition: all 0.25s ease;
    background: #fafafa;
}

/* Focus effect */
.woocommerce-EditAccountForm input:focus {
    border-color: #11d452;
    background: #ffffff;
    box-shadow: 0 0 0 3px rgba(17,212,82,0.15);
    outline: none;
}
/* Password section title */
.woocommerce-EditAccountForm fieldset legend {
    font-size: 14px;
    font-weight: 700;
    margin-bottom: 12px;
    color: #111827;
}
/* Save changes button */
.woocommerce-EditAccountForm button {
    background: #11d452;
    color: #ffffff;
    border-radius: 14px;
    padding: 12px 20px;
    font-weight: 600;
    border: none;
    box-shadow: 0 8px 20px rgba(17,212,82,0.25);
    transition: 0.3s ease;
}

.woocommerce-EditAccountForm button:hover {
    background: #0fbe49;
    transform: translateY(-2px);
}
/* Address Page Wrapper */
.woocommerce-Addresses {
    display: flex;
    flex-direction: column;
    gap: 20px;
}

/* Each address card */
.woocommerce-Address {
    background: #ffffff;
    padding: 20px;
    border-radius: 18px;
    box-shadow: 0 10px 25px rgba(0,0,0,0.05);
    border: 1px solid #f1f1f1;
}

/* Address Title */
.woocommerce-Address-title h3 {
    font-size: 16px;
    font-weight: 700;
    margin-bottom: 12px;
}

/* Remove ugly underline link */
.woocommerce-Address-title a {
    text-decoration: none;
}
/* Make + button circular */
.add_to_cart_button {
    background: #11d452 !important;
    color: white !important;
    width: 34px;
    height: 34px;
    border-radius: 999px !important;
    display: flex !important;
    align-items: center;
    justify-content: center;
    padding: 0 !important;
    font-size: 18px;
    font-weight: 600;
    border: none !important;
    transition: 0.25s ease;
}

.add_to_cart_button:hover {
    background: #0fbe49 !important;
    transform: scale(1.05);
}
.woocommerce-message .button.wc-forward {
    display: none !important;
}
/* Remove default button text */
.woocommerce ul.products li.product .button {
    font-size: 0 !important;
    padding: 0 !important;
    width: 36px;
    height: 36px;
    border-radius: 50% !important;
    display: flex !important;
    align-items: center;
    justify-content: center;
    background: #11d452 !important;
    color: white !important;
    border: none !important;
}

/* Add + symbol */
.woocommerce ul.products li.product .button::after {
    content: "+";
    font-size: 18px;
    font-weight: 600;
}

/* Remove "View cart" message button */
.woocommerce-message .button {
    display: none !important;
}
/* 2 column mobile grid */
.woocommerce ul.products {
    display: grid !important;
    grid-template-columns: repeat(2, 1fr);
    gap: 16px;
}

/* Card style */
.woocommerce ul.products li.product {
    background: #fff;
    border-radius: 16px;
    padding: 12px;
    box-shadow: 0 2px 10px rgba(0,0,0,0.05);
}

/* Remove ugly borders */
.woocommerce ul.products li.product a img {
    border-radius: 12px;
}
.woocommerce nav.woocommerce-pagination ul {
    display: flex;
    gap: 8px;
    justify-content: center;
}

.woocommerce nav.woocommerce-pagination ul li a,
.woocommerce nav.woocommerce-pagination ul li span {
    padding: 8px 12px;
    border-radius: 8px;
    background: white;
}
/* Fix two-column spacing in block checkout */
.wc-block-components-address-form__row {
    display: grid !important;
    grid-template-columns: 1fr 1fr !important;
    gap: 16px !important;
}

/* Make wide fields full width */
.wc-block-components-address-form__row .wc-block-components-address-form__field--wide {
    grid-column: span 2 !important;
}

/* Add bottom spacing */
.wc-block-components-address-form__field {
    margin-bottom: 16px !important;
}
/* Section card styling */
.wc-block-components-checkout-step {
    background: #ffffff;
    padding: 24px;
    border-radius: 20px;
    box-shadow: 0 4px 20px rgba(0,0,0,0.05);
}
@media (max-width: 768px) {
    .wc-block-components-address-form__row {
        grid-template-columns: 1fr 1fr !important;
    }
}
/* My Account Quick Menu - Mobile Fix */
@media (max-width: 768px) {

    .account-shortcuts {
        display: grid !important;
        grid-template-columns: 1fr 1fr;
        gap: 12px;
        margin-bottom: 20px;
    }

    .account-shortcuts a {
        text-align: center;
        padding: 12px 0;
        background: #ffffff;
        border-radius: 12px;
        font-size: 14px;
        font-weight: 500;
        box-shadow: 0 2px 10px rgba(0,0,0,0.05);
        transition: 0.2s ease;
    }

    .account-shortcuts a:active {
        transform: scale(0.97);
    }
}