
/* =====================================
   STYLISH HOME ENGLAND
   Black and white ecommerce storefront
===================================== */

:root {
    --black: #111111;
    --dark: #202020;
    --white: #ffffff;
    --light: #f5f5f3;
    --grey: #777777;
    --border: #e5e5e5;
    --serif: "Playfair Display", Georgia, serif;
    --sans: "DM Sans", Arial, sans-serif;
}

* {
    box-sizing: border-box;
    margin: 0;
    padding: 0;
}

html {
    scroll-behavior: smooth;
    scroll-padding-top: 110px;
}

body {
    background: var(--white);
    color: var(--black);
    font-family: var(--sans);
    line-height: 1.6;
}

a {
    color: inherit;
    text-decoration: none;
}

button,
input {
    font: inherit;
}

button {
    cursor: pointer;
}

img {
    display: block;
    width: 100%;
}

.container {
    width: min(1240px, 92%);
    margin-inline: auto;
}

.announcement {
    background: var(--black);
    color: var(--white);
    text-align: center;
    padding: 9px 15px;
    font-size: 11px;
    letter-spacing: 1.1px;
}

.utility-bar {
    display: flex;
    justify-content: space-between;
    gap: 20px;
    padding: 9px max(4%, calc((100% - 1240px) / 2));
    background: #f3f3f3;
    color: #555;
    font-size: 11px;
}

/* Header */

.main-header {
    min-height: 108px;
    display: flex;
    align-items: center;
    justify-content: space-between;
    gap: 28px;
}

.brand {
    flex-shrink: 0;
    display: flex;
    flex-direction: column;
    align-items: center;
    color: var(--black);
    line-height: 1.2;
}

.brand-name {
    font-size: 23px;
    font-weight: 700;
    letter-spacing: 2px;
}

.brand-subtitle {
    margin-top: 5px;
    font-size: 10px;
    letter-spacing: 5px;
}

.search-form {
    display: flex;
    flex: 1;
    max-width: 500px;
    height: 45px;
    border: 1px solid #d7d7d7;
}

.search-form input {
    width: 100%;
    min-width: 0;
    padding: 0 14px;
    border: 0;
    outline: none;
    background: transparent;
    font-size: 12px;
}

.search-form input:focus {
    box-shadow: inset 0 0 0 1px #555;
}

.search-form button {
    flex-shrink: 0;
    padding: 0 19px;
    border: 0;
    background: var(--black);
    color: var(--white);
    font-size: 10px;
    letter-spacing: 1px;
}

.header-actions {
    display: flex;
    align-items: center;
    gap: 22px;
}

.header-help,
.cart-link {
    display: flex;
    align-items: center;
    gap: 9px;
}

.action-icon {
    font-size: 22px;
}

.header-actions small,
.header-actions strong {
    display: block;
}

.header-actions small {
    color: var(--grey);
    font-size: 10px;
}

.header-actions strong {
    font-size: 12px;
}

.menu-toggle {
    display: none;
    border: 0;
    background: transparent;
    color: var(--black);
    font-size: 25px;
}

/* Navigation */

.main-nav {
    background: var(--black);
    color: var(--white);
}

.nav-inner {
    display: flex;
    align-items: center;
    gap: 0;
}

.nav-inner a {
    padding: 16px 21px;
    font-size: 10px;
    font-weight: 700;
    letter-spacing: 0.7px;
    transition: background 0.2s ease;
}

.nav-inner a:first-child {
    padding-left: 0;
    padding-right: 27px;
}

.nav-inner a:hover,
.nav-inner .nav-active {
    background: #333;
}

/* Hero and categories */

.storefront {
    display: grid;
    grid-template-columns: 250px minmax(0, 1fr);
    gap: 22px;
    padding-top: 28px;
}

.category-sidebar {
    align-self: stretch;
    border: 1px solid var(--border);
    padding: 0 18px 18px;
}

.category-sidebar h2 {
    margin: 0 -18px 10px;
    padding: 17px 18px;
    background: var(--black);
    color: var(--white);
    font-size: 12px;
    letter-spacing: 1px;
}

.category-sidebar > a {
    display: flex;
    justify-content: space-between;
    gap: 10px;
    padding: 12px 0;
    border-bottom: 1px solid #ededed;
    font-size: 12px;
    transition: padding 0.2s ease;
}

.category-sidebar > a:hover {
    padding-left: 5px;
    color: #666;
}

.category-sidebar > a span {
    color: #999;
    font-size: 17px;
}

.sidebar-note {
    margin-top: 24px;
    padding: 17px 13px;
    background: var(--light);
}

.sidebar-note-icon {
    display: block;
    margin-bottom: 8px;
    font-size: 24px;
}

.sidebar-note strong {
    font-size: 13px;
}

.sidebar-note p {
    margin-top: 5px;
    color: var(--grey);
    font-size: 11px;
}

.hero {
    position: relative;
    min-width: 0;
    min-height: 440px;
    overflow: hidden;
    background: #252525;
    color: var(--white);
}

.hero-slide {
    position: absolute;
    inset: 0;
    display: grid;
    grid-template-columns: 1fr 0.9fr;
    align-items: center;
    opacity: 0;
    visibility: hidden;
    transition: opacity 0.45s ease;
}

.hero-slide.active {
    position: relative;
    opacity: 1;
    visibility: visible;
}

.hero-content {
    position: relative;
    z-index: 2;
    padding: 45px 10px 55px 42px;
}

.eyebrow {
    display: block;
    margin-bottom: 13px;
    font-size: 10px;
    font-weight: 700;
    letter-spacing: 2px;
}

.hero h1,
.brand-banner h2 {
    font-family: var(--serif);
    font-size: clamp(32px, 3.4vw, 49px);
    line-height: 1.15;
}

.hero-content p {
    max-width: 330px;
    margin: 19px 0 25px;
    color: #dedede;
    font-size: 13px;
}

.hero-image {
    align-self: stretch;
    min-height: 440px;
    background-size: cover;
    background-position: center;
}


.hero-image-one {
    background-image:
        linear-gradient(90deg, #252525 0%, transparent 45%),
        url("..//images/bathroom-hero.jpeg");
}

.hero-image-two {
    background-image:
        linear-gradient(90deg, #252525 0%, transparent 45%),
        url("..//images/living-room-hero.jpeg");
}

.hero-image-three {
    background-image:
        linear-gradient(90deg, #252525 0%, transparent 45%),
        url("..//images/kitchen-hero.jpeg");
}


.button {
    display: inline-block;
    padding: 14px 20px;
    border: 1px solid transparent;
    font-size: 10px;
    font-weight: 700;
    letter-spacing: 0.8px;
    text-align: center;
    transition: background 0.2s ease, color 0.2s ease;
}

.button-light {
    background: var(--white);
    color: var(--black);
}

.button-light:hover {
    background: transparent;
    border-color: var(--white);
    color: var(--white);
}

.button-dark {
    background: var(--black);
    color: var(--white);
}

.button-dark:hover {
    background: #444;
}

.hero-arrow {
    position: absolute;
    z-index: 3;
    top: 50%;
    width: 35px;
    height: 35px;
    transform: translateY(-50%);
    border: 1px solid #777;
    border-radius: 50%;
    background: #1119;
    color: var(--white);
    font-size: 23px;
}

.hero-prev {
    left: 12px;
}

.hero-next {
    right: 12px;
}

.hero-dots {
    position: absolute;
    z-index: 3;
    bottom: 16px;
    left: 50%;
    display: flex;
    gap: 8px;
    transform: translateX(-50%);
}

.hero-dot {
    width: 8px;
    height: 8px;
    border: 0;
    border-radius: 50%;
    background: #999;
}

.hero-dot.active {
    background: var(--white);
    outline: 1px solid var(--white);
    outline-offset: 3px;
}

/* Benefits */

.benefits {
    display: grid;
    grid-template-columns: repeat(4, 1fr);
    margin-top: 26px;
    border: 1px solid var(--border);
}

.benefit {
    display: flex;
    align-items: center;
    gap: 12px;
    padding: 19px 16px;
    border-right: 1px solid var(--border);
}

.benefit:last-child {
    border-right: 0;
}

.benefit > span {
    font-size: 25px;
}

.benefit strong {
    display: block;
    font-size: 11px;
}

.benefit p {
    margin-top: 3px;
    color: var(--grey);
    font-size: 10px;
}

/* Sections */

.section {
    padding-top: 78px;
    padding-bottom: 10px;
}

.section-heading {
    display: flex;
    align-items: end;
    justify-content: space-between;
    gap: 20px;
    margin-bottom: 27px;
}

.section-heading .eyebrow {
    margin-bottom: 5px;
    color: var(--grey);
}

.section-heading h2 {
    font-family: var(--serif);
    font-size: clamp(25px, 3vw, 34px);
    line-height: 1.25;
}

.section-heading > p {
    color: var(--grey);
    font-size: 12px;
}

.text-link {
    padding-bottom: 5px;
    font-size: 10px;
    font-weight: 700;
    letter-spacing: 0.5px;
}

/* Category cards */

.category-grid {
    display: grid;
    grid-template-columns: 1fr 1fr;
    gap: 22px;
}

.category-card {
    position: relative;
    display: flex;
    min-height: 310px;
    align-items: center;
    overflow: hidden;
    background-color: #d9d9d9;
    background-size: cover;
    background-position: center;
    color: var(--white);
}


.kitchen-category {
    background-image:
        linear-gradient(90deg, #000b 0%, #0005 65%, transparent 100%),
        url("..//images/kitchen-category.jpeg");
}

.bathroom-category {
    background-image:
        linear-gradient(90deg, #000b 0%, #0005 65%, transparent 100%),
        url("..//images/bathroom-category.jpeg");
}

.category-card-content {
    padding: 28px;
}

.category-card-content > span {
    font-size: 10px;
    letter-spacing: 1.5px;
}

.category-card h3 {
    margin: 13px 0 8px;
    font-family: var(--serif);
    font-size: 31px;
}

.category-card p {
    margin-bottom: 25px;
    font-size: 12px;
}

.category-card strong {
    display: inline-block;
    padding-bottom: 5px;
    border-bottom: 1px solid white;
    font-size: 10px;
    letter-spacing: 1px;
}

.category-card:hover {
    background-position: 55% center;
}

/* Products */

.deals-section {
    margin-top: 70px;
    padding: 65px 0 75px;
    background: #f7f7f6;
}

.product-grid {
    display: grid;
    grid-template-columns: repeat(4, minmax(0, 1fr));
    gap: 18px;
}

.product-card {
    min-width: 0;
    background: var(--white);
    border: 1px solid #eaeaea;
    transition: box-shadow 0.25s ease, transform 0.25s ease;
}

.product-card:hover {
    transform: translateY(-3px);
    box-shadow: 0 8px 25px #0000000b;
}

.product-image {
    position: relative;
    display: block;
    height: 225px;
    overflow: hidden;
    background: #eee;
}

.product-image img {
    height: 100%;
    object-fit: cover;
    transition: transform 0.35s ease;
}

.product-card:hover .product-image img {
    transform: scale(1.04);
}

.product-badge {
    position: absolute;
    z-index: 1;
    top: 12px;
    left: 12px;
    padding: 6px 8px;
    background: var(--black);
    color: var(--white);
    font-size: 9px;
    letter-spacing: 0.7px;
}

.product-info {
    padding: 17px 15px;
}

.product-category {
    color: #777;
    font-size: 9px;
    font-weight: 700;
    letter-spacing: 1.2px;
}

.product-info h3 {
    margin-top: 7px;
    font-size: 13px;
    line-height: 1.5;
}

.product-info h3 a:hover {
    text-decoration: underline;
}

.product-description {
    min-height: 36px;
    margin-top: 6px;
    color: var(--grey);
    font-size: 11px;
}

.product-bottom {
    display: flex;
    align-items: center;
    justify-content: space-between;
    gap: 8px;
    margin-top: 14px;
    padding-top: 12px;
    border-top: 1px solid var(--border);
}

.product-price {
    font-size: 11px;
}

.add-cart {
    padding: 8px 10px;
    border: 1px solid var(--black);
    background: var(--black);
    color: var(--white);
    font-size: 9px;
    font-weight: 700;
    white-space: nowrap;
}

.add-cart:hover {
    background: var(--white);
    color: var(--black);
}

.search-empty {
    padding: 35px 0;
    color: var(--grey);
    text-align: center;
}

/* Brand banner */

.brand-banner {
    margin-top: 55px;
    padding: 85px 0;
    background: #e9e9e7;
}

.brand-banner-inner {
    text-align: center;
}

.brand-banner .eyebrow {
    color: #666;
}

.brand-banner h2 {
    font-size: clamp(36px, 5vw, 54px);
}

.brand-banner p {
    max-width: 480px;
    margin: 17px auto 25px;
    color: #555;
    font-size: 13px;
}

/* Mini category links */

.mini-category-grid {
    display: grid;
    grid-template-columns: repeat(3, 1fr);
    border: 1px solid var(--border);
}

.mini-category {
    display: flex;
    align-items: center;
    gap: 14px;
    padding: 22px 17px;
    border-right: 1px solid var(--border);
}

.mini-category:last-child {
    border-right: 0;
}

.mini-category > span {
    color: #888;
    font-size: 11px;
}

.mini-category div {
    flex: 1;
}

.mini-category h3 {
    font-size: 12px;
}

.mini-category p {
    margin-top: 4px;
    color: var(--grey);
    font-size: 10px;
}

.mini-category b {
    font-size: 18px;
}

.mini-category:hover {
    background: var(--light);
}

/* Contact */

.contact-banner {
    margin-top: 80px;
    padding: 44px 0;
    background: var(--black);
    color: var(--white);
}

.contact-banner-inner {
    display: flex;
    align-items: center;
    justify-content: space-between;
    gap: 30px;
}

.contact-banner .eyebrow {
    color: #bbb;
}

.contact-banner h2 {
    font-family: var(--serif);
    font-size: clamp(24px, 3vw, 32px);
}

.contact-banner p {
    margin-top: 8px;
    color: #ccc;
    font-size: 12px;
}

/* Footer */

.site-footer {
    background: #f5f5f4;
}

.footer-grid {
    display: grid;
    grid-template-columns: 1.5fr 1fr 1fr 1.2fr;
    gap: 45px;
    padding-top: 55px;
    padding-bottom: 45px;
}

.brand-footer {
    align-items: flex-start;
    width: fit-content;
}

.footer-brand > p {
    max-width: 260px;
    margin-top: 18px;
    color: #666;
    font-size: 12px;
}

.footer-grid h3 {
    margin-bottom: 18px;
    font-size: 11px;
    letter-spacing: 1px;
}

.footer-grid > div:not(:first-child) > a {
    display: block;
    width: fit-content;
    margin: 10px 0;
    color: #555;
    font-size: 12px;
}

.footer-grid a:hover {
    color: #000;
    text-decoration: underline;
}

.footer-grid p {
    color: #666;
    font-size: 12px;
}

.footer-note {
    margin-top: 14px;
    font-size: 10px !important;
}

.footer-bottom {
    border-top: 1px solid #ddd;
}

.footer-bottom-inner {
    display: flex;
    justify-content: space-between;
    gap: 15px;
    padding-top: 18px;
    padding-bottom: 18px;
}

.footer-bottom p {
    color: #777;
    font-size: 10px;
}

/* Responsive tablet */

@media (max-width: 1000px) {
    .main-header {
        gap: 16px;
    }

    .brand-name {
        font-size: 19px;
    }

    .header-help {
        display: none;
    }

    .storefront {
        grid-template-columns: 215px minmax(0, 1fr);
        gap: 15px;
    }

    .hero,
    .hero-image {
        min-height: 390px;
    }

    .hero-content {
        padding-left: 30px;
    }

    .hero h1 {
        font-size: 35px;
    }

    .benefits {
        grid-template-columns: repeat(2, 1fr);
    }

    .benefit:nth-child(2) {
        border-right: 0;
    }

    .benefit:nth-child(-n+2) {
        border-bottom: 1px solid var(--border);
    }

    .product-grid {
        grid-template-columns: repeat(2, minmax(0, 1fr));
    }

    .product-image {
        height: 260px;
    }

    .footer-grid {
        grid-template-columns: repeat(2, 1fr);
    }
}

/* Responsive mobile */

@media (max-width: 680px) {
    .container {
        width: 92%;
    }

    .announcement {
        font-size: 9px;
    }

    .utility-bar {
        justify-content: center;
        text-align: center;
    }

    .utility-bar span:last-child {
        display: none;
    }

    .main-header {
        min-height: 88px;
        flex-wrap: wrap;
        gap: 12px;
        padding-top: 15px;
        padding-bottom: 15px;
    }

    .menu-toggle {
        display: block;
        order: 0;
    }

    .brand {
        order: 1;
        margin-right: auto;
    }

    .brand-name {
        font-size: 17px;
        letter-spacing: 1px;
    }

    .brand-subtitle {
        font-size: 9px;
    }

    .header-actions {
        order: 2;
    }

    .cart-link {
        gap: 5px;
    }

    .cart-link .action-icon {
        font-size: 19px;
    }

    .cart-link small {
        display: none;
    }

    .cart-link strong {
        font-size: 10px;
    }

    .search-form {
        order: 3;
        flex-basis: 100%;
        max-width: none;
        height: 42px;
    }

    .search-form input {
        font-size: 11px;
    }

    .search-form button {
        padding: 0 12px;
        font-size: 9px;
    }

    .main-nav {
        display: none;
    }

    .main-nav.open {
        display: block;
    }

    .nav-inner {
        width: 100%;
        flex-direction: column;
        align-items: stretch;
    }

    .nav-inner a,
    .nav-inner a:first-child {
        padding: 14px 5%;
        border-bottom: 1px solid #333;
    }

    .storefront {
        grid-template-columns: 1fr;
        padding-top: 18px;
    }

    .category-sidebar {
        padding-bottom: 10px;
    }

    .category-sidebar h2 {
        padding: 14px 18px;
    }

    .category-sidebar > a {
        padding: 9px 0;
        font-size: 11px;
    }

    .sidebar-note {
        display: none;
    }

    .hero,
    .hero-image {
        min-height: 390px;
    }

    .hero-slide {
        grid-template-columns: 1fr;
    }

    .hero-content {
        align-self: center;
        padding: 35px 35px 55px;
    }

    .hero h1 {
        font-size: 36px;
    }

    .hero-content p {
        max-width: 280px;
        font-size: 12px;
    }

    .hero-image {
        position: absolute;
        inset: 0;
        opacity: 0.4;
        background-position: center;
    }

    .hero-slide {
        isolation: isolate;
    }

    .hero-slide::after {
        position: absolute;
        z-index: 0;
        inset: 0;
        background: linear-gradient(90deg, #111e, #1118);
        content: "";
    }

    .hero-content {
        z-index: 1;
    }

    .benefits {
        margin-top: 18px;
    }

    .benefit {
        gap: 8px;
        padding: 13px 9px;
    }

    .benefit > span {
        font-size: 20px;
    }

    .benefit strong {
        font-size: 10px;
    }

    .benefit p {
        font-size: 9px;
    }

    .section {
        padding-top: 55px;
    }

    .section-heading {
        align-items: flex-start;
        flex-direction: column;
        gap: 10px;
    }

    .section-heading h2 {
        font-size: 27px;
    }

    .category-grid {
        grid-template-columns: 1fr;
        gap: 15px;
    }

    .category-card {
        min-height: 265px;
    }

    .category-card h3 {
        font-size: 29px;
    }

    .deals-section {
        margin-top: 45px;
        padding: 45px 0;
    }

    .product-grid {
        gap: 12px;
    }

    .product-image {
        height: 165px;
    }

    .product-info {
        padding: 12px 10px;
    }

    .product-info h3 {
        font-size: 11px;
    }

    .product-description {
        font-size: 10px;
    }

    .product-bottom {
        align-items: flex-start;
        flex-direction: column;
    }

    .product-price {
        font-size: 10px;
    }

    .add-cart {
        width: 100%;
    }

    .product-badge {
        top: 7px;
        left: 7px;
        padding: 5px;
        font-size: 8px;
    }

    .brand-banner {
        margin-top: 35px;
        padding: 60px 0;
    }

    .brand-banner h2 {
        font-size: 37px;
    }

    .mini-category-grid {
        grid-template-columns: 1fr;
    }

    .mini-category {
        border-right: 0;
        border-bottom: 1px solid var(--border);
    }

    .mini-category:last-child {
        border-bottom: 0;
    }

    .contact-banner {
        margin-top: 55px;
    }

    .contact-banner-inner {
        align-items: flex-start;
        flex-direction: column;
    }

    .footer-grid {
        grid-template-columns: 1fr 1fr;
        gap: 30px 20px;
        padding-top: 40px;
    }

    .footer-bottom-inner {
        flex-direction: column;
        gap: 7px;
    }
}

@media (max-width: 360px) {
    .brand-name {
        font-size: 14px;
    }

    .hero h1 {
        font-size: 31px;
    }

    .product-grid {
        grid-template-columns: 1fr;
    }

    .product-image {
        height: 230px;
    }

    .product-bottom {
        align-items: center;
        flex-direction: row;
    }
}


/* Stylish Home England logo */
.brand {
    display: flex;
    align-items: center;
    justify-content: center;
    flex-shrink: 0;
}

.brand-logo {
    display: block;
    width: 270px;
    max-width: 100%;
    height: auto;
    object-fit: contain;
}

/* Header logo on tablets and mobile */
@media (max-width: 1000px) {
    .brand-logo {
        width: 220px;
    }
}

@media (max-width: 680px) {
    .brand-logo {
        width: 185px;
    }
}
