form{
    width: 100%;
}
.form-group{
    margin-top: 8px;
}

h4 {
    font-size: 16px;
    font-weight: 600;
    margin: 0;
}

textarea {
    width: 100%;
    height: 80px;
    padding: 10px;
    font-size: 1rem;
    border: 1px solid #ddd;
    border-radius: 5px;
    resize: vertical;
    margin-bottom: 12px;
    box-sizing: border-box;
}

form input,
form textarea{
    width: 100%;
    border-radius: 6px;
    border: none;
    padding: 8px 12px;
    display: block;
    border: 1px solid #cecece;
    font-size: 14px;

    box-sizing: border-box;
}

textarea:focus,
input:focus {
    border-color: #007bff;
    box-shadow: 0 0 5px rgba(0, 123, 255, 0.5);
    outline: none;
}

.helptext{
    font-size: 12px;
}
.signup--form ul,
.login--form ul{
    font-size: 12px;
    color: #444;
}
.errorlist li{
    color: #e60000;
    font-size: 12px;
}
.signup--form a,
.login--form a{
    font-size: 14px;
    color: #ac6a00;
    display: flex;
    justify-self: center;

}
.signup--form label,
.login--form label{
    font-size: 14px;
    color: #0e0e0e;
}

.login--form h6,
.signup--form h6{
    text-align: center;
    margin-top: 32px;
}

.login-form-header,
.signup-form-header{
    display: flex;
    gap: 1rem;
    align-items: center;
    justify-content: center;
    margin-bottom: 2rem;
}

.login-form-heading,
.signup-form-heading{
    font-family: Playfair Display;
    color: #888;
    font-size: 1.5rem;
    font-weight: 700;
}
@media (max-width:780px) {
    .login-form-heading,
    .signup-form-heading{
        font-size: 1.5rem;
        padding-top: 10px;
    }
    .login-form-header,
    .signup-form-header{
        margin-bottom: 1rem;
    }
}

.login-head{
    width: 100%;
    display: flex;
    justify-self: flex-start;
}

.authentication-divider {
    position: relative;
    display: flex;
    align-items: center;
    justify-content: center;
    margin-block: 20px;

}

.authentication-divider::after {
    position: absolute;
    left: 0;
    right: 0;
    height: 1px;
    content: "";
    background-color: #9d9d9d;

}
.authentication-divider span{
    padding-inline: 12px;
    background-color: white;
    z-index: 999;
}

.form-error {
    color: #d9534f;
    font-size: 12px;
    background-color: #ffe3e3;
    padding: 8px;
    border-radius: 4px;
}

.login-form {
    margin-top: 2rem;
}
.form-bottom-section{
    display: flex;
    flex-direction: column;
    align-items: center;
    justify-content: center;
}
.signup-form-bottom-section,
.signup-form-bottom-section a{
    display: flex;
    align-items: center;
    justify-content: flex-start;
    text-align: left;
    margin: 0;
    padding: 6px;
}

.signup-form-bottom-section a,
.signup-form-bottom-section a:active,
.signup-form-bottom-section a:focus,
.signup-form-bottom-section a:hover,
.signup-form-bottom-section a:visited{
    text-decoration: none;
    color: #ac6a00;
}

.login-form-bottom-section {
    display: flex;
    align-items: center;
    justify-content: space-between;
    gap: 6px;
    padding: 12px 0px;
}
.login-form-bottom-section p {
    width: 65%;
    display: flex;
    align-items: center;
    justify-content: flex-start;
    gap: 12px;
    justify-self: flex-start;
}
.login-btn,
.signup-btn {
    width: 100%;
    margin: 12px 0px;
    background-color: #000000;
    color: #ffffff;
    border: none;
    padding: 8px 32px;
    border-radius: 6px;
    font-size: 14px;
}

.login-btn:hover,
.signup-btn:hover{
    background-color: #242424;
    color: #ffffff;
}

.login-btn-nav{
    width: 100%;

    background-color: #000000;
    color: #ffffff;
    border: none;
    padding: 8px 18px;
    border-radius: 6px;
    display: none;
}

/* ---- Nav login / logout buttons (modern, on-brand) ---- */
#login-btn-nav-1 {
    margin: 0;
    display: inline-flex;
    align-items: center;
    gap: 6px;
    background: linear-gradient(120deg, #ac6a00 0%, #e0b873 100%);
    color: #ffffff;
    border: none;
    padding: 8px 20px;
    border-radius: 999px;
    font-size: 14px;
    font-weight: 400;
    letter-spacing: .3px;
    line-height: 1;
    text-decoration: none;
    box-shadow: 0 8px 18px -8px rgba(172, 106, 0, .6);
    transition: transform .2s ease, box-shadow .2s ease, filter .2s ease;
}
#login-btn-nav-1:hover {
    color: #ffffff;
    transform: translateY(-1px);
    box-shadow: 0 12px 22px -8px rgba(172, 106, 0, .7);
    filter: brightness(1.05);
}
#login-btn-nav-1 .material-symbols-outlined { font-size: 18px; line-height: 1; }
/* Suppress the nav's animated underline on the pill button. */
.nav-links a#login-btn-nav-1::after { display: none; }

.logout-btn {
    margin: 0;
    display: inline-flex;
    align-items: center;
    gap: 6px;
    background: transparent;
    border: 1.5px solid rgba(45, 41, 38, .2);
    color: #2d2926;
    padding: 7px 18px;
    border-radius: 999px;
    font-size: 14px;
    font-weight: 600;
    letter-spacing: .3px;
    line-height: 1;
    cursor: pointer;
    transition: background .2s ease, border-color .2s ease, color .2s ease;
}
.logout-btn:hover {
    background: #2d2926;
    border-color: #2d2926;
    color: #ffffff;
}
.logout-btn .material-symbols-outlined { font-size: 18px; line-height: 1; }

.address-btn{
    background-color: #ed143d;
    color: #ffffff;
    border: none;
    padding: 4px 12px;
    font-size: 12px;
}
.form-save{
    margin-top: 32px;
    display: flex;
    justify-content: space-between;
    align-items: center;
    color: #ffffff;

}
.form-save .btn{
    width: 50%;
}

.form-save a{
    color: #ff0000;
}

.contact-form{
    display: flex;
    flex-direction: column;
    align-items: center;
    justify-content: center;
    margin-top: 32px;
}
.google-login-btn{
    margin-top: 12px;
}

.google-login-btn a {
    display: flex;
    width: 100%;
    align-items: center;
    justify-content: center;
    gap: 6px;
    border: 1px solid #edb76f;
    border-radius: 6px;
    background-color: #fff;
    padding: 10px;
    margin-top: 12px;
}

.google-login-btn a:hover {
    background-color: #fcdbaf;
    color: #814900;
}

.google-login-btn:hover{

    transition: 0.3s;
    transform: translateY(-2px);
}

.google-login-btn img{
    width: 18px;
    height: 18px;
    margin-right: 6px;
}

.login-form-btn-reset-div{
    display: flex;
    justify-content: space-between;
    align-items: center;

    margin: 16px 0px;
}
.login-form-btn-reset-div .login-btn{

    margin: 0;
    background-color: #000000;
    color: #ffffff;
    border: none;
    padding: 10px;
    border-radius: 6px;
}
.login-form-btn-reset-div a{
    margin: 0;
    padding: 0;
}
#checkout-form{
    margin: 12px 0px;
}

#checkout-form input,
#checkout-form textarea{

    color: #3a3a3a;
    margin: 6px 0px;
    padding: 0;
    border-radius: 6px;

    border: 1px solid #e4e4e4;
    padding: 4px 8px;
}
#checkout-form input:focus,
#checkout-form textarea:focus {

    border-color: #007bff;
    box-shadow: 0 0 5px rgba(0, 123, 255, 0.5);
    outline: none;
}
#checkout-form p{
    font-size: 13px;
    color: #2d2d2d;
}

.form-check-input[type=radio] {
    border-radius: 999px;
    width: 16px;
}

.payment-method-selection {
    display: flex;
    align-items: center;
    gap: 42px;
    padding: 12px;
}

.form-check {

    display: flex;
    align-items: center;
    gap: 12px;
}
.form-check-input{
    border: 1px solid #7f6900;
}
#payu-logo{
        width: 80px;
    }
    #razorpay-logo{
        width: 160px;
    }

.form-btn-div {
    margin-top: 24px;
    display: flex;
    gap: 32px;
    justify-content: space-between;
}

.return-cancel-btn{
    background: none;
    border: none;
    align-self: center;
    text-align: center;
    color: #ff6e00;
}

.return-submit-btn{
    width: 50%;
}

#return-form label {
    font-size: 14px;
    color: #575757;
}

.filter-form.open ~ .product-search {
    display: flex;
    flex-direction: column;
    }

.input-group {
    position: relative;
    margin: 20px 0;
}

.form-input {
    width: 100%;
    padding: 12px;

    border: 1px solid #ccc;
    border-radius: 6px;
    outline: none;
    background: transparent;
}

.input-group label {
    position: absolute;
    top: 50%;
    left: 10px;
    transform: translateY(-50%);
    font-size: 16px;
    color: #777;
    background: #fff;
    padding: 0 5px;
    pointer-events: none;
    transition: 0.25s ease;
}

.form-input:focus + label,
.form-input:not(:placeholder-shown) + label {
    top: -8px;
    font-size: 12px;
    color: #000;
}

.form-input:focus {
    border-color: #000;
}

.show-password-div {
  display: flex;
  align-items: center;
  gap: 12px;
  margin: 14px 0 18px;
  font-size: 14px;
  color: #444;
  user-select: none;
}

.show-password-div input {
  display: none;
}

.toggle-switch {
  position: relative;
  width: 44px;
  height: 24px;
  background: #dcdcdc;
  border-radius: 50px;
  cursor: pointer;
  transition: all 0.3s ease;
}

.toggle-switch::before {
  content: "";
  position: absolute;
  width: 20px;
  height: 20px;
  top: 2px;
  left: 2px;
  background: #ffffff;
  border-radius: 50%;
  box-shadow: 0 2px 6px rgba(0,0,0,0.2);
  transition: all 0.3s ease;
}

.show-password-div input:checked + .toggle-switch {
  background: linear-gradient(135deg, #febb4f, #fe006a);
}

.show-password-div input:checked + .toggle-switch::before {
  transform: translateX(20px);
}

.toggle-text {
  font-weight: 500;
  letter-spacing: 0.2px;
  transition: color 0.3s ease;
}

.show-password-div input:checked ~ .toggle-text {
  color: #000000;
}

.toggle-switch:hover {
  transform: scale(1.05);
}

.toggle-switch:active::before {
  width: 24px;
}

@media (max-width: 768px) {

    .login-form-bottom-section {
        display: flex;
        flex-direction: column;
        align-items: center;
        justify-content: flex-end;
        font-size: 14px;
    }
    .login-form-bottom-section p {
        width: 100%;
        display: flex;
        align-items: center;
        justify-content: center;
        gap: 2px;

    }

    form{
        width: 100%;
    }

    .search-btn{
        padding: 0 12px;
    }

    #product-search {
        width: 100%;
        margin-bottom: 24px;

    }

    .product-search {
        display: flex;
        align-items: center;
    }

    .container-div input,
    .container-div textarea{
        width: 100%;
    }

    .signup--form a,
    .login--form a{
        font-size: 14px;

        color: #ac6a00;
        display: flex;
        justify-self: center;

    }
    .password-reset-form-container{
        margin: 32px auto;
    }
    .signup-form-bottom-section,
    .signup-form-bottom-section a{
        display: flex;
        align-items: center;
        justify-content: flex-end;
        margin: 0;
        padding: 6px;
        font-size: 14px;
    }
    .login-form-bottom-section {
        display: flex;
        align-items: center;
        justify-content: flex-end;
        font-size: 14px;

    }
    .login-form-bottom-section a{
        font-size: 14px;
        color: #ac6a00;
        display: flex;
        justify-self: center;
        margin: 0;
        padding: 0;
    }
    .signup-form-bottom-section a,
    .signup-form-bottom-section a:active,
    .signup-form-bottom-section a:focus,
    .signup-form-bottom-section a:hover,
    .signup-form-bottom-section a:visited{
        text-decoration: none;
        color: #ac6a00;
}

}

@media (max-width: 480px) {

    .password-reset-form-container{
        margin: 120px auto;
    }
    .payment-method-selection {
    margin-top: 12px;
    gap: 32px;
    }
    #payu-logo{
        width: 48px;
    }
    #razorpay-logo{
        width: 100px;
    }
}

.signup--form form {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 14px 16px;
}

.signup--form form input {
  grid-column: span 2;
}

.signup--form form input[name="first_name"],
.signup--form form input[name="last_name"] {
  grid-column: span 1;
}

.signup--form form input[name="phone_number"],
.signup--form form input[type="email"] {
  grid-column: span 1;
}

.signup--form form input[name="username"] {
  grid-column: span 2;
}

.signup--form form input[name="password1"],
.signup--form form input[name="password2"] {
  grid-column: span 2;
}

.show-password-div {
  grid-column: span 2;
}

.signup-btn {
  grid-column: span 2;
  margin-top: 10px;
}

.signup--form input {
  width: 100%;
  padding: 12px 14px;
  border: 1px solid #ddd;
  border-radius: 8px;

  transition: all 0.25s ease;
}

.signup--form input:focus {
  border-color: #007bff;
  box-shadow: 0 0 0 2px rgba(0,123,255,0.1);
  outline: none;
}

.signup--form form input[name="phone_number"],
.signup--form form input[type="email"] {
  background: #fafafa;
}

@media (max-width: 600px) {
  .signup--form form {
    grid-template-columns: 1fr;
  }

  .signup--form form input,
  .signup-btn,
  .show-password-div {
    grid-column: span 1 !important;
  }
  .items-center {
        align-items: center;
        display: flex;
        flex-wrap: wrap;
        text-overflow: ellipsis;
        width: 70%;
    }
}
