/*
 Theme Name: Anzel Creations Child
 Template: Divi
 Author: Zelna
 Description: Custom child theme for Anzel Creations.
 Version: 1.0
*/

/* (You can add custom CSS below later) */
/*************************************************************
 ANZEL CREATIONS — CHILD THEME CSS (FINAL BUILD)
 Clean • Stable • No Variables • Compatible with WP/Divi/Woo
**************************************************************/

/* ---------------------------------------------
   GLOBAL SETTINGS
---------------------------------------------- */
/*************************************************************
 ANZEL CREATIONS — CHILD THEME CSS (FINAL BUILD)
 Clean • Stable • No Variables • Compatible with WP/Divi/Woo
**************************************************************/

/* ---------------------------------------------
   GLOBAL SETTINGS
---------------------------------------------- */

html, body {
    background: #D3D1CE !important;
    color: #0D1B1E !important;
}

#page-container,
#et-main-area,
#main-content,
.container,
.site-main,
.entry-content,
.et_pb_section,
.et_pb_row,
.woocommerce .site-main,
.woocommerce-page .site-main {
    background: transparent !important;
}

/* Links */
a { color: #5A737A; }
a:hover { color: #495D63; }

/* ---------------------------------------------
   HEADER + MENU
---------------------------------------------- */

#main-header,
#top-header,
.et-l--header {
    background: #CCD3CA !important;
}

#top-menu li a,
.et_pb_menu .et-menu li a,
.et_mobile_menu li a,
#et-top-navigation .nav li a {
    color: #000 !important;
}

#top-menu li a:hover,
.et_pb_menu .et-menu li a:hover,
.et_mobile_menu li a:hover {
    color: #000 !important;
    text-decoration: underline;
    text-underline-offset: 4px;
}

.mobile_menu_bar:before {
    color: #000 !important;
}

/* ---------------------------------------------
   FORM FIELDS
---------------------------------------------- */

input[type="text"],
input[type="email"],
textarea,
select {
    background-color: #CCD3CA !important;
    color: #000 !important;
    border-radius: 6px !important;
}

/* Focus */
input[type="text"]:focus,
input[type="email"]:focus,
textarea:focus {
    background-color: #CCD3CA !important;
    border-color: #b38b59 !important;
    box-shadow: none !important;
    outline: none !important;
}

/* Autofill override */
input:-webkit-autofill {
    -webkit-box-shadow: 0 0 0 1000px #CCD3CA inset !important;
    -webkit-text-fill-color: #000 !important;
}

/* ---------------------------------------------
   PRODUCT GRID (Shop + Archive)
---------------------------------------------- */

.woocommerce ul.products li.product,
.woocommerce-page ul.products li.product {
    background: #FFFFFF;
    border-radius: 12px;
    padding: 14px;
    box-shadow: 0 3px 10px rgba(0,0,0,.18);
    margin: 12px !important;
    box-sizing: border-box;
}

.woocommerce ul.products li.product .woocommerce-loop-product__title {
    color: #222 !important;
    font-weight: 600;
    line-height: 1.25;
    min-height: 2.4em;
}

/* ---------------------------------------------
   PRODUCT PAGE — MAIN IMAGE + THUMBNAILS
---------------------------------------------- */

/* Main image wrapper */
.woocommerce div.product div.images {
    background: #FFFFFF;
    padding: 18px;
    border-radius: 12px;
    box-shadow: 0 3px 14px rgba(0,0,0,.22);
}

/* Thumbnails */
.woocommerce div.product div.images .thumbnails img {
    background: #FFFFFF;
    padding: 6px;
    border-radius: 12px;
    box-shadow: 0 2px 8px rgba(0,0,0,.15);
}

/* Variation dropdown arrows removed */
.woocommerce div.product form.cart .variations td.value > span:after,
.woocommerce div.product form.cart .variations select {
    appearance: none !important;
    background-image: none !important;
}

/* ---------------------------------------------
   RELATED PRODUCTS — CLEAN, NO EMPTY FIRST SLOT
---------------------------------------------- */

.related ul.products {
    display: flex !important;
    flex-wrap: wrap !important;
    gap: 24px !important;
    margin: 0 !important;
    padding: 0 !important;
    list-style: none !important;
}

.related ul.products::before,
.related ul.products::after {
    display: none !important;
    content: none !important;
}

.related ul.products li.product {
    background: #FFFFFF;
    border-radius: 12px;
    padding: 14px;
    box-shadow: 0 3px 10px rgba(0,0,0,.18);
    flex: 0 1 calc((100% - 72px) / 4);
}

@media (max-width:1200px) {
    .related ul.products li.product {
        flex: 0 1 calc((100% - 48px) / 3);
    }
}
@media (max-width:980px) {
    .related ul.products li.product {
        flex: 0 1 calc((100% - 24px) / 2);
    }
}
@media (max-width:480px) {
    .related ul.products li.product {
        flex: 0 1 100%;
    }
}

/* ---------------------------------------------
   FRAGRANCE BLURBS — WHITE CARDS
---------------------------------------------- */
.fragrance-blurb {
    background: #FFFFFF !important;
    border-radius: 12px !important;
    padding: 20px !important;
    box-shadow: 0 3px 12px rgba(0,0,0,.15) !important;
    margin-bottom: 24px !important;
}

/* ---------------------------------------------
   CART PAGE — ACTIONS ROW FIX
---------------------------------------------- */

.woocommerce-cart .cart .actions {
    display: flex !important;
    justify-content: space-between !important;
    flex-wrap: wrap !important;
    gap: 16px !important;
}

.woocommerce-cart .cart .actions .coupon input.input-text {
    width: 260px !important;
}

/* ---------------------------------------------
   WOO NOTICES
---------------------------------------------- */

.woocommerce-error,
.woocommerce-info,
.woocommerce-message {
    background: rgba(204,211,202,.9) !important;
    color: #000 !important;
    border: 1px solid #6a7d76 !important;
}

/* ---------------------------------------------
   SOCIAL ICONS — CHARCOAL
---------------------------------------------- */

.et_pb_social_media_follow li a.icon,
.et_pb_social_media_follow li a.icon::before {
    background: none !important;
    color: #3A3A3A !important;
}

.et_pb_social_media_follow li a.icon:hover::before {
    color: #1f1f1f !important;
}

/* FORCE cart thumbnails to resize */
body.woocommerce-cart table.cart td.product-thumbnail,
body.woocommerce-cart table.cart td.product-thumbnail img,
.woocommerce-cart .cart-items td.product-thumbnail img {
    width: 120px !important;
    min-width: 120px !important;
    max-width: 120px !important;
    height: auto !important;
}

/* FORCE CART THUMBNAILS — strongest override */
.woocommerce-cart table.cart td.product-thumbnail,
.woocommerce-cart table.cart td.product-thumbnail img,
.woocommerce table.cart td.product-thumbnail img,
.woocommerce-page table.cart td.product-thumbnail img {
    width: 140px !important;
    height: auto !important;
    max-width: 140px !important;
    min-width: 140px !important;
}
/* Restore original linen texture scale */
body {
    background-size: cover !important;
    background-repeat: no-repeat !important;
    background-attachment: scroll !important;
    background-position: center top !important;
}
