/* main/static/main/css/style.css */
* {
    margin: 0;
    padding: 0;
    box-sizing: border-box;
}

body {
    font-family: -apple-system, BlinkMacSystemFont, 'Segoe UI', Roboto, 'Helvetica Neue', Arial, sans-serif;
    overflow-x: hidden;
}

@font-face {
    font-family: 'futura';
    src: url('/static/fonts/intrepid.ttf') format('truetype'); /* TTF format */
    font-weight: normal;
    font-style: normal;
}
/* Navbar Styles */
.navbar {
    width: 100vw;
    position: sticky;
    top: 0;
    z-index: 100;
    background: #fff;
    left: 0;
    right: 0;
}

.promo-banner {
    background: #000;
    color: #fff;
    text-align: center;
    padding: 12px;
    font-size: 13px;
    position: relative;
    letter-spacing: 1px;
}

.promo-banner a {
    color: #fff;
    text-decoration: underline;
}

.promo-arrow {
    position: absolute;
    top: 50%;
    transform: translateY(-50%);
    background: none;
    border: none;
    color: #fff;
    font-size: 24px;
    cursor: pointer;
    padding: 0 20px;
}

.promo-prev { left: 0; }
.promo-next { right: 0; }

.navbar-main {
    display: flex;
    justify-content: space-between;
    align-items: center;
    padding: 20px 40px 0 40px;
}

.navbar-location {
    display: flex;
    align-items: center;
    gap: 8px;
    font-size: 16px;
    font-weight: 600;
}
.custom-order-btn {
    background: #000;
    color: #fff;
    border: 2px solid #000;
    border-radius: 25px;
    padding: 12px 32px;
    font-size: 13px;
    font-weight: 600;
    letter-spacing: 1px;
    cursor: pointer;
    font-family: inherit;
    transition: background 0.2s, color 0.2s, border 0.2s;
}

.custom-order-btn:hover,
.custom-order-btn:focus {
    color: #000;
    background: #fff;
    outline: none;
}

.navbar-location img {
    width: 20px;
    height: 15px;
}

/* Hamburger styles, hidden by default, shown on mobile */
.hamburger {
    display: none;
    flex-direction: column;
    justify-content: center;
    align-items: center;
    width: 32px;
    height: 32px;
    cursor: pointer;
    background: none;
    border: none;
    padding: 0;
    position: relative;
}

.hamburger span {
    display: block;
    width: 23px;
    height: 3px;
    margin: 3.2px 0;
    background: #000;
    border-radius: 2px;
    transition: all 0.3s;
}

.navbar-logo h1 {
    font-family: 'Futura', sans-serif;
    font-size: 24px;
    font-weight: 700;
    letter-spacing: 5px;
}

.navbar-icons {
    display: flex;
    gap: 30px;
    
}

.nav-icon {
    font-size: 35px;
    text-decoration: none;
    color: #000;
    font-weight: 600;
    cursor: pointer;
}

.nav-icon-btn {
    border: none;
    background: none;
    padding: 0;
    display: inline-flex;
    align-items: center;
    justify-content: center;
    font-family: inherit;
}

.navbar-menu {
    display: flex;
    justify-content: center;
    gap: 40px;
    padding: 18px 0;
    background: #fff;
    border-bottom: 1px solid #e0e0e0;
}

.navbar-menu a {
    text-decoration: none;
    color: #000;
    font-size: 13px;
    font-weight: 600;
    letter-spacing: 1px;
    transition: opacity 0.3s;
}

.navbar-menu a:hover {
    opacity: 0.7;
}

.drawer-overlay {
    position: fixed;
    inset: 0;
    background: rgba(0, 0, 0, 0.45);
    opacity: 0;
    visibility: hidden;
    pointer-events: none;
    transition: opacity 0.25s ease;
    z-index: 998;
    display: none;
}

.navbar-drawer {
    position: fixed;
    top: 0;
    right: 0;
    width: 320px;
    max-width: 85%;
    height: 100vh;
    background: #fff;
    transform: translateX(100%);
    transition: transform 0.28s ease;
    box-shadow: -8px 0 24px rgba(0, 0, 0, 0.18);
    z-index: 999;
    display: none;
    flex-direction: column;
}

.drawer-header {
    display: flex;
    align-items: center;
    justify-content: space-between;
    padding: 20px 18px 14px;
    border-bottom: 1px solid #e5e5e5;
}

.drawer-header h2 {
    margin: 0;
    font-size: 14px;
    letter-spacing: 1px;
}

.drawer-close {
    border: none;
    background: none;
    font-size: 28px;
    line-height: 1;
    cursor: pointer;
    padding: 0 6px;
}

.drawer-menu {
    display: flex;
    flex-direction: column;
    padding: 10px 18px 22px;
}

.drawer-menu a {
    text-decoration: none;
    color: #000;
    font-size: 13px;
    font-weight: 600;
    letter-spacing: 1px;
    padding: 14px 0;
    border-bottom: 1px solid #f1f1f1;
}

body.drawer-open .drawer-overlay {
    opacity: 1;
    visibility: visible;
    pointer-events: auto;
}

body.drawer-open .navbar-drawer {
    transform: translateX(0);
}

/* Responsive styles for 480px */
@media (max-width: 480px) {
    .promo-banner {
        font-size: 11px;
        padding: 8px 2px 8px 35px;
    }
    .promo-arrow {
        font-size: 20px;
        padding: 0 9px;
    }
    .promo-prev { left: 0; }
    .promo-next { right: 0; }

    .navbar-main {
        flex-direction: row;
        align-items: center;
        justify-content: space-between;
        padding: 12px 10px;
        gap: 10px;
    }
    .navbar-location {
        display: none;
    }
    .hamburger {
        display: flex;
    }

    .navbar-menu {
        display: none;
    }

    .drawer-overlay {
        display: block;
    }

    .navbar-drawer {
        display: flex;
    }

    .navbar-logo h1 {
        font-size: 17px;
        letter-spacing: 2px;
        text-align: center;
    }
    .navbar-icons {
        justify-content: flex-end;
        gap: 12px;
    }
    .nav-icon {
        font-size: 16px;
    }
    .navbar-drawer {
        width: 290px;
    }
}

.hero-section {
    max-width: 1600px;
    margin: 0 auto;
    padding: 60px 40px 80px;
}

.categories-grid {
    display: grid;
    grid-template-columns: 1fr 1fr;
    grid-template-rows: auto auto;
    gap: 7px;
}

.category-card {
    background: #f5f5f5;
    display: flex;
    flex-direction: column;
    align-items: center;
    justify-content: center;
    padding: 12px 10px;
    position: relative;
    overflow: hidden;
    border-radius: 25px;
    transition: transform 0.3s ease;
}

.category-card:hover {
    transform: translateY(-5px);
}

.category-card.area-rugs {
    grid-column: 1;
    grid-row: 1 / 3;
}

.category-card.square-rugs {
    grid-column: 2;
    grid-row: 1;
}

.category-card.runners {
    grid-column: 2;
    grid-row: 2;
}

.category-image {
    max-width: 50%;
    height: auto;
    margin-bottom: 20px;
    transition: transform 0.4s ease;
}

.category-card:hover .category-image {
    transform: scale(1.05);
}

.category-card.area-rugs .category-image {
    max-width: 380px;
}

.category-card.square-rugs .category-image {
    max-width: 265px;
}

.category-card.runners .category-image {
    max-width: 185px;
}

.category-card.square-rugs,
.category-card.runners {
    flex-direction: row-reverse;
    justify-content: space-between;
    align-items: center;
    padding: 14px 24px;
}

.category-card.square-rugs .category-image,
.category-card.runners .category-image {
    margin-bottom: 0;
    flex-shrink: 0;
}

.category-card.square-rugs .category-info,
.category-card.runners .category-info {
    display: flex;
    flex-direction: column;
    align-items: flex-start;
    gap: 12px;
}

.category-card.square-rugs .category-title,
.category-card.runners .category-title {
    margin-bottom: 0;
}

.category-title {
    font-size: 32px;
    font-weight: 600;
    margin-bottom: 25px;
    letter-spacing: 0.5px;
}

.shop-btn {
    background: #000;
    color: white;
    padding: 17px 45px;
    border: none;
    border-radius: 0px;
    cursor: pointer;
    font-size: 18px;
    letter-spacing: 1px;
    transition: all 0.3s ease;
    font-family: inherit;
}

.shop-btn:hover {
    background: #333;
    transform: translateY(-2px);
    box-shadow: 0 4px 12px rgba(0,0,0,0.2);
}

/* Section Title */
.section-title {
    text-align: center;
    font-size: 45px;
    font-family: 'Futura', sans-serif;
    font-weight: 600;
    letter-spacing: 3px;
    text-transform: uppercase;
    margin-top: 80px;
   
}

/* Accessibility Button */
.accessibility-btn {
    position: fixed;
    bottom: 30px;
    right: 30px;
    width: 50px;
    height: 50px;
    background: #000;
    border-radius: 50%;
    display: flex;
    align-items: center;
    justify-content: center;
    cursor: pointer;
    z-index: 1000;
    transition: transform 0.3s;
}

.accessibility-btn:hover {
    transform: scale(1.1);
}

.accessibility-btn svg {
    width: 24px;
    height: 24px;
    fill: white;
}

.footer-container {
    width: 100vw;
    margin: 0;
    background: black;
    border-radius: 0;
    overflow: hidden;
}


/* Footer Links Section */
.footer-links {
    display: grid;
    grid-template-columns: 1fr repeat(4, 1fr);
    gap: 60px;
    padding: 80px 60px;
    background: black;
    color: white;
}

.footer-column h3 {
    font-size: 1.1rem;
    font-weight: 500;
    margin-bottom: 24px;
    letter-spacing: -0.3px;
}

.footer-column ul {
    list-style: none;
}

.footer-column ul li {
    margin-bottom: 14px;
}

.footer-column ul li a {
    color: #ccc;
    text-decoration: none;
    font-size: 0.95rem;
    transition: color 0.2s ease;
}

.footer-column ul li a:hover {
    color: #fff;
}

.logo-column {
    display: flex;
    flex-direction: column;
    gap: 24px;
}

.logo {
    font-size: 1.5rem;
    font-weight: 700;
    line-height: 1.2;
    max-width: 140px;
    color: white;
}

.certification {
    width: 60px;
    height: 60px;
    display: flex;
    align-items: center;
    justify-content: center;
}

.certification svg {
    width: 100%;
    height: 100%;
}

/* Bottom Bar */
.footer-bottom {
    background: black;
    padding: 30px 60px;
    border-top: 1px solid #343434;
    display: flex;
    justify-content: space-between;
    align-items: center;
}

.footer-bottom-left {
    display: flex;
    gap: 24px;
    align-items: center;
}

.footer-bottom-left span,
.footer-bottom-left a {
    color: #aaa;
    text-decoration: none;
    font-size: 0.9rem;
}

.footer-bottom-left a:hover {
    color: #fff;
}

.footer-bottom-right {
    display: flex;
    gap: 24px;
    align-items: center;
}

.country-selector {
    color: #aaa;
    font-size: 0.9rem;
    cursor: pointer;
}

.social-icons {
    display: flex;
    gap: 16px;
}

.social-icon {
    width: 24px;
    height: 24px;
    display: flex;
    align-items: center;
    justify-content: center;
    color: #ccc;
    transition: color 0.2s ease;
}

.social-icon:hover {
    color: #fff;
}

.scroll-top {
    width: 48px;
    height: 48px;
    border: 1px solid #333;
    border-radius: 50%;
    display: flex;
    align-items: center;
    justify-content: center;
    cursor: pointer;
    transition: all 0.3s ease;
    background: black;
    color: white;
}

.scroll-top:hover {
    background: white;
    border-color: white;
    color: black;
}

.discover-more {
    text-align: center;
    padding: 40px;
    background: black;
}

.discover-more a {
    color: #ccc;
    text-decoration: none;
    font-size: 0.95rem;
    letter-spacing: 1px;
    border-bottom: 1px solid #ccc;
    padding-bottom: 2px;
}

@media (max-width: 968px) {
    .footer-links {
        grid-template-columns: 1fr 1fr;
        gap: 40px;
        padding: 60px 40px;
    }

    .newsletter-section h2 {
        font-size: 2rem;
    }
}

@media (max-width: 640px) {
    .footer-links {
        grid-template-columns: 1fr;
        gap: 32px;
        padding: 40px 24px;
    }

    .newsletter-form {
        flex-direction: column;
    }

    .footer-bottom {
        flex-direction: column;
        gap: 20px;
        padding: 24px;
    }
}

.messages {
    list-style: none;
    margin: 0;
    padding: 12px 40px;
    background: #f0f0f0;
    font-size: 14px;
}

.messages li.success {
    color: #0a5f0a;
}

.messages li.error {
    color: #b00020;
}

.drawer-user {
    display: block;
    padding: 12px 18px 4px;
    font-size: 12px;
    color: #666;
}

@media (max-width: 480px) {
    .messages {
        padding: 12px 16px;
    }
}
