/**
 * WooCommerce Global Styles
 * Cotton Creations theme – shared WooCommerce components
 *
 * 1. Layout – breadcrumbs, product container
 * 2. Notices
 * 3. Form controls – checkboxes, radios
 * 4. Quantity input
 * 5. Shipping methods
 * 6. Select2
 * 7. Coupons
 * 8. Account & auth – password, register, strength indicator
 * 9. Category hero (archive masthead)
 * 10. Misc
 * 11. Responsive (475px, 600px, 768px, 783px, 1200px, 1600px)
 */

/* ==========================================================================
   1. Layout – breadcrumbs, product container
   ========================================================================== */

.woocommerce .woocommerce-breadcrumb,
.woocommerce .breadcrumbs-link-mobile {
    padding: 15px 0;
    background: #00807F;
    font-weight: 800;
    font-size: 15px;
    color: #fff;
    line-height: 1.26;
}

.woocommerce .woocommerce-breadcrumb a,
.woocommerce .breadcrumbs-link-mobile a {
    margin-right: 6px;
    font-weight: 300;
    display: inline-block;
    margin-bottom: 5px;
    color: #fff;
    background: none;
    transition: color 0.3s ease-in-out;
}

.woocommerce .woocommerce-breadcrumb a::after {
    content: "\e902";
    display: inline-block;
    margin-left: 6px;
    font-family: 'cotton-creations';
    color: #90E0D1;
    transform: scaleY(-1);
}

.woocommerce div.product {
    max-width: 1920px;
    width: 100%;
    padding: 50px 64px 0 64px;
    margin: 0 auto;
}

.btn-group .product_type_variable.add_to_cart_button{
    width: 90%;
    text-align: center;
    background-color: #9F9CD4 !important;
    color: #130F54 !important;
    transition: all 0.3s ease-in-out;
    padding: 18px 25px !important;
}


.btn-group .product_type_variable.add_to_cart_button:hover{
    opacity: 0.8;    
}

.btn-group .product_type_variable.add_to_cart_button::after{
    position: relative;
    margin-left: 30px;
    top: 2px;
}

/* ==========================================================================
   2. Notices
   ========================================================================== */

.woocommerce-notices-wrapper,
.woocommerce-NoticeGroup {
    margin-bottom: 30px;
}

:where(.woocommerce-notices-wrapper, .woocommerce-NoticeGroup):not(:first-child) {
    margin-top: 30px;
}

:where(.woocommerce-notices-wrapper, .woocommerce-NoticeGroup):empty {
    display: none;
}

.woocommerce-error,
.woocommerce-info,
.woocommerce-message {
    display: flex;
    flex-direction: column;
    align-items: flex-start;
    gap: 11px;
    padding: 20px 15px 20px 55px;
    position: relative;
    border-radius: 20px;
    border: 1px solid transparent;
    box-shadow: 0px 10px 20px rgba(0, 0, 0, 0.1);
    font-weight: 800;
}

:where(.woocommerce-error, .woocommerce-info, .woocommerce-message):not(:last-child) {
    margin-bottom: 30px;
}

.woocommerce-error {
    border-color: #D3A1A1;
    background-color: #FFF1F1;
    color: #9C1E1C;
}

.woocommerce-error a:not(.button) {
    color: #9C1E1C;
}

.woocommerce-info {
    border-color: #62ACD5;
    background-color: rgba(98, 172, 213, 0.2);
    color: #003E5E;
}

.woocommerce-message {
    border-color: #79C3B3;
    background-color: rgba(121, 195, 179, 0.2);
    color: #005140;
}

:where(.woocommerce-error, .woocommerce-info, .woocommerce-message)::before {
    display: inline-block;
    position: absolute;
    top: 20px;
    left: 15px;
    font-family: "cotton-creations";
    font-size: 24px;
    line-height: 1.3;
    font-weight: 800;
    -webkit-font-smoothing: antialiased;
    -moz-osx-font-smoothing: grayscale;
}

.woocommerce-error:before {
    content: "\e92c";
}

.woocommerce-info:before {
    content: "\e92c";
}

.woocommerce-message:before {
    content: "\e909";
}

ul:is(.woocommerce-error, .woocommerce-info, .woocommerce-message) {
    padding-left: 70px;
    flex-direction: column;
    align-items: flex-start;
    gap: 0;
    position: relative;
}

ul:is(.woocommerce-error, .woocommerce-info, .woocommerce-message):before {
    position: absolute;
    top: 35px;
    left: 35px;
}

ul:is(.woocommerce-error, .woocommerce-info, .woocommerce-message) li {
    margin-bottom: 0;
    padding-left: 0;
}

ul:is(.woocommerce-error, .woocommerce-info, .woocommerce-message) li:before {
    display: none;
}

ul:is(.woocommerce-error, .woocommerce-info, .woocommerce-message) li a[href^="#"] {
    background: none;
}

:where(.woocommerce-error, .woocommerce-info, .woocommerce-message) .button {
    flex: 0 0 auto;
    margin-left: auto;
    margin-right: auto;
}

/* ==========================================================================
   3. Form controls – checkboxes, radios
   ========================================================================== */

.woocommerce-form__label-for-checkbox,
.woocommerce-form__label-for-radio {
    display: flex;
    align-items: center;
    gap: 15px;
    padding: 0;
    position: relative;
    font-size: 18px;
    font-weight: 300;
    line-height: 1;
    cursor: pointer;
    text-transform: none;
}

:where(.woocommerce-form__label-for-checkbox, .woocommerce-form__label-for-radio)::before,
:where(.woocommerce-form__label-for-checkbox, .woocommerce-form__label-for-radio)::after {
    display: block;
}

:where(.woocommerce-form__label-for-checkbox, .woocommerce-form__label-for-radio)::after {
    transition: transform 0.3s ease-in-out;
    transform: scale(0);
}

:where(.woocommerce-form__label-for-checkbox, .woocommerce-form__label-for-radio) input {
    display: none;
}

:where(.woocommerce-form__label-for-checkbox, .woocommerce-form__label-for-radio):has(input:checked)::after {
    transform: scale(1);
}

:where(.woocommerce-form__label-for-checkbox)::before {
    content: '';
    width: 25px;
    height: 25px;
    border-radius: 6px;
    border: 1px solid #ACDBD1;
    background-color: #F1FCFA;
    cursor: pointer;
}

:where(.woocommerce-form__label-for-checkbox)::after {
    content: "\e92d";
    width: 32px;
    height: 23px;
    position: absolute;
    top: -1px;
    left: -3px;
    font-family: 'cotton-creations' !important;
    font-size: 25px;
    line-height: 1;
    color: #DB6C4F;
}

:where(.woocommerce-form__label-for-radio)::before {
    content: '';
    width: 25px;
    height: 25px;
    border-radius: 100%;
    border: 1px solid #ACDBD1;
    background-color: #F1FCFA;
    cursor: pointer;
}

:where(.woocommerce-form__label-for-radio)::after {
    content: '';
    width: 17px;
    height: 17px;
    position: absolute;
    top: 4px;
    left: 4px;
    border-radius: 100%;
    background-color: #DB6C4F;
}

/* ==========================================================================
   4. Quantity input
   ========================================================================== */

.woocommerce .quantity {
    display: flex;
    flex-direction: row;
    justify-content: center;
    align-items: center;
    align-self: flex-start;
    padding: 10px 15px;
    gap: 10px;
    min-width: 95px;
    height: 43px;
    border-radius: 43px;
    border: 1px solid #ACDBD1;
    background-color: #F1FCFA;
}

.woocommerce .quantity .qty-button {
    border: none;
    background: none;
    font-size: 18px;
    font-weight: 800;
    color: #005140;
    transition: color 0.3s ease-in-out;
}

.woocommerce .quantity .qty-button:hover {
    color: #EE6618;
}

.woocommerce .quantity .input-text {
    display: inline-block;
    width: var(--size, 4ch);
    text-align: center;
    height: auto;
    padding: 0;
    border: none;
    border-radius: 0;
    background: none;
    color: #005140;
}

.woocommerce .quantity .input-text::-webkit-outer-spin-button,
.woocommerce .quantity .input-text::-webkit-inner-spin-button {
    -webkit-appearance: none;
    margin: 0;
}

.woocommerce .quantity .input-text[type="number"] {
    -moz-appearance: textfield;
    appearance: textfield;
}

/* ==========================================================================
   5. Shipping methods
   ========================================================================== */

.woocommerce ul#shipping_method,
.woocommerce .woocommerce-shipping-methods {
    display: flex;
    flex-wrap: wrap;
    margin-bottom: 12.5px;
    padding: 0;
    gap: 16px 24px;
    list-style: none;
}

.woocommerce ul#shipping_method li,
.woocommerce .woocommerce-shipping-methods li {
    margin: 0;
    padding: 0;
}

.woocommerce ul#shipping_method li:before,
.woocommerce .woocommerce-shipping-methods li:before {
    display: none;
}

.woocommerce ul#shipping_method input[type="radio"],
.woocommerce .woocommerce-shipping-methods input[type="radio"] {
    position: absolute;
    width: 1px;
    height: 1px;
    margin: -1px;
    padding: 0;
    overflow: hidden;
    clip: rect(0, 0, 0, 0);
    white-space: nowrap;
    border: 0;
}

.woocommerce ul#shipping_method label,
.woocommerce .woocommerce-shipping-methods label {
    position: relative;
    margin: 0;
    padding: 0 0 0 40px;
    font-size: 15px;
    font-weight: 300;
    text-align: left;
    line-height: 25px;
    color: #00807F;
    cursor: pointer;
}

.woocommerce ul#shipping_method label::before,
.woocommerce .woocommerce-shipping-methods label::before {
    position: absolute;
    left: 0;
    top: 0;
    display: inline-block;
    width: 25px;
    height: 25px;
    border: 1px solid #ACDBD1;
    border-radius: 50%;
    background-color: #F1FCFA;
    content: '';
    cursor: pointer;
}

.woocommerce ul#shipping_method label::after,
.woocommerce .woocommerce-shipping-methods label::after {
    position: absolute;
    left: 8px;
    top: 8px;
    display: inline-block;
    width: 9px;
    height: 9px;
    border-radius: 50%;
    background-color: #DB6C4F;
    content: '';
    transition: transform 0.3s ease-in-out;
    transform: scale(0);
}

.woocommerce ul#shipping_method input[type="radio"]:checked + label::after,
.woocommerce .woocommerce-shipping-methods input[type="radio"]:checked + label::after {
    transform: scale(1.5);
}

/* ==========================================================================
   6. Select2 – match Choices.js appearance (global)
   ========================================================================== */

.select2-container.select2-container--default {
    width: 100%;
    position: relative;
}

.select2-container.select2-container--default .select2-selection--single {
    width: 100%;
    height: 58px;
    padding: 0 56px 0 25px;
    border-radius: 58px;
    border: 1px solid #ACDBD1;
    background: #F1FCFA;
    display: flex;
    align-items: center;
    outline: none;
}

.select2-container.select2-container--default.select2-container--open .select2-selection--single {
    border-radius: 29px 29px 0 0;
}

.select2-container.select2-container--default .select2-selection__arrow {
    display: none;
}

.select2-container.select2-container--default .select2-selection__rendered {
    padding: 0;
    line-height: 1;
    color: #005140;
}

.select2-container.select2-container--default::after {
    content: "\e909";
    font-family: 'cotton-creations';
    position: absolute;
    right: 25px;
    top: 50%;
    transform: translateY(-50%);
    font-size: 23px;
    color: #4D47B3;
    pointer-events: none;
}

.select2-container.select2-container--default.select2-container--open::after {
    content: "\e90c";
}

/* Select2 dropdown (appended to body, so not nested under container) */
.select2-dropdown {
    border: 1px solid #ACDBD1;
    border-radius: 0 0 25px 25px;
    background-color: #F1FCFA;
}

.select2-dropdown ul li::before,
.select2-results__options li::before {
    display: none;
}

.select2-results__option {
    padding: 12px 25px;
    color: #005140;
    outline: none;
}

.select2-results__option--highlighted,
.select2-results__option[aria-selected="true"],
.select2-results__option[data-selected="true"] {
    color: #fff;
    background-color: #005140;
}

.select2-search--dropdown {
    padding: 12px 25px;
}

.select2-search--dropdown .select2-search__field {
    border-color: #ACDBD1;
    background-color: transparent;
    padding: 12px 25px;
    font-size: 18px;
    color: #005140;
}

/* ==========================================================================
   7. Coupons
   ========================================================================== */

.coupon-info {
    display: flex;
    gap: 6px;
    align-items: center;
    margin-bottom: 20px;
    padding-left: 0;
    font-size: 18px;
    color: #00807F;
}

.coupon-info i {
    font-size: 23px;
    color: #EFA073;
}

.coupon {
    position: relative;
}

.coupon .input-text {
    padding-right: 25px;
}

.coupon .button {
    flex: 1 0 auto;
    margin-top: 25px;
    width: 100%;
    min-height: 58px;
}

.coupon-error-notice {
    padding-left: 25px;
    font-weight: 800;
    font-size: 14px;
    color: #C93230;
}

/* ==========================================================================
   8. Account & auth – password, register, strength indicator
   ========================================================================== */

.woocommerce form .password-input,
.woocommerce-page form .password-input {
    display: flex;
    flex-direction: column;
    justify-content: center;
    position: relative;
}

.woocommerce form .password-input input[type="password"],
.woocommerce-page form .password-input input[type="password"] {
    padding-right: 2.5rem;
}

.woocommerce form .password-input input::-ms-reveal,
.woocommerce-page form .password-input input::-ms-reveal {
    display: none;
}

.woocommerce form .show-password-input,
.woocommerce-page form .show-password-input {
    position: absolute;
    top: 12px;
    right: 15px;
    cursor: pointer;
    border: none;
    background: transparent;
    color: #00807F;
}

.woocommerce form .show-password-input::after,
.woocommerce-page form .show-password-input::after {
    content: "\e939";
    font-family: 'cotton-creations';
}

.woocommerce form .show-password-input.display-password::after,
.woocommerce-page form .show-password-input.display-password::after {
    content: "\e938";
    color: #EE6618;
}

.woocommerce-lost-password-link {
    display: block;
    background: none;
    font-size: 14px;
    line-height: 1.3;
    color: #00807F;
    text-align: right;
    transition: color 0.3s ease-in-out;
}

.woocommerce-lost-password-link:hover {
    color: #EE6618;
}

.woocommerce-register-link {
    margin-top: 25px;
}

.woocommerce-privacy-policy-text {
    margin-bottom: 20px;
}

.woocommerce-password-strength {
    margin-top: 10px;
    padding: 12px 20px;
    border-radius: 50px;
    border: none;
    text-align: center;
    font-weight: 800;
}

.woocommerce-password-strength.strong {
    background-color: #c1e1b9;
}

.woocommerce-password-strength.short {
    background-color: #f1adad;
}

.woocommerce-password-strength.bad {
    background-color: #fbc5a9;
}

.woocommerce-password-strength.good {
    background-color: #ffe399;
}

.woocommerce-password-hint {
    display: block;
    margin: 5px 0 0;
    padding: 0 25px;
}

/* ==========================================================================
   9. Category hero (archive masthead)
   ========================================================================== */

.category-hero {
    position: relative;
    margin-top: 152px;
    padding: 20px 0 55px;
    background: linear-gradient(90deg, #00807F 0%, #79C3B3 50%, #ACDBD1 100%);
    overflow: hidden;
}

.admin-bar .category-hero {
    margin-top: 106px;
}

.category-hero__bg-pattern {
    position: absolute;
    top: 0;
    left: 0;
    width: 40%;
    max-width: 400px;
    height: 100%;
    background: radial-gradient(ellipse 80% 70% at 0% 50%, rgba(0, 64, 63, 0.35) 0%, transparent 70%);
    pointer-events: none;
    z-index: 1;
}

.category-hero__bg-shape--right {
    position: absolute;
    right: -5%;
    top: 50%;
    transform: translateY(-50%);
    width: 55%;
    max-width: 600px;
    height: 85%;
    background: rgba(28, 72, 67, 0.6);
    border-radius: 50%;
    filter: blur(60px);
    pointer-events: none;
    z-index: 1;
}

.category-hero__bg {
    position: absolute;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    object-fit: cover;
    z-index: 1;
}

.category-hero__wrap {
    display: flex;
    flex-wrap: wrap;
    gap: 30px;
    align-items: flex-start;
    position: relative;
    z-index: 2;
}

.category-hero__content {
    flex: 1;
    min-width: 280px;
    color: #fff;
}

.category-hero__content .breadcrumbs {
    padding: 0;
}

.category-hero__content .breadcrumbs ul {
    justify-content: flex-start;
}

.category-hero__content h1 {
    margin: 0 0 15px;
    font-size: 34px;
    color: #fff;
    line-height: 1.2em;
}

.category-hero__content p {
    margin: 0 0 25px;
    font-size: 16px;
    line-height: 1.6em;
    color: rgba(255, 255, 255, 0.95);
}

.category-hero__content p a:not(.btn) {
    color: #fff;
}

.category-hero__content ul li a{
    color: #fff;
}

.category-hero__content .btn-group {
    display: flex;
    flex-wrap: wrap;
    gap: 15px;
    margin: 0;
}

.category-hero__content .btn-tertiary {
    color: #fff;
    background: none;
}

.category-hero__content .btn-tertiary::after {
    color: #fff;
}

.category-hero__breadcrumbs ul li,
.category-hero__breadcrumbs ul li a {
    color: rgba(255, 255, 255, 0.85);
}

.category-hero__breadcrumbs ul li::before {
    color: rgba(255, 255, 255, 0.7);
}

.category-hero__title {
    margin: 0 0 15px;
    font-size: 34px;
    font-weight: 800;
    color: #fff;
    line-height: 1.2em;
}

.category-hero__desc {
    margin: 0 0 25px;
    font-size: 16px;
    line-height: 1.6em;
    color: rgba(255, 255, 255, 0.9);
}

.category-hero__highlight {
    font-weight: 700;
    text-decoration: none;
    box-shadow: 0 2px 0 #F2A900;
    color: #fff;
}

.category-hero__actions {
    display: flex;
    flex-wrap: wrap;
    gap: 14px;
    align-items: center;
    margin: 0;
}

.category-hero__btn {
    display: inline-flex;
    align-items: center;
    gap: 10px;
    padding: 14px 22px;
    border-radius: 12px;
    font-size: 16px;
    font-weight: 800;
    text-decoration: none;
    border: none;
    transition: opacity 0.2s, background 0.2s, color 0.2s;
}

.category-hero__btn::after {
    display: none;
}

.category-hero__btn--primary {
    background: #72C2B8;
    color: #215951;
}

.category-hero__btn--primary:hover {
    background: #8dd1c8;
    color: #1a4540;
}

.category-hero__btn--secondary {
    padding-left: 0;
    background: transparent;
    color: #fff;
}

.category-hero__btn--secondary:hover {
    color: rgba(255, 255, 255, 0.7);
}

.category-hero__image {
    width: 100%;
    max-width: 272px;
    margin: 0 auto;
    position: relative;
    z-index: 1;
    display: none;
}

.category-hero__image img {
    width: 100%;
    height: auto;
    display: block;
    border-radius: 25px;
    box-shadow: none;
}

.category-hero__curve {
    position: absolute;
    left: 0;
    bottom: -1px;
    width: 100%;
    display: block;
    z-index: 2;
    pointer-events: none;
}

.add_to_cart_button::after{
    content: '\e908';
    font-family: 'cotton-creations';
    position: absolute;
    top: 50%;
    right: 18px;
    transform: translate(0, -50%);
    line-height: 1em;
    font-weight: 400;
    transition: all ease-in-out 0.2s;
}


.product_type_variable::after{
    content: '\e90f';
    font-family: 'cotton-creations';
}

/* ==========================================================================
   10. Misc
   ========================================================================== */

.wholesale-bottom-section__actions {
    max-width: unset;
    text-align: left;
}

.section__outro {
    margin-top: 30px;
}

/* ==========================================================================
   11. Responsive
   ========================================================================== */

/* ----- 475px (Coupon form inline) ----- */
@media (min-width: 475px) {
    .coupon-info {
        padding-left: 25px;
    }

    .coupon .input-text {
        padding-right: 235px;
    }

    .coupon .button {
        margin-top: 0;
        width: auto;
        position: absolute;
        top: 0;
        right: 0;
    }
}

/* ----- 600px (Notices row layout) ----- */
@media (min-width: 600px) {
    .woocommerce-error,
    .woocommerce-info,
    .woocommerce-message {
        flex-direction: row;
        padding: 20px 25px;
        border-radius: 25px;
    }

    :where(.woocommerce-error, .woocommerce-info, .woocommerce-message):has(.button) {
        align-items: center;
    }

    :where(.woocommerce-error, .woocommerce-info, .woocommerce-message)::before {
        position: static;
    }
}

/* ----- 768px (Category hero) ----- */
@media (min-width: 768px) {
    .category-hero {
        margin-top: 182px;
        padding: 35px 0 75px;
    }

    .category-hero__content h1 {
        font-size: 40px;
    }

    .category-hero__content p,
    .category-hero__desc {
        font-size: 18px;
    }

    .category-hero__image {
        width: 45%;
        max-width: 272px;
        margin: 0;
        display: block;
    }

    :where(.woocommerce-error, .woocommerce-info, .woocommerce-message) .button {        
        margin-right: unset;
    }
}

/* ----- 783px (Admin bar offset) ----- */
@media (min-width: 783px) {
    .admin-bar .category-hero {
        margin-top: 182px;
    }
}

/* ----- 1200px (Notices padding, category hero large) ----- */
@media (min-width: 1200px) {
    .woocommerce-error,
    .woocommerce-info,
    .woocommerce-message {
        padding: 32px 35px;
    }

    .woocommerce .woocommerce-breadcrumb a,
    .woocommerce .breadcrumbs-link-mobile a {        
        margin-bottom: 0;       
    }

    .category-hero {
        margin-top: 182px;
        padding: 55px 0 120px;
    }

    .admin-bar .category-hero {
        margin-top: 182px;
    }

    .category-hero__content {
        max-width: 1032px;
    }

    .category-hero__content h1,
    .category-hero__title {
        font-size: 50px;
        margin-bottom: 20px;
    }

    .category-hero__content p,
    .category-hero__desc {
        font-size: 18px;
        margin-bottom: 30px;
    }

    .category-hero__wrap {
        gap: 60px;
        max-width: 1488px;
        margin: 0 auto;
    }
}

/* ----- 1600px (Category hero XL) ----- */
@media (min-width: 1600px) {
    .category-hero {
        margin-top: 190px;
        padding: 35px 0 135px;
    }

    .admin-bar .category-hero {
        margin-top: 190px;
    }
}
