/*
Theme Name: Sweet Wicks
Theme URI: https://dev-sweet-wicks.pantheonsite.io/
Author: Sweet Wicks
Description: The Artisan Candle Studio - native WordPress theme for the Sweet Wicks storefront. Standalone from any other Pantheon project; talks only to this site's own content and cart.
Version: 1.0.0
Requires at least: 6.0
Requires PHP: 7.4
Text Domain: sweet-wicks
*/

* { margin: 0; padding: 0; box-sizing: border-box; font-family: system-ui, sans-serif; }

body.sweet-wicks-page { min-height: 100vh; background-color: #fdf2f6; background-image: radial-gradient(#f5d3e0 1.5px, transparent 1.5px); background-size: 24px 24px; color: #43202f; padding-bottom: 80px; overflow-x: hidden; }
body.sweet-wicks-page.dark { background-color: #1f1216; background-image: radial-gradient(#2b1720 1.5px, transparent 1.5px); color: #fbe8ef !important; }

a { color: inherit; text-decoration: none; }
img { max-width: 100%; display: block; }

.mainTitleBrandFont { font-family: Georgia, serif; font-weight: 700; font-size: 2.6rem; line-height: 1; color: #d6336c; }
.dark .mainTitleBrandFont { color: #f78fb3; }
.logoWrapper { display: flex; align-items: center; gap: 10px; }
.brandLogo { width: 52px; height: 52px; object-fit: contain; border-radius: 50%; }

/* Header / Nav */
.stickyHeaderChannel { position: fixed !important; top: 0; left: 0; right: 0; width: 100%; box-shadow: 0 4px 20px rgba(214, 51, 108, 0.1); z-index: 1000; }
.brandPatternHeaderBackground {
  background-color: #fbe4ec;
  background-image:
    linear-gradient(45deg, rgba(214, 51, 108, 0.03) 25%, transparent 25%, transparent 75%, rgba(214, 51, 108, 0.03) 75%),
    linear-gradient(45deg, rgba(214, 51, 108, 0.03) 25%, #fbe4ec 25%, #fbe4ec 75%, rgba(214, 51, 108, 0.03) 75%);
  background-size: 16px 16px;
  background-position: 0 0, 8px 8px;
}
.dark .brandPatternHeaderBackground {
  background-color: #2b1720;
  background-image:
    linear-gradient(45deg, rgba(255, 255, 255, 0.01) 25%, transparent 25%, transparent 75%, rgba(255, 255, 255, 0.01) 75%),
    linear-gradient(45deg, rgba(255, 255, 255, 0.01) 25%, #2b1720 25%, #2b1720 75%, rgba(255, 255, 255, 0.01) 75%);
  background-size: 16px 16px;
  background-position: 0 0, 8px 8px;
}
.brandTrimAccent { width: 100%; height: 6px; background-image: radial-gradient(circle at 50% 100%, transparent 4px, #fbe4ec 4px); background-size: 12px 6px; background-position: center bottom; position: absolute; bottom: -6px; left: 0; opacity: 0.95; }
.dark .brandTrimAccent { background-image: radial-gradient(circle at 50% 100%, transparent 4px, #2b1720 4px); }

.navContainer { max-width: 100%; margin: 0; padding: 16px 24px; display: flex; justify-content: space-between; align-items: center; }
.structuralMicroShiftRight { padding-left: 12px; cursor: pointer; display: flex; flex-direction: column; margin-right: auto; }
.navRight { display: flex; gap: 16px; align-items: center; margin-left: auto; }
.navLinks { display: flex; gap: 8px; }
.magneticTab { background: transparent; border: none; padding: 8px 14px; font-size: 0.9rem; font-weight: bold; color: inherit; cursor: pointer; border-radius: 20px; transition: transform 0.2s cubic-bezier(0.175, 0.885, 0.32, 1.275), background 0.2s ease, box-shadow 0.2s ease; }
.magneticTab:hover { transform: translateY(-3px); background: rgba(214, 51, 108, 0.06); }
.magneticTab.activeLink { background: #d6336c; color: white !important; box-shadow: 0 4px 12px rgba(214, 51, 108, 0.3); transform: translateY(-1px); }

.themeToggle { background: transparent; border: 2px dashed rgba(214, 51, 108, 0.3); color: inherit; padding: 8px 14px; border-radius: 20px; font-size: 0.8rem; cursor: pointer; }
.cartBtn { position: relative; background: #d6336c; color: white; border: none; padding: 10px 18px; border-radius: 24px; cursor: pointer; font-weight: bold; transition: transform 0.2s cubic-bezier(0.175, 0.885, 0.32, 1.275); }
.cartBtn:hover { transform: scale(1.08) rotate(-3deg); }
.cartBadge { position: absolute; top: -6px; right: -4px; background: #d94343; color: white; font-size: 11px; border-radius: 50%; min-width: 20px; height: 20px; display: grid; place-items: center; font-weight: 800; }

.fluidViewStage { width: 100%; padding-top: 130px; }

/* Hero */
.hero { text-align: center; padding: 20px 24px 10px; max-width: 900px; margin: 0 auto; }
.hero h2 { font-size: 2.5rem; font-weight: 900; margin-bottom: 12px; }
.homeViewportWrapper { max-width: 1200px; margin: 0 auto; padding: 60px 24px; text-align: center; }
.homeViewportWrapper .hero { padding: 40px 0; }
.homeViewportWrapper .hero h2 { font-size: 3.8rem; font-weight: 900; letter-spacing: -1px; }
.homeViewportWrapper .hero p { font-size: 1.3rem; margin-top: 15px; opacity: 0.8; max-width: 700px; margin-left: auto; margin-right: auto; line-height: 1.6; }

.masterEnterShopBtn { padding: 22px 64px; font-size: 1.4rem; max-width: 420px; border-radius: 24px; font-weight: 900; display: inline-flex; align-items: center; gap: 10px; transition: transform 0.2s cubic-bezier(0.175, 0.885, 0.32, 1.275), box-shadow 0.2s ease; box-shadow: 0 10px 24px rgba(214, 51, 108, 0.25); }
.masterEnterShopBtn:hover { transform: scale(1.04) translateY(-3px); box-shadow: 0 14px 32px rgba(214, 51, 108, 0.35); }
.masterEnterShopBtn:active { transform: scale(0.97) translateY(0); }

.primaryAction { background: #d6336c; color: #fff; border: none; padding: 14px 20px; border-radius: 18px; font-weight: 800; cursor: pointer; }
.primaryAction:disabled { background-color: #e8a9c3; cursor: not-allowed; }
.bouncyButton { transition: transform 0.15s cubic-bezier(0.175, 0.885, 0.32, 1.275); }
.bouncyButton:active { transform: scale(0.95); }

.statsGrid { display: grid; grid-template-columns: repeat(auto-fit, minmax(260px, 1fr)); gap: 30px; max-width: 960px; margin: 40px auto 60px; }
.dashboardMetricCard { padding: 30px; border-radius: 24px; text-align: center; }
.dashboardMetricCard:hover { transform: translateY(-4px); }
.dashboardMetricCard .metricEmoji { font-size: 2.5rem; }
.dashboardMetricCard h4 { margin: 12px 0 6px; opacity: 0.7; font-weight: bold; font-size: 0.85rem; letter-spacing: 1px; }
.dashboardMetricCard p { font-size: 2.2rem; font-weight: bold; color: #d6336c; }
.dark .dashboardMetricCard p { color: #f78fb3; }

/* Controls / filters */
.controlsContainer { max-width: 1200px; margin: 0 auto 10px; padding: 0 24px; display: flex; flex-direction: column; gap: 16px; }
@media (min-width: 768px) { .controlsContainer { flex-direction: row; justify-content: space-between; align-items: center; } }
.searchBar { padding: 14px 22px; border-radius: 30px; border: 2px dashed #f3c6da; background: #ffffff; color: #43202f; font-size: 0.95rem; width: 100%; max-width: 400px; }
.dark .searchBar { border-color: #5a2e3d; background: #2f1a22; color: #fbe8ef; }
.filterGroup { display: flex; gap: 12px; align-items: center; }
.tabs { display: flex; gap: 6px; background: rgba(214, 51, 108, 0.07); padding: 6px; border-radius: 24px; flex-wrap: wrap; }
.tab { padding: 8px 18px; border-radius: 20px; border: none; background: transparent; color: inherit; font-size: 0.85rem; font-weight: 700; cursor: pointer; }
.tab.activeTab { background: #d6336c; color: white !important; }

/* Product grid */
.gridContainer { max-width: 1200px; margin: 40px auto 0; padding: 0 24px; }
.grid { display: grid; grid-template-columns: repeat(auto-fill, minmax(280px, 1fr)); gap: 30px; }
.card { background: #ffffff; padding: 26px; border-radius: 28px; position: relative; box-shadow: 0 8px 24px rgba(214, 51, 108, 0.04); display: flex; flex-direction: column; color: #43202f; transition: transform 0.3s cubic-bezier(0.25, 1, 0.5, 1), box-shadow 0.3s ease; }
.dark .card { background: #2f1a22; color: #fbe8ef; }
.card:hover { transform: translateY(-8px) scale(1.02); box-shadow: 0 16px 36px rgba(214, 51, 108, 0.12); }
.productCard { cursor: pointer; }

.badge { position: absolute; top: 16px; left: 16px; background: #d94343; color: white; padding: 4px 12px; border-radius: 12px; font-size: 11px; font-weight: 800; }
.categoryBadge { position: absolute; top: 16px; right: 16px; font-size: 11px; background: rgba(214, 51, 108, 0.1); padding: 2px 10px; border-radius: 12px; font-weight: 700; }
.productImageContainer { position: relative; width: 100%; height: 170px; display: flex; justify-content: center; align-items: center; margin: 15px 0 10px; border-radius: 20px; overflow: hidden; background: transparent; }
.catalogPic { max-width: 100%; height: 100%; object-fit: contain; }
.productTitleLink { font-size: 1.25rem; font-weight: 900; margin-bottom: 6px; }
.desc { font-size: 0.9rem; opacity: 0.75; line-height: 1.5; margin-bottom: 16px; flex-grow: 1; }
.price { font-size: 1.5rem; font-weight: 900; color: #d6336c; margin-bottom: 4px; }
.dark .price { color: #f78fb3; }
.stockTray { display: flex; justify-content: space-between; align-items: center; margin-bottom: 12px; font-size: 0.85rem; }
.stockLeft { color: #d6336c; font-weight: bold; background: rgba(214,51,108,0.08); padding: 2px 8px; border-radius: 10px; }

.actions { display: flex; gap: 6px; align-items: center; width: 100%; margin-top: auto; }
.checkoutRowActionBtn { flex-grow: 1; padding: 12px 14px; font-size: 0.9rem; border-radius: 14px; text-transform: uppercase; letter-spacing: 0.5px; }
.actionRowIconBtn { flex-shrink: 0; width: 44px; height: 44px; padding: 0; display: inline-flex; justify-content: center; align-items: center; font-size: 1.15rem; border-radius: 14px; background: rgba(214, 51, 108, 0.06); border: none; cursor: pointer; }
.actionRowIconBtn.saved { background-color: #ffc2d1; color: #c2185b; box-shadow: 0 4px 10px rgba(214, 51, 108, 0.25); }
.actionRowIconBtn:disabled, .checkoutRowActionBtn:disabled { opacity: 0.5; cursor: not-allowed; }

/* Cart drawer */
.overlay { position: fixed; inset: 0; background: rgba(0, 0, 0, 0.45); backdrop-filter: blur(4px); z-index: 1500; display: none; }
.overlay.open { display: flex; justify-content: flex-end; }
.overlay.centered.open { justify-content: center; align-items: center; }
.cartDrawer { width: 100%; max-width: 440px; background: #fdf2f6; height: 100%; display: flex; flex-direction: column; border-left: 3px dashed #f3c6da; color: #43202f; box-shadow: -10px 0 30px rgba(0,0,0,0.05); }
.dark .cartDrawer { background: #1f1216; border-left-color: #5a2e3d; color: #fbe8ef; }
.cartHeader { display: flex; justify-content: space-between; align-items: center; padding: 20px 24px; border-bottom: 2px dashed rgba(0,0,0,0.06); flex-shrink: 0; }
.cartScrollerContent { flex-grow: 1; overflow-y: auto; display: flex; flex-direction: column; }
.cartItemsList { display: flex; flex-direction: column; gap: 10px; padding: 15px 24px; }
.cartItem { display: flex; align-items: center; gap: 12px; background: rgba(214, 51, 108, 0.05); padding: 10px; border-radius: 16px; }
.cartItem img { width: 45px; height: 45px; object-fit: contain; border-radius: 10px; background: white; }
.cartItemDetails { flex-grow: 1; }
.cartItemDetails .itemName { font-size: 0.9rem; }
.qty { display: flex; align-items: center; background: rgba(0,0,0,0.05); border-radius: 10px; overflow: hidden; }
.qty button { padding: 4px 8px; background: transparent; border: none; cursor: pointer; font-weight: bold; color: inherit; }
.qtyValue { font-size: 0.85rem; font-weight: bold; padding: 0 6px; }
.clearCartLink { background: transparent; border: none; color: #d6336c; text-decoration: underline; font-weight: bold; cursor: pointer; font-size: 0.85rem; }
.cartFooter { padding: 20px 24px; border-top: 1px dashed rgba(0,0,0,0.06); }
.cartFooter .total { display: flex; justify-content: space-between; font-size: 1.25rem; font-weight: 900; }
.emptyState { padding: 40px 24px; text-align: center; opacity: 0.7; }

.toast { position: fixed; bottom: 30px; right: 30px; background: #2b1720; color: #fff; padding: 14px 24px; border-radius: 20px; font-weight: 700; z-index: 5000; opacity: 0; transform: translateY(10px); transition: opacity 0.2s, transform 0.2s; pointer-events: none; }
.dark .toast { background: #fdf2f6; color: #1f1216; }
.toast.show { opacity: 1; transform: translateY(0); }

.modalCard { background: #fdf2f6; width: 95%; max-width: 600px; border-radius: 32px; padding: 30px; position: relative; margin: auto; border: 3px dashed #f3c6da; color: #43202f; overflow-y: auto; max-height: 90vh; text-align: left; }
.dark .modalCard { background: #2f1a22; border-color: #5a2e3d; color: #fbe8ef; }
.closeBtn { background: transparent; border: none; font-size: 1.4rem; color: inherit; cursor: pointer; }
.topCorner { position: absolute; top: 20px; right: 20px; }

.contentPage { max-width: 800px; margin: 60px auto; padding: 0 24px; text-align: left; }
.contentPage h1 { color: #d6336c; margin-bottom: 20px; }
.contentPage p { margin-bottom: 14px; line-height: 1.6; }
.contactForm { display: flex; flex-direction: column; gap: 14px; max-width: 500px; }
.contactForm textarea { width: 100%; height: 100px; padding: 12px; border-radius: 14px; border: 2px dashed #f3c6da; resize: none; font-size: 0.9rem; color: inherit; background: #ffffff; }
.dark .contactForm textarea { background: #2f1a22; border-color: #5a2e3d; }
.formNote { font-size: 0.85rem; padding: 10px 14px; border-radius: 12px; }
.formNote.success { background: rgba(76,175,80,0.12); color: #2e7d32; }
.formNote.error { background: rgba(217,67,67,0.12); color: #d94343; }
