/*
Theme Name: Blocksy Child - Crazy Women
Template: blocksy
Version: 1.0
*/

/* ===== GOOGLE FONTS ===== */
@import url('https://fonts.googleapis.com/css2?family=Poppins:wght@300;400;500;600;700&family=Abril+Fatface&display=swap');

/* ===== ROOT VARIABLES ===== */
:root {
  --cw-pink: #ffe8e8;
  --cw-rose: #b05d5d;
  --cw-dark-rose: #8a3f3f;
  --cw-red: #e95144;
  --cw-dark: #232323;
  --cw-grey: #969696;
  --cw-white: #ffffff;
  --cw-light: #fdf6f6;
}

/* ===== GLOBAL ===== */
body {
  font-family: 'Poppins', sans-serif !important;
  color: var(--cw-dark);
  background: var(--cw-white);
}

h1, h2, h3, h4, h5, h6 {
  font-family: 'Abril Fatface', serif !important;
  color: var(--cw-dark);
  letter-spacing: 0.05em;
}

a { color: var(--cw-rose); }
a:hover { color: var(--cw-dark-rose); }

/* ===== HEADER ===== */
.site-header {
  background: var(--cw-white) !important;
  border-bottom: 2px solid var(--cw-pink) !important;
}

.site-title, .site-title a {
  font-family: 'Abril Fatface', serif !important;
  color: var(--cw-rose) !important;
  font-size: 28px !important;
  letter-spacing: 0.1em;
}

/* ===== ANNOUNCEMENT BAR ===== */
.ct-header-announcement {
  background: var(--cw-pink) !important;
  color: var(--cw-rose) !important;
  font-weight: 600;
  font-size: 13px;
  letter-spacing: 0.05em;
}

/* ===== NAVIGATION ===== */
.ct-header-cart .cart-count,
.header-cart-count {
  background: var(--cw-rose) !important;
  color: var(--cw-white) !important;
}

/* ===== BUTTONS ===== */
.wp-block-button__link,
.button, button[type=submit],
.woocommerce a.button,
.woocommerce button.button,
.woocommerce input.button,
.woocommerce #respond input#submit {
  background: var(--cw-rose) !important;
  color: var(--cw-white) !important;
  border: none !important;
  border-radius: 0 !important;
  font-family: 'Poppins', sans-serif !important;
  font-weight: 700 !important;
  text-transform: uppercase !important;
  letter-spacing: 0.05em !important;
  padding: 12px 28px !important;
  transition: background 0.3s ease !important;
}

.wp-block-button__link:hover,
.button:hover, button[type=submit]:hover,
.woocommerce a.button:hover,
.woocommerce button.button:hover {
  background: var(--cw-dark-rose) !important;
  color: var(--cw-white) !important;
}

/* ===== HERO SLIDER SECTION ===== */
.cw-hero {
  background: linear-gradient(135deg, var(--cw-pink) 0%, #f5d5d5 100%);
  padding: 80px 20px;
  text-align: center;
}

.cw-hero h1 {
  font-size: 52px;
  color: var(--cw-rose);
  margin-bottom: 15px;
}

.cw-hero p {
  font-size: 18px;
  color: var(--cw-dark);
  margin-bottom: 30px;
}

/* ===== PRODUCT CARDS ===== */
.woocommerce ul.products li.product .woocommerce-loop-product__title {
  font-family: 'Poppins', sans-serif !important;
  font-size: 14px !important;
  color: var(--cw-dark) !important;
  text-transform: capitalize !important;
}

.woocommerce ul.products li.product .price {
  color: var(--cw-rose) !important;
  font-weight: 700 !important;
}

.woocommerce ul.products li.product .price del {
  color: var(--cw-grey) !important;
  font-weight: 400 !important;
}

.woocommerce ul.products li.product:hover {
  box-shadow: 0 4px 20px rgba(176, 93, 93, 0.15) !important;
  transform: translateY(-3px);
  transition: all 0.3s ease;
}

/* ===== SALE BADGE ===== */
.woocommerce span.onsale {
  background: var(--cw-red) !important;
  border-radius: 0 !important;
  font-family: 'Poppins', sans-serif !important;
  font-weight: 700 !important;
  font-size: 11px !important;
  min-width: auto !important;
  min-height: auto !important;
  line-height: 1 !important;
  padding: 5px 8px !important;
}

/* ===== TRUST BADGES SECTION ===== */
.cw-trust {
  background: var(--cw-pink);
  padding: 25px 0;
  text-align: center;
}

.cw-trust-item {
  display: inline-block;
  margin: 0 30px;
  font-size: 13px;
  font-weight: 600;
  color: var(--cw-rose);
  text-transform: uppercase;
  letter-spacing: 0.05em;
}

.cw-trust-item span {
  display: block;
  font-size: 20px;
  margin-bottom: 5px;
}

/* ===== CATEGORY GRID ===== */
.cw-categories {
  padding: 60px 0;
  background: var(--cw-white);
}

.cw-category-card {
  text-align: center;
  padding: 20px;
  border: 1px solid var(--cw-pink);
  transition: all 0.3s ease;
}

.cw-category-card:hover {
  border-color: var(--cw-rose);
  box-shadow: 0 4px 15px rgba(176, 93, 93, 0.1);
}

.cw-category-card h3 {
  font-family: 'Poppins', sans-serif !important;
  font-size: 14px !important;
  font-weight: 600 !important;
  color: var(--cw-dark) !important;
  text-transform: uppercase;
  letter-spacing: 0.05em;
  margin-top: 10px;
}

/* ===== SECTION TITLES ===== */
.cw-section-title {
  font-family: 'Abril Fatface', serif !important;
  font-size: 36px;
  color: var(--cw-dark);
  text-align: center;
  margin-bottom: 40px;
  position: relative;
}

.cw-section-title::after {
  content: '';
  display: block;
  width: 60px;
  height: 2px;
  background: var(--cw-rose);
  margin: 12px auto 0;
}

/* ===== FOOTER ===== */
.site-footer {
  background: var(--cw-dark) !important;
  color: var(--cw-white) !important;
}

.site-footer a {
  color: var(--cw-pink) !important;
}

.site-footer a:hover {
  color: var(--cw-rose) !important;
}

/* ===== WHATSAPP BUTTON ===== */
.cw-whatsapp {
  position: fixed;
  bottom: 25px;
  right: 25px;
  z-index: 999;
  background: #25d366;
  color: white !important;
  width: 55px;
  height: 55px;
  border-radius: 50%;
  display: flex;
  align-items: center;
  justify-content: center;
  font-size: 26px;
  box-shadow: 0 4px 15px rgba(37, 211, 102, 0.4);
  text-decoration: none !important;
  transition: transform 0.3s ease;
}

.cw-whatsapp:hover {
  transform: scale(1.1);
  color: white !important;
}

/* ===== MOBILE ===== */
@media (max-width: 768px) {
  .cw-hero h1 { font-size: 32px; }
  .cw-hero p { font-size: 15px; }
  .cw-trust-item { margin: 8px 15px; display: block; }
  .cw-section-title { font-size: 26px; }
}

/* Hide default WordPress footer */
.ct-footer-copyright { display: none !important; }

/* Professional Footer */
.cw-footer-info {
    background: #1a1a1a;
    padding: 60px 20px 0;
    font-family: 'Poppins', sans-serif;
}

.cw-footer-grid {
    display: grid;
    grid-template-columns: 2fr 1fr 1fr 1fr;
    gap: 40px;
    max-width: 1200px;
    margin: 0 auto;
    padding-bottom: 40px;
    border-bottom: 1px solid #333;
}

.cw-footer-col h4 {
    color: #ffe8e8 !important;
    font-size: 14px !important;
    font-weight: 700 !important;
    text-transform: uppercase;
    letter-spacing: 0.1em;
    margin-bottom: 20px !important;
    font-family: 'Poppins', sans-serif !important;
}

.cw-footer-col p {
    color: #999;
    font-size: 13px;
    line-height: 1.8;
    margin: 0;
}

.cw-footer-col a {
    display: block;
    color: #999 !important;
    text-decoration: none;
    font-size: 13px;
    margin-bottom: 10px;
    transition: color 0.3s;
}

.cw-footer-col a:hover {
    color: #b05d5d !important;
}

.cw-footer-brand h3 {
    color: #fff !important;
    font-family: 'Abril Fatface', serif !important;
    font-size: 28px !important;
    margin-bottom: 12px !important;
}

.cw-footer-brand p {
    color: #999;
    font-size: 13px;
    line-height: 1.8;
    max-width: 280px;
}

.cw-footer-social-icons {
    display: flex;
    gap: 10px;
    margin-top: 20px;
}

.cw-footer-social-icons a {
    display: inline-flex !important;
    align-items: center;
    justify-content: center;
    width: 38px;
    height: 38px;
    background: #333;
    border-radius: 50%;
    color: #fff !important;
    font-size: 16px;
    text-decoration: none;
    transition: background 0.3s;
    margin: 0 !important;
}

.cw-footer-social-icons a:hover {
    background: #b05d5d !important;
}

.cw-footer-bottom {
    max-width: 1200px;
    margin: 0 auto;
    padding: 20px 0;
    display: flex;
    justify-content: space-between;
    align-items: center;
    flex-wrap: wrap;
    gap: 10px;
}

.cw-footer-bottom p {
    color: #555;
    font-size: 12px;
    margin: 0;
}

.cw-footer-trust {
    display: flex;
    gap: 20px;
    flex-wrap: wrap;
    justify-content: center;
}

.cw-footer-trust span {
    color: #555;
    font-size: 12px;
}

@media (max-width: 768px) {
    .cw-footer-grid {
        grid-template-columns: 1fr 1fr;
        gap: 30px;
    }
    .cw-footer-bottom {
        flex-direction: column;
        text-align: center;
    }
}

@media (max-width: 480px) {
    .cw-footer-grid {
        grid-template-columns: 1fr;
    }
}

/* Hide site title text (logo already showing) */
.site-title { display: none !important; }

/* Hide Home page title */
.home .entry-header, .home .page-title, .home h1.entry-title { display: none !important; }

/* Hero full width */
.home .entry-content { padding: 0 !important; margin: 0 !important; }
.home .cw-hero { 
    padding: 120px 20px !important; 
    margin: 0 !important;
    border-radius: 0 !important;
}

/* Category buttons better */
.home .entry-content > div > a {
    border-radius: 3px !important;
    transition: all 0.3s ease !important;
}
.home .entry-content > div > a:hover {
    background: #ffe8e8 !important;
    border-color: #b05d5d !important;
    color: #b05d5d !important;
}

/* Hide duplicate site title in header */
.site-branding .site-title,
.ct-header .site-title,
header .site-title {
    display: none !important;
}

/* Logo size fix */
.ct-header .site-logo img,
.site-branding img,
header .custom-logo {
    height: 70px !important;
    width: auto !important;
    max-width: 250px !important;
}

/* Banner full width fix */
.home .entry-content,
.home .ct-container {
    max-width: 100% !important;
    padding: 0 !important;
}

.cw-hero {
    width: 100% !important;
    max-width: 100% !important;
    margin-left: 0 !important;
    margin-right: 0 !important;
    padding: 150px 40px !important;
    text-align: left !important;
}

.cw-hero h1 {
    font-size: 64px !important;
    max-width: 600px !important;
}

.cw-hero p {
    max-width: 500px !important;
    font-size: 16px !important;
}

.cw-hero .button {
    width: auto !important;
    display: inline-block !important;
    padding: 15px 40px !important;
}

/* Hero center align */
.cw-hero {
    text-align: center !important;
    padding: 120px 40px !important;
}

.cw-hero h1 {
    margin-left: auto !important;
    margin-right: auto !important;
    font-size: 56px !important;
}

.cw-hero p {
    margin-left: auto !important;
    margin-right: auto !important;
}

.cw-hero .button {
    margin: 0 auto !important;
}

/* Extra space upar hatao */
.home .wp-block-html {
    margin-top: 0 !important;
    padding-top: 0 !important;
}

/* Mobile Hero Fix */
@media (max-width: 768px) {
    .wp-block-html > div[style*="display:flex;align-items:stretch"] {
        flex-direction: column !important;
    }
    .wp-block-html > div[style*="display:flex;align-items:stretch"] > div:first-child {
        padding: 50px 25px !important;
        order: 2 !important;
    }
    .wp-block-html > div[style*="display:flex;align-items:stretch"] > div:last-child {
        min-height: 300px !important;
        order: 1 !important;
    }
    .wp-block-html > div[style*="display:flex;align-items:stretch"] h1 {
        font-size: 36px !important;
    }
    /* Category grid mobile */
    .wp-block-html div[style*="grid-template-columns:1fr 1fr 1fr"] {
        grid-template-columns: 1fr 1fr !important;
    }
    .wp-block-html div[style*="grid-template-columns:1fr 1fr"] {
        grid-template-columns: 1fr 1fr !important;
    }
    .wp-block-html div[style*="grid-template-columns:1fr 1fr 1fr"] a img {
        height: 180px !important;
    }
    .wp-block-html div[style*="grid-template-columns:1fr 1fr"] a img {
        height: 180px !important;
    }
}

/* Hide postcode field */
.woocommerce-checkout #billing_postcode_field,
.woocommerce-checkout #shipping_postcode_field {
    display: none !important;
}

/* Logo size increase */
.site-header .custom-logo,
.site-header .custom-logo-link img,
header .custom-logo img,
.ct-header .custom-logo img {
    height: 90px !important;
    width: auto !important;
    max-width: 300px !important;
}

/* Hide logo image, show text logo */
.site-header .custom-logo-link {
    display: none !important;
}

.site-header .site-title {
    display: block !important;
    font-family: "Abril Fatface", serif !important;
    font-size: 28px !important;
    color: #b05d5d !important;
    letter-spacing: 0.05em !important;
    line-height: 1.2 !important;
}

.site-header .site-title a {
    color: #b05d5d !important;
    text-decoration: none !important;
}

/* Logo bigger */
.site-header img.custom-logo,
.ct-header img.custom-logo,
.custom-logo-link img,
img.custom-logo {
    height: 120px !important;
    width: auto !important;
    max-width: 350px !important;
    object-fit: contain !important;
}

/* Logo even bigger */
.site-header img.custom-logo,
.ct-header img.custom-logo,
.custom-logo-link img,
img.custom-logo {
    height: 180px !important;
    width: auto !important;
    max-width: 450px !important;
    object-fit: contain !important;
}

/* Sticky announcement + header */
.cw-announcement {
    position: sticky !important;
    top: 0 !important;
    z-index: 99999 !important;
}

.site-header,
#masthead,
.ct-header-wrapper,
[data-row="header"] {
    position: sticky !important;
    top: 43px !important;
    z-index: 99998 !important;
    box-shadow: 0 2px 10px rgba(0,0,0,0.08) !important;
}

/* Force sticky header */
#masthead,
.site-header,
header.site-header,
.ct-header-wrapper {
    position: -webkit-sticky !important;
    position: sticky !important;
    top: 0 !important;
    z-index: 9999 !important;
    background: #fff !important;
    box-shadow: 0 2px 8px rgba(0,0,0,0.08) !important;
}

/* Blocksy sticky header fix */
.ct-header {
    position: sticky !important;
    top: 0 !important;
    z-index: 9999 !important;
    background: #fff !important;
    box-shadow: 0 2px 8px rgba(0,0,0,0.08) !important;
}

/* Announcement bar + header both sticky */
.cw-announcement {
    position: sticky !important;
    top: 0 !important;
    z-index: 99999 !important;
    width: 100% !important;
}

.ct-header {
    position: sticky !important;
    top: 43px !important;
    z-index: 99998 !important;
}

/* Mobile menu fix */
@media (max-width: 1024px) {
    .ct-header-trigger {
        display: flex !important;
        visibility: visible !important;
        opacity: 1 !important;
        pointer-events: auto !important;
        cursor: pointer !important;
        z-index: 999999 !important;
    }
    
    .mobile-menu {
        display: block !important;
        z-index: 999998 !important;
    }
    
    .ct-panel.ct-active,
    .ct-drawer-canvas.ct-active {
        z-index: 999999 !important;
        display: block !important;
    }
}
