/**
 * Silk Threads – Patch CSS
 * Fixes all CSS class name mismatches between PHP templates and main.css
 *
 * @package Silk_Threads
 */

/* ==========================================================================
   ANNOUNCEMENT BAR – announcement-bar.php uses these classes
   ========================================================================== */
.st-announcement-bar {
	background-color: var(--st-color-primary);
	color: var(--st-color-white);
	position: relative;
	width: 100%;
	padding: 10px 30px;
	font-size: 12px;
	letter-spacing: 0.12em;
	text-transform: uppercase;
	font-weight: 500;
	overflow: hidden;
	font-family: var(--st-font-body);
}

.st-announcement-inner {
	display: flex;
	justify-content: center;
	align-items: center;
	position: relative;
	min-height: 18px;
}

.st-announcement-slider {
	position: relative;
	height: 18px;
	flex: 1;
}

.st-announcement-slide {
	position: absolute;
	top: 0;
	left: 0;
	width: 100%;
	text-align: center;
	opacity: 0;
	transition: opacity 0.5s ease;
	pointer-events: none;
}

.st-announcement-slide.active,
.st-announcement-slide.is-active {
	opacity: 1;
	pointer-events: auto;
}

/* close button — PHP uses class st-announcement-close-btn */
.st-announcement-close-btn {
	position: absolute;
	right: 0;
	top: 50%;
	transform: translateY(-50%);
	cursor: pointer;
	opacity: 0.7;
	transition: opacity 0.3s;
	background: none;
	border: none;
	padding: 4px;
	color: inherit;
}
.st-announcement-close-btn:hover { opacity: 1; }
.st-announcement-close-btn svg { width: 14px; height: 14px; fill: currentColor; }

/* ==========================================================================
   MEGA MENU – nav-mega-menu.php uses these classes (different from main.css)
   ========================================================================== */

/* Nav list wrapper — PHP uses st-nav-list, st-top-level, st-has-mega */
.st-nav-list {
	list-style: none;
	padding: 0;
	margin: 0;
	display: flex;
	align-items: center;
	justify-content: center;
}

.st-top-level {
	position: relative;
}

.st-top-level > a {
	display: block;
	padding: 18px 22px;
	font-family: var(--st-font-body);
	font-size: 13px;
	font-weight: 500;
	letter-spacing: 0.1em;
	text-transform: uppercase;
	color: var(--st-color-text-main);
	position: relative;
	transition: color 0.3s;
}

.st-top-level > a::after {
	content: '';
	position: absolute;
	bottom: 10px;
	left: 22px;
	right: 22px;
	height: 1px;
	background-color: var(--st-color-primary);
	transform: scaleX(0);
	transform-origin: right;
	transition: transform 0.35s cubic-bezier(0.25, 0.46, 0.45, 0.94);
}

.st-top-level:hover > a {
	color: var(--st-color-primary);
}

.st-top-level:hover > a::after {
	transform: scaleX(1);
	transform-origin: left;
}

/* Transparent header overrides for nav */
.st-header--transparent .st-top-level > a {
	color: rgba(255, 255, 255, 0.9);
}
.st-header--transparent .st-top-level:hover > a {
	color: var(--st-color-white);
}

/* === Mega Panel Dropdown === */
.st-mega-panel {
	display: none;
	position: absolute;
	top: 100%;
	left: 50%;
	transform: translateX(-50%);
	min-width: 700px;
	max-width: 1100px;
	background-color: var(--st-color-white);
	border: 1px solid var(--st-color-border-light);
	box-shadow: 0 12px 40px rgba(26, 18, 8, 0.08);
	z-index: 200;
	padding: 35px 40px;
}

.st-has-mega:hover .st-mega-panel {
	display: block;
}

.st-mega-panel-inner {
	position: relative;
}

.st-mega-grid {
	display: grid;
	grid-template-columns: repeat(auto-fit, minmax(180px, 1fr));
	gap: 30px;
}

.st-mega-col {
	display: flex;
	flex-direction: column;
}

.st-mega-col-image {
	max-width: 280px;
}

.st-mega-col-title {
	font-family: var(--st-font-display);
	font-size: 14px;
	font-weight: 600;
	letter-spacing: 0.06em;
	color: var(--st-color-primary);
	text-transform: uppercase;
	margin: 0 0 18px;
	padding-bottom: 8px;
	border-bottom: 1px solid rgba(139, 44, 44, 0.12);
}

.st-mega-sub-list {
	list-style: none;
	padding: 0;
	margin: 0;
}

.st-mega-sub-list li {
	margin-bottom: 10px;
}

.st-mega-sub-list li a {
	font-family: var(--st-font-body);
	font-size: 13px;
	color: var(--st-color-text-muted);
	transition: color 0.25s, padding-left 0.25s;
}

.st-mega-sub-list li a:hover {
	color: var(--st-color-primary);
	padding-left: 5px;
}

/* Mega Featured Card inside mega menu */
.st-mega-featured-card {
	position: relative;
	overflow: hidden;
}

.st-mega-card-img {
	position: relative;
	overflow: hidden;
	margin-bottom: 12px;
}

.st-mega-card-img img {
	width: 100%;
	height: 180px;
	object-fit: cover;
	display: block;
	transition: transform 0.5s ease;
}

.st-mega-featured-card:hover .st-mega-card-img img {
	transform: scale(1.04);
}

.st-mega-card-title {
	font-family: var(--st-font-display);
	font-size: 16px;
	font-weight: 500;
	margin: 0 0 8px;
	color: var(--st-color-text-main);
}

.st-mega-card-link {
	font-family: var(--st-font-body);
	font-size: 11px;
	font-weight: 700;
	letter-spacing: 0.12em;
	text-transform: uppercase;
	color: var(--st-color-gold);
	display: inline-block;
}

.st-gold-accent {
	color: var(--st-color-gold) !important;
	font-weight: 600;
}

/* ==========================================================================
   SIDE CART DRAWER – cart.js and footer.php
   ========================================================================== */
.st-side-cart-overlay {
	position: fixed;
	inset: 0;
	background: rgba(26, 18, 8, 0.55);
	backdrop-filter: blur(3px);
	z-index: 1500;
	opacity: 0;
	visibility: hidden;
	transition: opacity 0.35s, visibility 0.35s;
}

.st-side-cart-overlay.is-open {
	opacity: 1;
	visibility: visible;
}

.st-side-cart-drawer {
	position: fixed;
	top: 0;
	right: 0;
	width: 100%;
	max-width: 420px;
	height: 100%;
	background-color: var(--st-color-white);
	box-shadow: -10px 0 40px rgba(0, 0, 0, 0.12);
	transform: translateX(100%);
	transition: transform 0.4s cubic-bezier(0.25, 0.46, 0.45, 0.94);
	display: flex;
	flex-direction: column;
	z-index: 1501;
}

.st-side-cart-overlay.is-open .st-side-cart-drawer {
	transform: translateX(0);
}

.st-side-cart-header {
	display: flex;
	justify-content: space-between;
	align-items: center;
	padding: 22px 24px;
	border-bottom: 1px solid var(--st-color-border-light);
}

.st-side-cart-title {
	font-family: var(--st-font-display);
	font-size: 22px;
	font-weight: 500;
	margin: 0;
}

.st-side-cart-close {
	cursor: pointer;
	color: var(--st-color-text-main);
	background: none;
	border: none;
	padding: 4px;
}

.st-side-cart-close svg {
	width: 20px;
	height: 20px;
	fill: currentColor;
}

.st-side-cart-body {
	flex: 1;
	overflow-y: auto;
	padding: 20px 24px;
}

.st-side-cart-footer {
	border-top: 1px solid var(--st-color-border-light);
	padding: 20px 24px;
}

.st-cart-subtotal-row {
	display: flex;
	justify-content: space-between;
	font-size: 15px;
	font-weight: 600;
	margin-bottom: 16px;
}

.st-side-cart-checkout-btn {
	display: block;
	width: 100%;
	text-align: center;
	background-color: var(--st-color-primary);
	color: var(--st-color-white);
	font-family: var(--st-font-body);
	font-size: 13px;
	font-weight: 700;
	text-transform: uppercase;
	letter-spacing: 0.15em;
	padding: 16px 0;
	border: none;
	cursor: pointer;
	transition: background-color 0.3s;
}

.st-side-cart-checkout-btn:hover {
	background-color: #1a1208;
	color: var(--st-color-white);
}

.st-free-shipping-bar {
	font-family: var(--st-font-body);
	font-size: 12px;
	text-align: center;
	padding: 8px;
	background-color: var(--st-bg-surface);
	margin-bottom: 12px;
	color: var(--st-color-text-muted);
}

/* Cart item inside drawer */
.st-cart-item {
	display: flex;
	gap: 15px;
	padding: 15px 0;
	border-bottom: 1px solid var(--st-color-border-light);
}

.st-cart-item-img {
	width: 75px;
	height: 100px;
	object-fit: cover;
	flex-shrink: 0;
}

.st-cart-item-details {
	flex: 1;
	display: flex;
	flex-direction: column;
	justify-content: space-between;
}

.st-cart-item-name {
	font-family: var(--st-font-display);
	font-size: 16px;
	font-weight: 500;
	line-height: 1.3;
	margin: 0 0 4px;
}

.st-cart-item-meta {
	font-size: 12px;
	color: var(--st-color-text-muted);
	margin-bottom: 8px;
}

.st-cart-item-row {
	display: flex;
	justify-content: space-between;
	align-items: center;
}

.st-cart-item-price {
	font-size: 14px;
	font-weight: 600;
	color: var(--st-color-primary);
}

.st-cart-item-remove {
	font-size: 11px;
	text-transform: uppercase;
	letter-spacing: 0.08em;
	color: var(--st-color-text-muted);
	cursor: pointer;
	background: none;
	border: none;
	padding: 0;
}

.st-cart-item-remove:hover {
	color: var(--st-color-primary);
}

/* Empty cart state */
.st-cart-empty-state {
	text-align: center;
	padding: 60px 20px;
}

.st-cart-empty-state p {
	font-family: var(--st-font-display);
	font-size: 20px;
	color: var(--st-color-text-muted);
	margin-bottom: 20px;
}

/* ==========================================================================
   PAYMENT TRUST BADGE
   ========================================================================== */
.st-payment-trust-badge {
	display: flex;
	align-items: center;
	justify-content: center;
	font-family: var(--st-font-body);
	font-size: 12px;
	color: var(--st-color-text-muted);
	padding: 12px 0;
	text-align: center;
	border-top: 1px solid var(--st-color-border-light);
	margin-top: 15px;
}

.st-payment-trust-badge .lock-icon {
	margin-right: 8px;
}

/* WhatsApp enquiry on product page */
.st-whatsapp-enquiry-wrapper {
	margin-bottom: 20px;
}

.st-whatsapp-btn {
	display: flex;
	align-items: center;
	justify-content: center;
	width: 100%;
	padding: 14px 20px;
	font-family: var(--st-font-body);
	font-size: 13px;
	font-weight: 600;
	letter-spacing: 0.05em;
	text-transform: uppercase;
	border: 1px solid #25d366;
	color: #128c7e;
	background-color: rgba(37, 211, 102, 0.05);
	transition: background-color 0.3s, color 0.3s;
}

.st-whatsapp-btn:hover {
	background-color: #25d366;
	color: var(--st-color-white);
}

.whatsapp-icon {
	margin-right: 10px;
	font-size: 18px;
}

/* ==========================================================================
   SHIPPING NOTICE BANNERS
   ========================================================================== */
.st-shipping-notice {
	padding: 12px 20px;
	font-family: var(--st-font-body);
	font-size: 13px;
	margin-bottom: 20px;
	text-align: center;
}

.st-shipping-notice.info-notice {
	background-color: rgba(181, 134, 13, 0.08);
	border: 1px solid rgba(181, 134, 13, 0.3);
	color: var(--st-color-gold);
}

.st-shipping-notice.success-notice {
	background-color: rgba(27, 135, 75, 0.08);
	border: 1px solid rgba(27, 135, 75, 0.3);
	color: #1b874b;
}

/* ==========================================================================
   BREADCRUMBS
   ========================================================================== */
.st-breadcrumbs {
	padding: 15px 0;
	font-family: var(--st-font-body);
	font-size: 12px;
	letter-spacing: 0.05em;
}

.st-breadcrumb-list {
	list-style: none;
	padding: 0;
	margin: 0;
	display: flex;
	align-items: center;
	flex-wrap: wrap;
	gap: 6px;
}

.st-breadcrumb-item {
	display: flex;
	align-items: center;
}

.st-breadcrumb-item a {
	color: var(--st-color-text-muted);
	transition: color 0.25s;
}

.st-breadcrumb-item a:hover {
	color: var(--st-color-primary);
}

.st-breadcrumb-active span {
	color: var(--st-color-text-main);
	font-weight: 500;
}

.st-breadcrumb-sep {
	margin: 0 4px;
	color: var(--st-color-text-muted);
}

/* ==========================================================================
   WC PRODUCT STAR RATING OVERRIDE
   ========================================================================== */
.woocommerce .star-rating {
	color: var(--st-color-gold);
}

/* ==========================================================================
   WOOCOMMERCE NOTICES
   ========================================================================== */
.woocommerce-message,
.woocommerce-error,
.woocommerce-info {
	font-family: var(--st-font-body);
	font-size: 14px;
	padding: 14px 20px;
	margin-bottom: 20px;
	border-left: 4px solid var(--st-color-primary);
	background-color: var(--st-bg-surface);
	list-style: none;
}

.woocommerce-error {
	border-left-color: #d93838;
}

/* ==========================================================================
   HEADER STICKY TRANSPARENT FIX - when is-sticky applied, ensure solid bg
   ========================================================================== */
.st-header.is-sticky {
	position: fixed !important;
	top: 0;
	left: 0;
	width: 100%;
	z-index: 200;
	background-color: var(--st-color-white) !important;
	border-bottom: 1px solid var(--st-color-border-light);
	box-shadow: 0 4px 20px rgba(26, 18, 8, 0.05);
}

.st-header.is-sticky .st-top-level > a {
	color: var(--st-color-text-main) !important;
}

.st-header.is-sticky .st-logo-text {
	color: var(--st-color-primary) !important;
}

.st-header.is-sticky .st-header-btn {
	color: var(--st-color-text-main) !important;
}

.st-header.is-sticky .st-hamburger-btn {
	color: var(--st-color-text-main) !important;
}

.st-header.is-sticky .st-currency-selector select {
	color: var(--st-color-text-main);
	border-color: var(--st-color-border-light);
}

.st-header.is-sticky .st-utility-bar {
	color: var(--st-color-text-muted);
	border-bottom-color: var(--st-color-border-light);
}

/* ==========================================================================
   MOBILE TRIGGER – hide on desktop, show on mobile
   ========================================================================== */
.st-mobile-trigger-wrapper {
	display: none;
}

@media (max-width: 1024px) {
	.st-mobile-trigger-wrapper {
		display: block;
	}
}

/* ==========================================================================
   HOMEPAGE SECTION PADDING NORMALIZATION
   ========================================================================== */
.st-hero-section + * {
	position: relative;
	z-index: 1;
}

/* Page with transparent header needs top padding equal to header height */
.page-template-page-homepage .st-main-content {
	padding-top: 0;
}
