
@import url("style.css");

.col-home {
display: grid;
    grid-template-columns: repeat(2, 1fr);
    gap: 40px;
}

.blk-spark {
    height: 480px;
    background-image: linear-gradient(rgba(0, 0, 0, 0), rgba(0, 0, 0, 0.9)), url('/img/site/sparkling.jpg');background-repeat: no-repeat;
    background-position: center;
    background-size: cover;

}

.blk-wht {
    height: 480px;
    background-image: linear-gradient(rgba(0, 0, 0, 0), rgba(0, 0, 0, 0.9)), url('/img/site/white-wine.jpg');background-repeat: no-repeat;
    background-position: center;
    background-size: cover;

}

.blk-red {
    height: 480px;
    background-image: linear-gradient(rgba(0, 0, 0, 0), rgba(0, 0, 0, 0.9)), url('/img/site/red-wine.png');background-repeat: no-repeat;
    background-position: center;
    background-size: cover;

}

.blk-rose {
    height: 480px;
    background-image: linear-gradient(rgba(0, 0, 0, 0), rgba(0, 0, 0, 0.9)), url('/img/site/rose_wine_bucket.webp');background-repeat: no-repeat;
    background-position: center;
    background-size: cover;

}

.col-home a {
    width: 100%;
    height: 480px;
    display: flex;
    flex-direction: column;
    color: var(--white);
    text-decoration: none;
    padding: 40px;
    gap: 16px;
    justify-content: end;
}

/* Products */

.product-grid {
    display: grid;
    grid-template-columns: repeat(4, 1fr);
    gap: 20px;
}

.product-card {
    display: block;
    color: inherit;
    text-decoration: none;
    background: var(--white);
    overflow: hidden;
    transition: transform 0.3s ease, box-shadow 0.3s ease;
}

.product-card:hover {
    padding: 0px;
}

.product-card:focus-visible {
    outline: 2px solid var(--red);
    outline-offset: 4px;
}

.product-image {
    width: 100%;
    height: 360px;
    overflow: hidden;
}

.product-image img {
    width: 100%;
    height: 100%;
    object-fit: cover;
}

.product-info {
    padding: 0px;
    display: flex;
    height: 140px;
    flex-direction: column;
    justify-content: space-between;
    
}

.product-category {
    font-size: 13px;
    letter-spacing: 9%;
    text-transform: uppercase;
    margin-bottom: 8px;
    color: var(--red);
}

.product-name {
    font-family: var(--bodyfont);
    text-transform: capitalize;
    font-size: 24px;
    margin-bottom: 1px;
}


.product-bottom {
    display: flex;
    flex-direction: column;
    justify-content: space-between;
    gap: 15px;
}

.product-price {
    font-family: var(--bodyfont);
    font-size: 24px;
    font-weight: 700;
}

/* .view-product {
    font-family: var(--bodyfont);
    text-decoration: none;
    padding: 12px 18px;
    border: 1px solid var(--red);
    font-size: 14px;
    font-weight: 600;
    color: var(--black);
    text-align: center;
}

.view-product:hover {
    border: 1px solid var(--red);
    background: var(--red);
    color: var(--white);
} */

.product-filters {
    display: flex;
    width: 100%;
    gap: 20px;
    margin-bottom: 40px;
    flex-wrap: wrap;
    justify-content: space-between;
}

.filter-group {
    display: flex;
    width: 32%;
    flex-direction: column;
    gap: 8px;
}

.filter-group label {
    font-size: 14px;
    font-weight: 600;
    font-family: var(--bodyfont);
}

.filter-group select {
    padding: 12px 15px;
    width: 100%;
    border: 1px solid #ddd;
    background: transparent;
    font-family: var(--bodyfont);
}

option {
     font-family: var(--bodyfont);
}


/* Single product */

.single-product {
    padding: 80px 0;
    border-radius: 0%;
}

#product-details {
    display: grid;
    grid-template-columns: 1fr 1fr;
    gap: 60px;
    align-items: center;
}

.single-product-image {
    width: 100%;
    height: 100%;
}

.single-product-image img {
    width: 100%;
    height: 600px;
    object-fit: cover;
}

.single-product-info h1 {
    font-size: 42px;
    margin: 10px 0 20px;
}

.product-category {
    text-transform: uppercase;
    font-size: 14px;
    letter-spacing: 1px;
}

.single-product-price {
    font-size: 28px;
    font-weight: 700;
    margin-bottom: 25px;
}

.single-product-description {
    line-height: 1.8;
    margin-bottom: 30px;
}

.product-meta {
    display: grid;
    grid-template-columns: repeat(3, 1fr);
    gap: 15px;
    margin-bottom: 35px;
}

.product-meta div {
    display: flex;
    flex-direction: column;
    gap: 5px;
    
}

.product-meta strong {
    font-size: 14px;
    font-family: var(--bodyfont);
}

.product-meta span {
    font-size: 14px;
    font-family: var(--bodyfont);
}

.product-actions {
    display: flex;
    align-items: center;
    gap: 20px;
}

.quantity {
    display: flex;
    align-items: center;
    border: 1px solid #ddd;
}

.quantity button {
    width: 40px;
    height: 40px;
    border: none;
    background: transparent;
    cursor: pointer;
}

.quantity span {
    width: 40px;
    text-align: center;
}

.add-to-cart {
    padding: 12px 30px;
    border: none;
    cursor: pointer;
    display: inline-block;
    background: var(--red);
    color: white;
    text-decoration: none;
    font-family: var(--bodyfont);
}

.add-to-cart:hover {
    background: var(--yellow);
    color: var(--black);
}

/* Cart Page */

.cart-section {
    padding: 60px 0 100px;
}

.cart-section .section-top {
    margin-bottom: 35px;
}


/* Cart Table */

.cart-table {
    width: 100%;
    border: 1px solid var(--lightgrey);
}

.cart-header,
.cart-item {
    display: grid;
    grid-template-columns: 2fr 1fr 1.2fr 1fr 100px;
    align-items: center;
    gap: 20px;
    padding: 20px 25px;
    font-family: var(--bodyfont);
}

.cart-header {
    background: #f7f7f7;
    border-bottom: 1px solid var(--lightgrey);
    font-size: 13px;
    font-weight: 600;
    text-transform: uppercase;
    letter-spacing: 0.5px;
    font-family: var(--bodyfont);
}

.cart-item {
    border-bottom: 1px solid var(--lightgrey);
    font-family: var(--bodyfont);
}

.cart-item:last-child {
    border-bottom: none;
}


/* Product */

.cart-product {
    display: flex;
    align-items: center;
    gap: 20px;
}

.cart-product img {
    width: 80px;
    height: 100px;
    object-fit: cover;
}

.cart-product p {
    margin: 0;
    font-weight: 600;
    font-family: var(--bodyfont);
}


/* Price */

.cart-price,
.cart-total {
    font-size: 15px;
    font-family: var(--bodyfont);
}

.cart-total {
    font-weight: 600;
    font-family: var(--bodyfont);
}


/* Quantity */

.cart-quantity {
    display: flex;
    align-items: center;
    width: fit-content;
    border: 1px solid var(--lightgrey);
    font-family: var(--bodyfont);
}

.cart-quantity button {
    width: 35px;
    height: 35px;
    border: none;
    background: transparent;
    cursor: pointer;
    font-size: 18px;
    font-family: var(--bodyfont);
}

.cart-quantity span {
    width: 35px;
    text-align: center;
    font-family: var(--bodyfont);
}


/* Remove */

.remove-item {
    border: none;
    background: transparent;
    cursor: pointer;
    text-decoration: underline;
    font-size: 13px;
    font-family: var(--bodyfont);
}


/* Cart Summary */

.cart-summary {
    width: 400px;
    margin-left: auto;
    margin-top: 40px;
    padding: 30px;
    border: 1px solid var(--lightgrey);
    font-family: var(--bodyfont);
}

.summary-row {
    display: flex;
    justify-content: space-between;
    align-items: center;
    gap: 20px;
    padding: 12px 0;
    font-family: var(--bodyfont);
}

.summary-total {
    margin-top: 10px;
    padding-top: 20px;
    border-top: 1px solid var(--lightgrey);
    font-size: 28px;
    font-family: var(--bodyfont);
}


/* Checkout */

.checkout-button {
    display: block;
    width: 100%;
    margin-top: 25px;
    padding: 15px;
    text-align: center;
    text-decoration: none;
    background: var(--red);
    color: var(--white);
    font-family: var(--bodyfont);
}

.checkout-button:hover {
    background: var(--yellow);
    color: var(--black);
}


/* Empty Cart */

.empty-cart {
    padding: 80px 20px;
    text-align: center;
    border: 1px solid var(--lightgrey);
}

.empty-cart h3 {
    margin-bottom: 10px;
    
}

.empty-cart p {
    margin-bottom: 25px;
    font-family: var(--bodyfont);
}

.empty-cart a {
    display: inline-block;
    padding: 13px 25px;
    background: var(--red);
    color: white;
    text-decoration: none;
    font-size: 16px;
    font-family: var(--bodyfont);
}

.empty-cart a:hover {
    background: var(--yellow);
    color: var(--black);
}





/* Cart Icon */

.cart-icon {
    position: relative;
    display: inline-flex;
}

.cart-icon img {
    width: 24px;
}

#cart-count {
    position: absolute;
    top: -8px;
    right: -10px;
    min-width: 18px;
    height: 18px;
    display: flex;
    align-items: center;
    justify-content: center;
    padding: 0 4px;
    border-radius: 50%;
    background: var(--black);
    color: var(--white);
    font-size: 10px;
    line-height: 1;
    font-family: var(--bodyfont);
}

/* Checkout Page */

.checkout-section {
    padding: 60px 0 100px;
}

.checkout-section .section-top {
    margin-bottom: 40px;
}

.checkout-layout {
    display: grid;
    grid-template-columns: minmax(0, 1.6fr) minmax(320px, 0.8fr);
    gap: 50px;
    align-items: start;
}


/* Checkout Blocks */

.checkout-block {
    padding: 30px 0;
    border-bottom: 1px solid var(--lightgrey);
}

.checkout-block:first-child {
    padding-top: 0;
}

.checkout-block h3 {
    margin-bottom: 25px;
    font-size: 24px;
    font-family: var(--bodyfont);
    text-transform: capitalize;
    font-weight: 700;
}


/* Form */

.checkout-form {
    width: 100%;
    min-width: 0;
}

.checkout-form form {
    width: 100%;
    min-width: 0;
    display: flex;
    flex-direction: column;
    font-family: var(--bodyfont);
}

.form-row {
    width: 100%;
    display: grid;
    grid-template-columns: minmax(0, 1fr) minmax(0, 1fr);
    gap: 20px;
}

.form-group {
    width: 100%;
    min-width: 0;
    display: flex;
    flex-direction: column;
    box-sizing: border-box;
    gap: 8px;
    margin-bottom: 20px;
}

.form-group label {
    font-size: 14px;
    font-weight: 600;
    font-family: var(--bodyfont);
}

.form-group input,
.form-group select,
.form-group textarea {
    width: 100%;
    box-sizing: border-box;
    padding: 14px 16px;
    border: 1px solid #ddd;
    background: white;
    outline: none;
    font-family: var(--bodyfont);
}

.form-group input:focus,
.form-group select:focus,
.form-group textarea:focus {
    border-color: #555;
}


/* Shipping */

.shipping-options,
.payment-options {
    display: flex;
    flex-direction: column;
    gap: 12px;
    font-family: var(--bodyfont);
}

.shipping-option,
.payment-option {
    display: flex;
    align-items: center;
    gap: 15px;
    padding: 18px;
    border: 1px solid var(--lightgrey);
    cursor: pointer;
    font-family: var(--bodyfont);
}

.shipping-option > div,
.payment-option > div {
    display: flex;
    flex-direction: column;
    gap: 5px;
    flex: 1;
}

.shipping-option span,
.payment-option span {
    font-size: 13px;
    font-family: var(--bodyfont);
}


/* Order Summary */

.checkout-summary {
    padding: 30px;
    border: 1px solid var(--lightgrey);
    position: sticky;
    top: 30px;
}

.checkout-summary h3 {
    margin-bottom: 25px;
    font-size: 32px;
}

.checkout-item {
    display: flex;
    gap: 15px;
    padding: 15px 0;
    border-bottom: 1px solid var(--lightgrey);
    font-family: var(--bodyfont);
}

.checkout-item img {
    width: 60px;
    height: 75px;
    object-fit: cover;
}

.checkout-item-info {
    flex: 1;
    min-width: 0;
}

.checkout-item-info p {
    margin: 0 0 5px;
    font-weight: 600;
    font-family: var(--bodyfont);
}

.checkout-item-info span {
    font-size: 13px;
}

.checkout-item-price {
    font-weight: 600;
}


/* Summary */

.checkout-summary .summary-row {
    display: flex;
    justify-content: space-between;
    gap: 20px;
    padding: 15px 0;
}

.checkout-summary .summary-total {
    margin-top: 10px;
    padding-top: 20px;
    border-top: 1px solid var(--lightgrey);
    font-size: 18px;
}


/* Place Order */

.place-order-button {
    display: block;
    width: 100%;
    margin-top: 25px;
    padding: 15px;
    text-align: center;
    text-decoration: none;
    background: var(--red);
    color: var(--white);
    font-family: var(--bodyfont);
    border: none;
    cursor: pointer;
    font-size: 16px;
}

.place-order-button:hover {
    background: var(--yellow);
    color: var(--black);
}

/*  Order Confirmation */

.confirmation-section {
    padding: 70px 0 100px;
}


/* Success Header */

.confirmation-header {
    text-align: center;
    max-width: 700px;
    margin: 0 auto 60px;
    font-family: var(--bodyfont);
}

.success-icon {
    width: 65px;
    height: 65px;
    margin: 0 auto 25px;

    display: flex;
    align-items: center;
    justify-content: center;

    border-radius: 50%;

    background: var(--red);
    color: var(--white);

    font-size: 30px;
    font-weight: 700;
}

.confirmation-header .section-tag {
    margin-bottom: 10px;
}

.confirmation-header h1 {
    margin: 10px 0 15px;
    font-size: 42px;
}

.confirmation-header > p {
    line-height: 1.7;
}


/* Order Number */

.order-number {
    width: fit-content;
    margin: 30px auto 0;
    display: flex;
    flex-direction: column;
    gap: 5px;
    padding: 15px 25px;
    border: 1px solid var(--lightgrey);
}

.order-number span {
    font-size: 13px;
    font-family: var(--bodyfont);
}

.order-number strong {
    font-size: 18px;
    font-family: var(--bodyfont);
}


/* Confirmation Layout */

.confirmation-layout {
    display: grid;

    grid-template-columns:
        minmax(0, 1.4fr)
        minmax(320px, 0.8fr);

    gap: 60px;

    align-items: start;
}


/* Confirmation Blocks */

.confirmation-block {
    padding: 30px 0;
    border-bottom: 1px solid var(--lightgrey);
}

.confirmation-block:first-child {
    padding-top: 0;
}

.confirmation-block h3 {
    margin-bottom: 20px;
    font-size: 22px;
    text-transform: capitalize;
    font-weight: 700;
    font-family: var(--bodyfont);
}


/* Customer Details */

.customer-details {
    display: flex;
    flex-direction: column;
    gap: 12px;
}

.customer-details p {
    display: grid;

    grid-template-columns: 120px 1fr;

    gap: 15px;

    margin: 0;

    line-height: 1.6;
}

.customer-details strong {
    font-weight: 600;
}


/* Payment */

.confirmation-block > p {
    margin: 0;
    font-family: var(--bodyfont);
}


/* Confirmation Summary */

.confirmation-summary {
    padding: 30px;
    border: 1px solid var(--lightgrey);
    position: sticky;
    top: 30px;
}

.confirmation-summary h3 {
    margin-bottom: 25px;
    font-size: 32px;
}


/* Confirmation Items */

.confirmation-item {
    display: flex;
    gap: 15px;
    padding: 15px 0;
    border-bottom: 1px solid var(--lightgrey);
}

.confirmation-item img {
    width: 60px;
    height: 75px;

    object-fit: cover;
}

.confirmation-item-info {
    flex: 1;
    min-width: 0;
}

.confirmation-item-info p {
    margin: 0 0 5px;

    font-weight: 600;
}

.confirmation-item-info span {
    font-size: 13px;
}

.confirmation-item-price {
    font-weight: 600;
}


/* Summary */

.confirmation-summary .summary-row {
    display: flex;

    justify-content: space-between;

    gap: 20px;

    padding: 15px 0;
}

.confirmation-summary .summary-total {
    margin-top: 10px;

    padding-top: 20px;

    border-top:
        1px solid var(--lightgrey);

    font-size: 18px;
}


/* Actions */

.confirmation-actions {
    display: flex;

    justify-content: center;

    gap: 15px;

    margin-top: 50px;
}

.continue-shopping,
.back-home {
    display: inline-block;

    padding: 14px 30px;

    text-decoration: none;

    font-family: var(--bodyfont);
}

.continue-shopping {
    background: var(--red);
    color: var(--white);
}

.continue-shopping:hover {
    background: var(--yellow);
    color: var(--black);
}

.back-home {
    border: 1px solid var(--black);

    color: var(--black);
}

.back-home:hover {
    background: var(--black);
    color: var(--white);
}

/* Search Page */

/* =========================
   SEARCH PAGE
========================= */

.search-section {
    width: 100%;
    padding: 60px 0 100px;
}


/* Search Introduction */

.search-section .section-top {
    width: 100%;
    margin-bottom: 40px;
    display: flex;
    flex-direction: column;
}

.search-section .section-top h2 {
    margin: 10px 0 15px;
}

.search-section .section-top p:last-child {
    max-width: 600px;
    line-height: 1.7;
}


/* Search Form */

.search-form {
    display: flex;
    width: 100%;
    margin-bottom: 30px;
}

.search-form input {
    flex: 1;
    min-width: 0;
    padding: 16px 20px;
    border: 1px solid var(--lightgrey);
    outline: none;
    font: inherit;
    font-family: var(--bodyfont);
    box-sizing: border-box;
}

.search-form input:focus {
    border-color: var(--black);
}

.search-form button {
    padding: 16px 35px;
    border: none;
    background: var(--red);
    color: var(--white);
    font-family: var(--bodyfont);
    cursor: pointer;
}

.search-form button:hover {
    background: var(--yellow);
    color: var(--black);
}


/* Search Message */

.search-message {
    margin-bottom: 30px;
    font-family: var(--bodyfont);
}


/* Search Results */

.search-results {
    width: 100%;
    display: grid;
    grid-template-columns: repeat(4, 1fr);
    gap: 30px;
}


/* Individual Result */

.search-result-card {
    border: 1px solid var(--lightgrey);
}

.search-result-image {
    width: 100%;
    height: 280px;
}

.search-result-image img {
    width: 100%;
    height: 100%;
    object-fit: cover;
}

.search-result-info {
    padding: 20px;
}

.search-result-category {
    margin-bottom: 8px;
    font-size: 13px;
    text-transform: uppercase;
}

.search-result-name {
    margin-bottom: 10px;
    font-size: 20px;
}

.search-result-price {
    display: block;
    margin-bottom: 20px;
    font-family: var(--bodyfont);
    font-weight: 600;
}

.search-result-link {
    display: inline-block;
    text-decoration: none;
    font-family: var(--bodyfont);
    color: var(--black);
    border-bottom: 1px solid var(--black);
}


/* Empty Search */

.search-empty {
    grid-column: 1 / -1;
    padding: 40px 0;
}


/* Tablet */

@media (max-width: 900px) {

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

}


