/* ============================================
   Ouhifashion - Responsive Styles
   Mobile-First Priority
   ============================================ */

/* --- Tablet: 1024px --- */
@media (max-width: 1024px) {
	:root {
		--font-size-3xl: 32px;
		--font-size-4xl: 38px;
	}

	.categories-grid {
		grid-template-columns: repeat(2, 1fr);
	}

	/* Categories Grid - Tablet */
	.categories-all-grid {
		grid-template-columns: repeat(3, 1fr);
		gap: 16px;
	}

	.trust-grid {
		grid-template-columns: repeat(2, 1fr);
	}

	.values-grid {
		grid-template-columns: repeat(3, 1fr);
	}

	.footer-grid {
		grid-template-columns: repeat(2, 1fr);
	}

	.woocommerce ul.products {
		grid-template-columns: repeat(3, 1fr);
	}

	.single-product div.product {
		gap: 32px;
	}

	.woocommerce form.checkout {
		grid-template-columns: 1fr 340px;
		gap: 24px;
	}

	.woocommerce form.checkout .col2-set {
		grid-row: 1 / 3;
	}
}

/* --- Tablet Small: 768px --- */
@media (max-width: 768px) {
	:root {
		--font-size-2xl: 26px;
		--font-size-3xl: 28px;
		--font-size-4xl: 32px;
		--header-height: 60px;
	}

	/* Top Menu - hide on tablet/mobile */
	.top-menu-bar {
		display: none;
	}

	/* Header */
	.main-navigation {
		display: none;
	}

	.mobile-menu-toggle {
		display: flex;
	}

	.header-inner {
		gap: 12px;
	}

	.header-actions .header-account {
		display: none;
	}

	.top-bar-links {
		display: none;
	}

	.top-bar-text {
		text-align: center;
		width: 100%;
		font-size: var(--font-size-xs);
	}

	/* Mobile Bottom Nav - Show (hidden until scroll via JS .visible class) */
	.mobile-bottom-nav {
		display: flex;
	}

	/* Hide WhatsApp float when bottom nav is visible */
	.ouhifashion-whatsapp-float {
		bottom: 85px;
	}

	/* WhatsApp position on cart page with sticky checkout */
	.woocommerce-cart .ouhifashion-whatsapp-float {
		bottom: 200px;
	}

	/* Hero Slider - Fullscreen on mobile too */
	.hero-fullscreen {
		height: 100vh;
		height: 100svh;
		min-height: 500px;
	}

	.hero-slide-center {
		padding: 100px 20px 80px;
	}

	.slider-arrows {
		display: none;
	}

	.hero-slider-controls .container {
		justify-content: center;
	}

	/* Categories */
	.categories-all-grid {
		grid-template-columns: repeat(2, 1fr);
	}

	/* Sections */
	.section {
		padding: 50px 0;
	}

	.section-header {
		margin-bottom: 32px;
	}

	/* Products */
	.woocommerce ul.products {
		grid-template-columns: repeat(2, 1fr);
		gap: 16px;
	}

	.woocommerce ul.products li.product a img,
	.woocommerce ul.products li.product .attachment-woocommerce_thumbnail {
		height: 240px;
	}

	/* Single Product */
	.single-product div.product {
		grid-template-columns: 1fr;
	}

	/* Posts */
	.posts-grid {
		grid-template-columns: repeat(2, 1fr);
		gap: 20px;
	}

	/* Content with sidebar */
	.content-area-with-sidebar {
		grid-template-columns: 1fr;
	}

	/* Contact */
	.contact-grid {
		grid-template-columns: 1fr;
		gap: 32px;
	}

	/* Values */
	.values-grid {
		grid-template-columns: 1fr 1fr;
		gap: 20px;
	}

	/* Cart */
	.woocommerce .cart_totals {
		max-width: 100%;
	}

	/* Show product thumbnails on cart (mobile) */
	.woocommerce table.shop_table .product-thumbnail {
		display: table-cell;
	}

	.woocommerce table.shop_table .product-thumbnail img {
		width: 60px;
		height: 60px;
		object-fit: cover;
		border-radius: 8px;
	}

	/* Footer */
	.footer-grid {
		grid-template-columns: 1fr;
		gap: 32px;
	}

	.footer-bottom-inner {
		flex-direction: column;
		gap: 12px;
		text-align: center;
	}

	.footer-menu {
		justify-content: center;
	}

	/* Made with Love Credit */
	.made-with-love {
		font-size: var(--font-size-xs);
		gap: 6px;
	}

	.credit-heart svg {
		width: 14px;
		height: 14px;
	}

	/* Account */
	.woocommerce-account .woocommerce-MyAccount-navigation ul {
		flex-direction: column;
	}

	/* Error Page */
	.error-code {
		font-size: 80px;
	}
}

/* --- Mobile: 576px --- */
@media (max-width: 576px) {
	:root {
		--font-size-xl: 20px;
		--font-size-2xl: 22px;
		--font-size-3xl: 24px;
		--font-size-4xl: 28px;
	}

	.container {
		padding: 0 16px;
	}

	/* Top Bar */
	.top-bar {
		font-size: 11px;
		padding: 8px 0;
	}

	/* Header */
	.site-branding img {
		max-height: 36px;
	}

	/* Hero Slider Mobile */
	.hero-slide-center {
		padding: 80px 16px 70px;
	}

	.hero-title {
		font-size: var(--font-size-2xl);
	}

	.hero-description {
		font-size: var(--font-size-base);
	}

	.hero-subtitle {
		font-size: var(--font-size-xs);
	}

	.hero-actions {
		flex-direction: column;
		gap: 12px;
		width: 100%;
	}

	.hero-actions .btn {
		width: 100%;
		justify-content: center;
	}

	/* Logo Mobile */
	.logo-sf {
		font-size: 28px;
	}

	.logo-hijab {
		font-size: 14px;
	}

	/* Side Cart Mobile */
	.side-cart {
		width: 100%;
		max-width: 100%;
		right: -100%;
	}

	.btn-lg {
		padding: 12px 24px;
		font-size: var(--font-size-sm);
	}

	.btn {
		padding: 10px 24px;
		font-size: var(--font-size-sm);
	}

	/* Bottom Nav Mobile */
	.bottom-nav-item {
		font-size: 10px;
	}

	.bottom-nav-item svg {
		width: 20px;
		height: 20px;
	}

	/* Section */
	.section {
		padding: 40px 0;
	}

	.section-title {
		font-size: var(--font-size-xl);
	}

	/* Categories */
	.categories-grid {
		grid-template-columns: repeat(2, 1fr);
		gap: 12px;
	}

	.category-image {
		height: 160px;
	}

	.category-info {
		padding: 12px;
	}

	.category-name {
		font-size: var(--font-size-base);
	}

	/* Categories Grid - Mobile */
	.categories-all-grid {
		grid-template-columns: repeat(2, 1fr);
		gap: 12px;
	}

	.cat-card {
		border-radius: 14px;
		height: 200px;
	}

	.cat-card-title {
		font-size: 1rem;
	}

	.cat-card-content {
		padding: 14px;
	}

	.cat-card-label {
		font-size: 8px;
		padding: 4px 10px;
		margin-bottom: 6px;
		opacity: 1;
		transform: translateY(0);
	}

	.cat-card-arrow {
		width: 34px;
		height: 34px;
		margin-top: 10px;
		opacity: 1;
		transform: translateY(0);
	}

	.cat-card-arrow svg {
		width: 14px;
		height: 14px;
	}

	/* About Page Mobile */
	.about-story-grid {
		grid-template-columns: 1fr;
		gap: 40px;
	}

	.connect-grid {
		grid-template-columns: 1fr;
		gap: 40px;
	}

	.stats-grid {
		grid-template-columns: 1fr 1fr;
		gap: 20px;
	}

	.values-grid {
		grid-template-columns: 1fr;
		gap: 16px;
	}

	/* Products */
	.woocommerce ul.products {
		grid-template-columns: repeat(2, 1fr);
		gap: 12px;
	}

	.woocommerce ul.products li.product a img,
	.woocommerce ul.products li.product .attachment-woocommerce_thumbnail {
		height: 200px;
	}

	.woocommerce ul.products li.product .woocommerce-loop-product__title,
	.woocommerce ul.products li.product h2 {
		padding: 12px 10px 4px;
		font-size: var(--font-size-sm);
	}

	.woocommerce ul.products li.product .price {
		padding: 2px 10px 6px;
		font-size: var(--font-size-base);
	}

	.woocommerce ul.products li.product .button,
	.woocommerce ul.products li.product a.add_to_cart_button {
		margin: 6px 10px 12px;
		padding: 8px 14px;
		font-size: var(--font-size-xs);
	}

	.woocommerce span.onsale {
		top: 8px;
		right: 8px;
		font-size: 10px;
		padding: 4px 10px;
	}

	/* Trust */
	.trust-grid {
		grid-template-columns: 1fr 1fr;
		gap: 12px;
	}

	.trust-item {
		padding: 20px 12px;
	}

	.trust-icon {
		width: 50px;
		height: 50px;
	}

	.trust-icon svg {
		width: 24px;
		height: 24px;
	}

	.trust-item h4 {
		font-size: var(--font-size-sm);
	}

	.trust-item p {
		font-size: var(--font-size-xs);
	}

	/* Posts */
	.posts-grid {
		grid-template-columns: 1fr;
		gap: 20px;
	}

	/* Single Product */
	.woocommerce div.product .product_title {
		font-size: var(--font-size-xl);
	}

	.woocommerce div.product p.price {
		font-size: var(--font-size-lg);
	}

	.woocommerce div.product form.cart .button,
	.single_add_to_cart_button {
		padding: 12px 24px !important;
		font-size: var(--font-size-sm) !important;
	}

	.woocommerce div.product .woocommerce-tabs ul.tabs {
		flex-wrap: wrap;
	}

	.woocommerce div.product .woocommerce-tabs ul.tabs li a {
		padding: 8px 16px;
		font-size: var(--font-size-sm);
	}

	/* Cart - Mobile Small */
	.woocommerce table.shop_table td {
		padding: 10px 6px;
		font-size: var(--font-size-xs);
	}

	.woocommerce table.shop_table .product-thumbnail {
		display: table-cell;
		width: 60px;
		padding: 10px 6px;
	}

	.woocommerce table.shop_table .product-thumbnail img {
		width: 45px;
		height: 45px;
		border-radius: 6px;
	}

	.woocommerce table.shop_table .product-name {
		max-width: 120px;
	}

	.woocommerce table.shop_table .product-name a {
		font-size: 12px;
		line-height: 1.3;
		display: -webkit-box;
		-webkit-line-clamp: 2;
		-webkit-box-orient: vertical;
		overflow: hidden;
	}

	.woocommerce table.shop_table .product-remove {
		width: 30px;
	}

	.woocommerce a.remove {
		font-size: 18px !important;
	}

	.woocommerce .coupon {
		flex-wrap: wrap;
	}

	.woocommerce .coupon .input-text {
		width: 100%;
	}

	/* Hide some columns on very small screens */
	.woocommerce table.shop_table th.product-subtotal,
	.woocommerce table.shop_table td.product-subtotal {
		display: none;
	}

	/* Checkout */
	.woocommerce #order_review {
		padding: 20px;
	}

	.woocommerce form.login,
	.woocommerce form.register {
		padding: 20px;
	}

	/* Values */
	.values-grid {
		grid-template-columns: 1fr;
		gap: 16px;
	}

	/* Contact */
	.contact-form-area {
		padding: 20px;
	}

	/* Page */
	.page-header {
		padding: 32px 0 20px;
	}

	.page-title {
		font-size: var(--font-size-2xl);
	}

	/* Search Overlay */
	.search-field {
		font-size: var(--font-size-base);
		padding: 14px 16px;
	}

	/* WhatsApp */
	.ouhifashion-whatsapp-float {
		width: 48px;
		height: 48px;
		bottom: 16px;
		left: 16px;
	}

	.ouhifashion-whatsapp-float svg {
		width: 22px;
		height: 22px;
	}

	/* Error */
	.error-code {
		font-size: 60px;
	}

	.error-actions {
		flex-direction: column;
		align-items: center;
	}
}

/* --- Very Small Mobile: 375px --- */
@media (max-width: 375px) {
	.woocommerce ul.products {
		grid-template-columns: repeat(2, 1fr);
		gap: 8px;
	}

	.woocommerce ul.products li.product a img,
	.woocommerce ul.products li.product .attachment-woocommerce_thumbnail {
		height: 170px;
	}

	.categories-grid {
		gap: 8px;
	}

	.category-image {
		height: 130px;
	}
}

/* --- Print Styles --- */
@media print {
	.top-bar,
	.main-header,
	.site-footer,
	.ouhifashion-whatsapp-float,
	.mobile-menu-overlay,
	.search-overlay {
		display: none;
	}

	body {
		color: #000;
		background: #fff;
	}

	.container {
		max-width: 100%;
	}
}
