/**
 * Theme Name:        AkStore
 * Theme URI:         https://example.com/fabled-sunset
 * Description:       Custom theme description...
 * Version:           1.0.1
 * Author:            Your Name
 * Author URI:        https://example.com
 * License:           GNU General Public License v2.0 or later
 */
/* --- Global Reset & Variables --- */
* {
    margin: 0;
    padding: 0;
    box-sizing: border-box;
    font-family: -apple-system, BlinkMacSystemFont, "Segoe UI", Roboto, Helvetica, Arial, sans-serif;
}
a {
	color: #1f2937;
	text-decoration: none;
}

body {
    background-color: #f3f4f5;
    color: #333;
    padding-bottom: 60px; /* Space for mobile navigation bar */
}

/* --- Navigation Bar --- */
.navbar {
    background-color: #fff;
    border-bottom: 1px solid #ebebeb;
    position: sticky;
    top: 0;
    z-index: 1000;
}

.nav-container {
    max-width: 1200px;
    margin: 0 auto;
    display: flex;
    align-items: center;
    justify-content: space-between;
    padding: 12px 20px;
}

.nav-logo {
    font-size: 20px;
    font-weight: 700;
    letter-spacing: -0.5px;
}
.mob-nav-menu{
	display: none;
}

.nav-search {
    position: relative;
    flex: 0 1 500px;
    margin: 0 20px;
}

.nav-search input {
    width: 100%;
    padding: 10px 15px 10px 40px;
    border: 1px solid #e0e0e0;
    border-radius: 8px;
    background-color: #f5f5f5;
    font-size: 14px;
    outline: none;
}

.nav-search i, .search-icon {
    position: absolute;
    left: 15px;
    top: 50%;
    transform: translateY(-50%);
    color: #888;
}

.nav-menu {
    display: flex;
    gap: 24px;
}

.nav-item {
    text-decoration: none;
    color: #444;
    font-size: 14px;
    display: flex;
    align-items: center;
    gap: 6px;
}

/* --- Layout Sections --- */
.main-content {
    max-width: 1200px;
    margin: 0 auto;
    padding: 20px;
}

.section {
    margin-bottom: 40px;
}

.section-header {
    display: flex;
    justify-content: space-between;
    align-items: center;
    margin-bottom: 16px;
}

.section-header h2 {
    font-size: 18px;
    font-weight: 600;
}

.see-more {
    font-size: 13px;
    color: #0076d6;
    text-decoration: none;
    font-weight: 500;
}

/* --- Popular Categories Grid --- */
.categories-grid {
    display: grid;
    grid-template-columns: repeat(auto-fill, minmax(120px, 1fr));
    gap: 16px;
}

.category-card {
    background-color: #fff;
    border: 1px solid #eee;
    border-radius: 12px;
    padding: 16px;
    text-align: center;
    cursor: pointer;
    transition: transform 0.2s;
	box-shadow: rgba(0, 0, 0, 0.16) 0px 1px 4px;
}

.category-card:hover {
    transform: translateY(-2px);
}

.img-placeholder {
    width: 100%;
    aspect-ratio: 1/1;
    background-color: #f3ece7; /* Nude aesthetic tint matched from layout images */
    border-radius: 8px;
    margin-bottom: 10px;
    display: flex;
    align-items: center;
    justify-content: center;
    color: #bfa391;
    font-size: 24px;
	border-radius: 5px;
	overflow: hidden;
}
.img-placeholder img{
	width: 100%;
	height: 100%;
}

.category-card p {
    font-size: 12px;
    font-weight: 500;
    color: #444;
    white-space: nowrap;
    overflow: hidden;
    text-overflow: ellipsis;
}

/* --- Product Cards & Feeds --- */
.product-slider {
    display: flex;
    gap: 16px;
    overflow-x: auto;
    scroll-behavior: smooth;
    padding-bottom: 10px;
}

.product-slider::-webkit-scrollbar {
    display: none; /* Hide standard slider track to match custom appearance */
}

.explore-grid {
    display: grid;
    grid-template-columns: repeat(auto-fill, minmax(220px, 1fr));
    gap: 16px;
}

.product-card {
    background-color: #fff;
    border: 1px solid #ebebeb;
    border-radius: 12px;
    position: relative;
    overflow: hidden;
    flex: 0 0 220px; /* Strict item size definition inside the flexible block horizontal slider */
	box-shadow: rgba(0, 0, 0, 0.16) 0px 1px 4px;
}

.explore-grid .product-card {
    flex: unset; 
}

.badge {
    position: absolute;
    top: 10px;
    left: 10px;
    background-color: #ff9f43;
    color: #fff;
    font-size: 10px;
    font-weight: 700;
    padding: 4px 8px;
    border-radius: 4px;
    z-index: 2;
}

.wishlist-btn {
    position: absolute;
    top: 10px;
    right: 10px;
    background: #fff;
    border: none;
    width: 28px;
    height: 28px;
    border-radius: 50%;
    display: flex;
    align-items: center;
    justify-content: center;
    cursor: pointer;
    box-shadow: 0 2px 6px rgba(0,0,0,0.1);
    color: #666;
    z-index: 2;
}

.product-img-placeholder {
    width: 100%;
    aspect-ratio: 3/4;
    background-color: #f5f5f5;
    display: flex;
    align-items: center;
    justify-content: center;
    color: #aaa;
    font-size: 14px;
}
.product-img-placeholder img{
	width: 100%;
	height: 100%;
}
.product-info {
    padding: 12px;
}

.product-title {
    font-size: 13px;
    font-weight: 500;
    color: #333;
    margin-bottom: 8px;
    white-space: nowrap;
    overflow: hidden;
    text-overflow: ellipsis;
}

.sizes {
    display: flex;
    gap: 4px;
    margin-bottom: 10px;
    align-items: center;
}

.sizes span {
    font-size: 10px;
    border: 1px solid #ddd;
    padding: 2px 6px;
    border-radius: 3px;
    color: #666;
}

.sizes span.more-sizes {
    border: none;
    color: #999;
}

.price-container {
    display: flex;
    align-items: center;
    gap: 8px;
}

.current-price {
    font-size: 15px;
    font-weight: 700;
    color: #111;
}

.old-price {
    font-size: 12px;
    color: #999;
    text-decoration: line-through;
}
.add-to-cart-btn {
    background-color: #000000;
    color: #ffffff;
    border: none;
    padding: 10px 8px;
    font-size: 14px;
    font-weight: 600;
    cursor: pointer;
    margin-left: auto;
    border-radius: 4px;
    transition: background 0.2s ease-in-out;
    display: flex;
    align-items: center;
    justify-content: center;
    gap: 8px;
}

/* Slider buttons styling */
.slider-btn {
    background: #fff;
    border: 1px solid #ddd;
    width: 32px;
    height: 32px;
    border-radius: 50%;
    cursor: pointer;
    margin-left: 6px;
}

/* --- Pagination Elements --- */
.pagination {
    display: flex;
    justify-content: center;
    align-items: center;
    gap: 6px;
    margin-top: 30px;
}

.page-btn{
	background: none;
	border: none;
	
}

.page-numbers {
    background: #fff;
    padding: 6px 12px;
    font-size: 13px;
    border-radius: 6px;
    cursor: pointer;
    color: #555;
	box-shadow: rgba(0, 0, 0, 0.16) 0px 1px 4px;
}

.page-numbers.current {
    background-color: #4a154b; /* Deep rich layout theme profile color accents */
    color: #fff;
    border-color: #4a154b;
}

/* --- Footer Elements --- */
.footer {
    background-color: #fff;
    border-top: 1px solid #eee;
    padding: 40px 20px 20px 20px;
    margin-top: 40px;
}

.footer-container {
    max-width: 1200px;
    margin: 0 auto;
    display: flex;
    flex-wrap: wrap;
    justify-content: space-between;
    gap: 30px;
}

.footer-logo {
    font-size: 22px;
    font-weight: 700;
}

.footer-links {
    display: flex;
    gap: 60px;
    flex-wrap: wrap;
}

.footer-column h4 {
    font-size: 14px;
    font-weight: 600;
    margin-bottom: 16px;
    color: #111;
}

.footer-column a {
    display: block;
    font-size: 13px;
    color: #666;
    text-decoration: none;
    margin-bottom: 10px;
}

.footer-bottom {
    max-width: 1200px;
    margin: 40px auto 0 auto;
    padding-top: 20px;
    border-top: 1px solid #eee;
    text-align: center;
    font-size: 12px;
    color: #999;
}

/* --- Mobile Navigation Bar Component --- */
.mobile-nav {
    display: none;
    position: fixed;
    bottom: 0;
    left: 0;
    width: 100%;
    background-color: #fff;
    border-top: 1px solid #eee;
    justify-content: space-around;
    padding: 8px 0;
    z-index: 1010;
}

.mobile-nav-item {
    text-decoration: none;
    color: #777;
    display: flex;
    flex-direction: column;
    align-items: center;
    font-size: 11px;
    gap: 4px;
}

.mobile-nav-item.active {
    color: #a81c51; /* Dynamic highlight selection accent matching device mockup color layout */
}

.custom-cart-wrapper {
    padding: 60px 20px;
    background-color: #fafafa;
    min-height: 60vh;
}

.cart-container {
    max-width: 1000px;
    margin: 0 auto;
    background: #ffffff;
    padding: 40px;
    border-radius: 8px;
    box-shadow: 0 4px 20px rgba(0,0,0,0.02);
}

.cart-title {
    font-size: 28px;
    font-weight: 700;
    margin-bottom: 30px;
    color: #000;
}

/* Table layout styling */
.cart-table {
    width: 100%;
    border-collapse: collapse;
    text-align: left;
    margin-bottom: 40px;
}

.cart-table th {
    padding-bottom: 15px;
    border-bottom: 2px solid #000;
    font-weight: 600;
    text-transform: uppercase;
    font-size: 12px;
    letter-spacing: 1px;
}

.cart-item-row {
    border-bottom: 1px solid #eee;
}

.cart-item-row td {
    padding: 20px 0;
    font-size: 15px;
}

.cart-item-name {
    font-weight: 600;
    color: #111;
}

.cart-qty-input {
    width: 60px;
    padding: 6px;
    border: 1px solid #ccc;
    border-radius: 4px;
    text-align: center;
}

.cart-remove-btn {
    background: none;
    border: none;
    color: #888;
    cursor: pointer;
    font-size: 16px;
    transition: color 0.2s;
}

.cart-remove-btn:hover {
    color: #ff0000;
}

/* Summary Box */
#cart-summary-box {
    border-top: 1px solid #eee;
    padding-top: 30px;
    max-width: 400px;
    margin-left: auto;
    text-align: right;
}

.summary-line {
    display: flex;
    justify-content: space-between;
    font-size: 18px;
    font-weight: 700;
    margin-bottom: 10px;
}

.shipping-info {
    font-size: 13px;
    color: #666;
    margin-bottom: 25px;
}

.cart-actions {
    display: flex;
    justify-content: flex-end;
    gap: 15px;
    align-items: center;
}

.continue-shopping {
    color: #000;
    text-decoration: underline;
    font-size: 14px;
}

.checkout-btn {
    background: #000;
    color: #fff;
    padding: 14px 30px;
    text-decoration: none;
    font-weight: 600;
    border-radius: 4px;
    transition: background 0.2s;
}

.checkout-btn:hover {
    background: #222;
}

/* Empty State styling */
.empty-cart-state {
    text-align: center;
    padding: 40px 0;
}
.shop-now-btn {
    display: inline-block;
    margin-top: 15px;
    background: #000;
    color: #fff;
    padding: 10px 20px;
    text-decoration: none;
    border-radius: 4px;
}
.custom-checkout-wrapper {
    padding: 60px 20px;
    background-color: #fafafa;
    min-height: 70vh;
}

.checkout-container {
    max-width: 1100px;
    margin: 0 auto;
    background: #ffffff;
    padding: 40px;
    border-radius: 8px;
    box-shadow: 0 4px 20px rgba(0,0,0,0.02);
}

.checkout-title {
    font-size: 28px;
    font-weight: 700;
    margin-bottom: 30px;
}

.checkout-grid {
    display: grid;
    grid-template-columns: 1fr 400px;
    gap: 50px;
}

.checkout-form-section h3, 
.order-summary-section h3 {
    font-size: 18px;
    font-weight: 600;
    margin-bottom: 20px;
    text-transform: uppercase;
    letter-spacing: 0.5px;
}

.form-group {
    margin-bottom: 15px;
}

.form-group input, 
.form-group textarea {
    width: 100%;
    padding: 12px;
    border: 1px solid #e0e0e0;
    border-radius: 4px;
    font-size: 14px;
    background: #fdfdfd;
    outline: none;
    transition: border 0.2s;
}

.form-group input:focus, 
.form-group textarea:focus {
    border-color: #000000;
}

.place-order-btn {
    background: #000000;
    color: #ffffff;
    border: none;
    padding: 15px;
    width: 100%;
    font-size: 15px;
    font-weight: 600;
    border-radius: 4px;
    cursor: pointer;
    margin-top: 10px;
    transition: background 0.2s;
}

.place-order-btn:hover {
    background: #222222;
}

/* Summary Box Styling */
.order-summary-section {
    background: #f9f9f9;
    padding: 30px;
    border-radius: 6px;
    align-self: start;
}

.summary-divider {
    border: 0;
    border-top: 1px solid #e5e5e5;
    margin: 20px 0;
}

.checkout-total-line {
    display: flex;
    justify-content: space-between;
    font-size: 16px;
    font-weight: 700;
}

.total-amount {
    font-size: 20px;
}

/* --- Responsive Media Queries Breakpoints --- */
@media (max-width: 768px) {
    body {
        padding-bottom: 70px; /* Expand bottom cushion safely for structural navbar footer overlay prevention */
    }
    
    .nav-search {
        order: 3;
        flex: 0 0 100%;
        margin: 10px 0 0 0;
    }
	
	.mob-nav-menu{
		display: flex;
		gap: 24px;
	}
    
    .nav-menu {
        display: none; /* Hide header menus inside mobile views to rely completely on fixed bottom app layout bar */
    }
    
    .nav-container {
        flex-wrap: wrap;
    }
    
    .explore-grid {
        grid-template-columns: repeat(2, 1fr); /* Enforces the exact clean 2-column list displayed on mobile screenshot */
        gap: 12px;
    }
    
    .product-card {
        flex: 0 0 calc(50% - 6px);
    }
    
    .mobile-nav {
        display: flex; /* Activate view layout dynamically when width switches to mobile device frames */
    }
	
    .checkout-grid {
        grid-template-columns: 1fr;
        gap: 30px;
    }

    .footer-links {
        gap: 30px;
        flex-direction: column;
    }
}
