/*
Theme Name: OCTOPUSE
Theme URI: https://example.com
Author: Your Name
Author URI: https://example.com
Description: A fully WooCommerce‑compatible theme based on the OCTOPUSE demo. No UI changes, all dynamic.
Version: 1.0.0
License: GPL v2 or later
Text Domain: octopuse
*/

/* ---------- Original Demo CSS (exactly as before) ---------- */
* {
    margin: 0;
    padding: 0;
    box-sizing: border-box;
}
html {
    scroll-behavior: smooth;
}
body {
    font-family: 'Inter', sans-serif;
    background-color: #f9fafb;
    color: #111827;
    line-height: 1.5;
    -webkit-tap-highlight-color: transparent;
}
.container {
    max-width: 1280px;
    margin: 0 auto;
    padding: 0 1.5rem;
}
.header {
    background: white;
    box-shadow: 0 1px 3px rgba(0,0,0,0.05);
    position: sticky;
    top: 0;
    z-index: 40;
}
.header-content {
    display: flex;
    align-items: center;
    justify-content: space-between;
    height: 4.5rem;
}
.logo {
    font-size: 1.8rem;
    font-weight: 700;
    color: #0f172a;
    letter-spacing: -0.5px;
}
.nav-links {
    display: none;
    gap: 2rem;
    font-weight: 500;
}
.nav-links a {
    text-decoration: none;
    color: #374151;
    transition: color 0.2s;
}
.nav-links a:hover {
    color: #3b82f6;
}
.header-icons {
    display: flex;
    align-items: center;
    gap: 1.2rem;
}
.header-icons i {
    font-size: 1.3rem;
    color: #4b5563;
    cursor: pointer;
    transition: color 0.2s;
}
.header-icons i:hover {
    color: #3b82f6;
}
.cart-icon-wrapper {
    position: relative;
}
.cart-count {
    position: absolute;
    top: -8px;
    right: -8px;
    background: #ef4444;
    color: white;
    font-size: 0.7rem;
    font-weight: 600;
    width: 1.2rem;
    height: 1.2rem;
    display: flex;
    align-items: center;
    justify-content: center;
    border-radius: 9999px;
}
.hero {
    background: linear-gradient(145deg, #f3f4f6 0%, #ffffff 100%);
    padding: 4rem 0;
}
.hero-content {
    display: flex;
    flex-direction: column;
    gap: 2rem;
}
.hero-text h1 {
    font-size: 2.5rem;
    font-weight: 700;
    line-height: 1.2;
    margin-bottom: 1rem;
}
.hero-text p {
    font-size: 1.125rem;
    color: #4b5563;
    margin-bottom: 1.5rem;
    max-width: 32rem;
}
.btn {
    display: inline-block;
    background: #3b82f6;
    color: white;
    font-weight: 600;
    padding: 0.75rem 2rem;
    border-radius: 9999px;
    text-decoration: none;
    transition: background 0.2s;
    border: none;
    cursor: pointer;
}
.btn:hover {
    background: #2563eb;
}
.btn-outline {
    background: transparent;
    border: 1px solid #d1d5db;
    color: #374151;
    margin-left: 1rem;
}
.btn-outline:hover {
    background: #f3f4f6;
}
.hero-image img {
    max-width: 100%;
    border-radius: 1.5rem;
    box-shadow: 0 20px 25px -5px rgba(0,0,0,0.1);
}
.category-section {
    margin: 3rem 0 1rem;
}
.category-pills {
    display: flex;
    flex-wrap: wrap;
    justify-content: center;
    gap: 1rem;
}
.category-pill {
    background: white;
    border: 1px solid #e5e7eb;
    border-radius: 9999px;
    padding: 0.5rem 1.5rem;
    font-weight: 500;
    color: #374151;
    text-decoration: none;
    transition: all 0.2s;
    cursor: pointer;
}
.category-pill:hover,
.category-pill.active {
    background: #3b82f6;
    color: white;
    border-color: #3b82f6;
}
.section-title {
    font-size: 2rem;
    font-weight: 700;
    margin: 3rem 0 2rem;
    text-align: center;
}
.product-grid {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(260px, 1fr));
    gap: 2rem;
}
.product-card {
    background: white;
    border-radius: 1rem;
    overflow: hidden;
    box-shadow: 0 4px 6px -1px rgba(0,0,0,0.05);
    transition: transform 0.2s, box-shadow 0.2s;
    display: flex;
    flex-direction: column;
}
.product-card:hover {
    transform: translateY(-4px);
    box-shadow: 0 20px 25px -5px rgba(0,0,0,0.1);
}
.product-image {
    width: 100%;
    aspect-ratio: 1 / 1;
    object-fit: cover;
}
.product-info {
    padding: 1.5rem;
    flex: 1;
    display: flex;
    flex-direction: column;
}
.product-title {
    font-weight: 600;
    font-size: 1.125rem;
    margin-bottom: 0.5rem;
    color: #1f2937;
}
.product-price {
    font-weight: 700;
    font-size: 1.25rem;
    color: #3b82f6;
    margin-bottom: 1rem;
}
.product-actions {
    display: flex;
    gap: 0.5rem;
    margin-top: auto;
}
.add-to-cart, .quick-view {
    flex: 1;
    background: #f3f4f6;
    border: none;
    padding: 0.75rem;
    border-radius: 9999px;
    font-weight: 600;
    color: #1f2937;
    cursor: pointer;
    transition: background 0.2s;
    display: flex;
    align-items: center;
    justify-content: center;
    gap: 0.5rem;
    font-size: 0.9rem;
}
.add-to-cart:hover {
    background: #e5e7eb;
}
.quick-view {
    background: #e5e7eb;
}
.quick-view:hover {
    background: #d1d5db;
}
.newsletter {
    background: white;
    border-radius: 1.5rem;
    padding: 3rem 2rem;
    text-align: center;
    margin: 4rem 0;
    box-shadow: 0 4px 6px -1px rgba(0,0,0,0.05);
}
.newsletter h3 {
    font-size: 1.8rem;
    font-weight: 700;
    margin-bottom: 1rem;
}
.newsletter p {
    color: #6b7280;
    margin-bottom: 2rem;
}
.newsletter-form {
    display: flex;
    max-width: 500px;
    margin: 0 auto;
    gap: 0.5rem;
}
.newsletter-form input {
    flex: 1;
    padding: 0.9rem 1.2rem;
    border: 1px solid #d1d5db;
    border-radius: 9999px;
    font-size: 1rem;
    outline: none;
}
.newsletter-form input:focus {
    border-color: #3b82f6;
}
.newsletter-form button {
    background: #3b82f6;
    color: white;
    border: none;
    padding: 0.9rem 2rem;
    border-radius: 9999px;
    font-weight: 600;
    cursor: pointer;
}
.footer {
    background: white;
    border-top: 1px solid #e5e7eb;
    margin-top: 4rem;
    padding: 3rem 0 2rem;
}
.footer-grid {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(200px, 1fr));
    gap: 2rem;
    margin-bottom: 2rem;
}
.footer-col h4 {
    font-weight: 600;
    margin-bottom: 1rem;
    color: #111827;
}
.footer-col ul {
    list-style: none;
}
.footer-col li {
    margin-bottom: 0.5rem;
}
.footer-col a {
    text-decoration: none;
    color: #6b7280;
    transition: color 0.2s;
    cursor: pointer;
}
.footer-col a:hover {
    color: #3b82f6;
}
.footer-bottom {
    text-align: center;
    padding-top: 2rem;
    border-top: 1px solid #e5e7eb;
    color: #9ca3af;
}
.footer-bottom strong {
    font-weight: 700;
    text-transform: uppercase;
    color: #111827;
}
.cart-overlay {
    position: fixed;
    top: 0;
    right: 0;
    bottom: 0;
    width: 100%;
    max-width: 400px;
    background: white;
    box-shadow: -10px 0 25px -5px rgba(0,0,0,0.1);
    transform: translateX(100%);
    transition: transform 0.3s ease-in-out;
    z-index: 50;
    display: flex;
    flex-direction: column;
}
.cart-overlay.open {
    transform: translateX(0);
}
.cart-header {
    display: flex;
    justify-content: space-between;
    align-items: center;
    padding: 1.5rem;
    border-bottom: 1px solid #e5e7eb;
}
.cart-header h2 {
    font-size: 1.25rem;
    font-weight: 600;
}
.close-cart {
    background: none;
    border: none;
    font-size: 1.5rem;
    cursor: pointer;
    color: #9ca3af;
}
.cart-items {
    flex: 1;
    overflow-y: auto;
    padding: 1.5rem;
}
.cart-item {
    display: flex;
    gap: 1rem;
    margin-bottom: 1.5rem;
}
.cart-item-img {
    width: 70px;
    height: 70px;
    border-radius: 0.5rem;
    object-fit: cover;
    background: #f3f4f6;
}
.cart-item-details {
    flex: 1;
}
.cart-item-title {
    font-weight: 600;
    margin-bottom: 0.25rem;
}
.cart-item-price {
    color: #3b82f6;
    font-weight: 600;
}
.cart-item-quantity {
    display: flex;
    align-items: center;
    gap: 0.5rem;
    margin-top: 0.5rem;
}
.quantity-btn {
    background: #f3f4f6;
    border: none;
    width: 28px;
    height: 28px;
    border-radius: 4px;
    cursor: pointer;
    font-weight: 600;
    display: flex;
    align-items: center;
    justify-content: center;
}
.cart-footer {
    padding: 1.5rem;
    border-top: 1px solid #e5e7eb;
}
.cart-total {
    display: flex;
    justify-content: space-between;
    font-weight: 700;
    font-size: 1.125rem;
    margin-bottom: 1rem;
}
.checkout-btn {
    width: 100%;
    background: #3b82f6;
    color: white;
    border: none;
    padding: 0.9rem;
    border-radius: 9999px;
    font-weight: 600;
    cursor: pointer;
    transition: background 0.2s;
}
.checkout-btn:hover {
    background: #2563eb;
}
.empty-cart {
    text-align: center;
    color: #9ca3af;
    margin-top: 2rem;
}
.backdrop {
    position: fixed;
    top: 0;
    left: 0;
    right: 0;
    bottom: 0;
    background: rgba(0,0,0,0.5);
    z-index: 45;
    display: none;
}
.backdrop.active {
    display: block;
}
.modal {
    display: none;
    position: fixed;
    top: 0;
    left: 0;
    right: 0;
    bottom: 0;
    z-index: 100;
    align-items: center;
    justify-content: center;
}
.modal.active {
    display: flex;
}
.modal-content {
    background: white;
    border-radius: 1.5rem;
    max-width: 500px;
    width: 90%;
    max-height: 90vh;
    overflow-y: auto;
    box-shadow: 0 25px 50px -12px rgba(0,0,0,0.25);
    position: relative;
    animation: modalSlide 0.3s ease-out;
}
@keyframes modalSlide {
    from { transform: translateY(30px); opacity: 0; }
    to { transform: translateY(0); opacity: 1; }
}
.modal-header {
    display: flex;
    justify-content: space-between;
    align-items: center;
    padding: 1.5rem;
    border-bottom: 1px solid #e5e7eb;
}
.modal-header h2 {
    font-size: 1.5rem;
    font-weight: 600;
}
.modal-close {
    background: none;
    border: none;
    font-size: 2rem;
    line-height: 1;
    cursor: pointer;
    color: #9ca3af;
}
.modal-body {
    padding: 1.5rem;
}
.modal-body img {
    width: 100%;
    border-radius: 1rem;
    margin-bottom: 1rem;
}
.modal-body .product-price {
    font-size: 1.5rem;
    margin: 0.5rem 0;
}
.modal-body .product-description {
    color: #4b5563;
    margin: 1rem 0;
}
.modal-actions {
    display: flex;
    gap: 1rem;
    margin-top: 1.5rem;
}
.modal-actions .btn {
    flex: 1;
}
.login-form input {
    width: 100%;
    padding: 0.9rem 1.2rem;
    margin-bottom: 1rem;
    border: 1px solid #d1d5db;
    border-radius: 9999px;
    font-size: 1rem;
}
.login-form input:focus {
    border-color: #3b82f6;
    outline: none;
}
@media (max-width: 640px) {
    .container { padding: 0 1rem; }
    .header-content { height: auto; padding: 0.75rem 0; }
    .logo { font-size: 1.5rem; }
    .header-icons i { font-size: 1.2rem; }
    .hero-text h1 { font-size: 2rem; }
    .hero-text p { font-size: 1rem; }
    .btn, .btn-outline { padding: 0.6rem 1.2rem; font-size: 0.9rem; }
    .btn-outline { margin-left: 0.5rem; }
    .category-pill { padding: 0.4rem 1rem; font-size: 0.9rem; }
    .product-card .product-info { padding: 1rem; }
    .newsletter { padding: 2rem 1rem; }
    .newsletter h3 { font-size: 1.5rem; }
    .newsletter-form { flex-direction: column; gap: 0.75rem; }
    .newsletter-form input, .newsletter-form button { width: 100%; }
    .footer-grid { grid-template-columns: 1fr; text-align: center; }
    .cart-overlay { max-width: 100%; }
}
@media (max-width: 480px) {
    .hero-text h1 { font-size: 1.8rem; }
    .hero-text p { font-size: 0.95rem; }
    .btn, .btn-outline { padding: 0.5rem 1rem; font-size: 0.85rem; }
    .product-grid { gap: 1rem; }
    .cart-item { flex-wrap: wrap; }
    .cart-item-img { width: 60px; height: 60px; }
    .product-actions { flex-direction: column; }
}
@media (min-width: 768px) {
    .nav-links { display: flex; }
    .hero-content { flex-direction: row; align-items: center; }
    .hero-text { flex: 1; }
    .hero-image { flex: 1; }
    .hero-text h1 { font-size: 3rem; }
}