/* EC-CUBE specific styles for tp_shop11 template */

/* Container adjustments */
.ec-layoutRole {
    max-width: 1800px;
    margin: 0 auto;
    padding: 0 3vw;
}

/* Header adjustments */
.ec-layoutRole__header {
    margin-bottom: 0;
}

/* Main content */
.ec-layoutRole__contents {
    display: block;
}

.ec-layoutRole__main,
.ec-layoutRole__mainWithColumn,
.ec-layoutRole__mainBetweenColumn {
    width: 100%;
}

/* Product list grid - matching tp_shop11 style */
.ec-shelfRole {
    padding: 0 1rem;
}

.ec-shelfGrid {
    display: grid;
    grid-template-columns: repeat(2, 1fr);
    gap: 1rem;
    list-style: none;
    padding: 0;
    margin: 0;
}

@media screen and (min-width: 500px) {
    .ec-shelfGrid {
        grid-template-columns: repeat(3, 1fr);
    }
}

@media screen and (min-width: 900px) {
    .ec-shelfGrid {
        grid-template-columns: repeat(4, 1fr);
    }
}

.ec-shelfGrid__item {
    padding: 1rem;
    background: #fff;
    box-shadow: 5px 5px 20px rgba(0,0,0,0.1);
    border-radius: 5px;
}

.ec-shelfGrid__item a {
    text-decoration: none;
    color: #777;
}

.ec-shelfGrid__item-image img {
    width: 100%;
    height: auto;
    margin-bottom: 0.5rem;
}

.ec-shelfGrid__item .price02-default {
    color: var(--primary-color);
    font-weight: bold;
    font-size: 1.1rem;
}

/* Product detail */
.ec-productRole {
    padding: 1rem;
}

.ec-productRole__img {
    margin-bottom: 2rem;
}

.ec-productRole__profile {
    padding: 1rem;
}

.ec-productRole__title {
    margin-bottom: 1rem;
}

.ec-productRole__title .ec-headingTitle {
    font-size: 1.5rem;
    color: var(--primary-color);
    border-bottom: 1px solid var(--primary-color);
    padding-bottom: 0.5rem;
}

.ec-productRole__price {
    font-size: 1.8rem;
    color: var(--primary-color);
    font-weight: bold;
    margin-bottom: 1rem;
}

.ec-productRole__description {
    margin-bottom: 2rem;
    line-height: 1.8;
}

/* Buttons */
.ec-blockBtn--action,
.ec-inlineBtn--action {
    display: inline-block;
    padding: 0.8rem 2rem;
    background: linear-gradient(transparent, var(--primary-color) 50%);
    color: #fff;
    border: 1px solid var(--primary-color);
    border-radius: 5px;
    text-decoration: none;
    text-align: center;
    cursor: pointer;
    box-shadow: 2px 5px 10px rgba(0,0,0,0.2), 0px 0px 30px rgba(255,255,255,0.5) inset;
    transition: 0.3s;
}

.ec-blockBtn--action:hover,
.ec-inlineBtn--action:hover {
    filter: brightness(1.1);
    color: #fff;
}

.ec-blockBtn--cancel,
.ec-inlineBtn--cancel {
    display: inline-block;
    padding: 0.8rem 2rem;
    background: #eee;
    color: #777;
    border: 1px solid #ccc;
    border-radius: 5px;
    text-decoration: none;
    text-align: center;
    cursor: pointer;
}

/* Cart */
.ec-cartRole {
    padding: 1rem;
}

.ec-cartRole__totalAmount {
    font-size: 1.5rem;
    font-weight: bold;
    color: var(--primary-color);
}

/* Forms */
.ec-input input,
.ec-select select,
.ec-textarea textarea {
    width: 100%;
    padding: 0.8rem;
    border: 1px solid #ccc;
    border-radius: 5px;
    font-size: 1rem;
}

.ec-input input:focus,
.ec-select select:focus,
.ec-textarea textarea:focus {
    border-color: var(--primary-color);
    outline: none;
}

/* Error messages */
.ec-errorMessage {
    color: #d00;
    font-size: 0.9rem;
}

/* Modal */
.ec-modal {
    display: none;
    position: fixed;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    z-index: 1000;
}

.ec-modal-overlay {
    position: absolute;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    background: rgba(0,0,0,0.5);
    display: flex;
    align-items: center;
    justify-content: center;
}

.ec-modal-wrap {
    background: #fff;
    padding: 2rem;
    border-radius: 10px;
    max-width: 500px;
    width: 90%;
}

.ec-modal-close {
    position: absolute;
    top: 10px;
    right: 15px;
    cursor: pointer;
    font-size: 1.5rem;
}

/* Pager */
.ec-pagerRole {
    padding: 2rem 1rem;
    text-align: center;
}

.ec-pager {
    list-style: none;
    padding: 0;
    display: flex;
    justify-content: center;
    gap: 0.5rem;
}

.ec-pager li a,
.ec-pager li span {
    display: inline-block;
    padding: 0.5rem 1rem;
    border: 1px solid #ccc;
    border-radius: 5px;
    text-decoration: none;
    color: #777;
}

.ec-pager li.active span,
.ec-pager li a:hover {
    background: var(--primary-color);
    color: #fff;
    border-color: var(--primary-color);
}

/* Search navigation */
.ec-searchnavRole {
    padding: 1rem;
    margin-bottom: 1rem;
}

.ec-searchnavRole__infos {
    display: flex;
    justify-content: space-between;
    align-items: center;
    flex-wrap: wrap;
    gap: 1rem;
}

.ec-searchnavRole__counter {
    font-size: 0.9rem;
}

/* Breadcrumb / Topic path */
.ec-topicpath {
    list-style: none;
    padding: 0 1rem;
    margin: 1rem 0;
    display: flex;
    flex-wrap: wrap;
    gap: 0.5rem;
    font-size: 0.9rem;
}

.ec-topicpath__item a {
    color: #777;
}

.ec-topicpath__item--active a {
    color: var(--primary-color);
}

/* Login block */
.ec-headerNaviRole {
    display: none;
}

/* Category navigation */
.ec-categoryNaviRole {
    margin-bottom: 2rem;
}

/* Maintenance alert */
.ec-maintenanceAlert,
.ec-debugModeAlert {
    background: #ff5e7c;
    color: #fff;
    text-align: center;
    padding: 0.5rem;
}

.ec-debugModeAlert {
    background: #dc3545;
}

/* Drawer menu */
.ec-drawerRole {
    display: none;
}

.ec-overlayRole {
    display: none;
}

/* Block top button adjustments */
.ec-blockTopBtn {
    display: none;
}

/* Responsive table */
@media screen and (max-width: 600px) {
    .ec-cartRow {
        display: block;
    }
}

/* Quantity input */
.ec-numberInput {
    display: flex;
    align-items: center;
    gap: 0.5rem;
}

.ec-numberInput input {
    width: 60px;
    text-align: center;
}

/* Select dropdown */
.ec-select select {
    appearance: none;
    background: #fff url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' width='12' height='12' viewBox='0 0 12 12'%3E%3Cpath fill='%23333' d='M6 8L1 3h10z'/%3E%3C/svg%3E") no-repeat right 10px center;
    padding-right: 30px;
}

/* Alert styles */
.alert {
    padding: 1rem;
    margin-bottom: 1rem;
    border-radius: 5px;
}

.alert-primary {
    background: #e3f2fd;
    border: 1px solid #2196f3;
    color: #1565c0;
}

.alert-danger {
    background: #ffebee;
    border: 1px solid #f44336;
    color: #c62828;
}

.alert-warning {
    background: #fff3e0;
    border: 1px solid #ff9800;
    color: #e65100;
}

.alert-success {
    background: #e8f5e9;
    border: 1px solid #4caf50;
    color: #2e7d32;
}

/* Text utilities */
.text-center {
    text-align: center;
}

.text-danger {
    color: #d00;
}

/* Mypage */
.ec-mypageRole {
    padding: 1rem;
}

.ec-navlistRole {
    margin-bottom: 2rem;
}

.ec-navlistRole__navlist {
    list-style: none;
    padding: 0;
    border: 1px solid #ccc;
    border-radius: 5px;
}

.ec-navlistRole__item {
    border-bottom: 1px solid #ccc;
}

.ec-navlistRole__item:last-child {
    border-bottom: none;
}

.ec-navlistRole__item a {
    display: block;
    padding: 1rem;
    text-decoration: none;
    color: #777;
}

.ec-navlistRole__item a:hover,
.ec-navlistRole__item.active a {
    background: var(--primary-color);
    color: #fff;
}

/* Shopping flow */
.ec-progress {
    display: flex;
    justify-content: center;
    margin-bottom: 2rem;
    padding: 0 1rem;
}

.ec-progress__item {
    flex: 1;
    text-align: center;
    padding: 1rem;
    background: #eee;
    position: relative;
}

.ec-progress__item--active {
    background: var(--primary-color);
    color: #fff;
}

.ec-progress__item::after {
    content: "";
    position: absolute;
    right: -10px;
    top: 50%;
    transform: translateY(-50%);
    border: 10px solid transparent;
    border-left-color: #eee;
    z-index: 1;
}

.ec-progress__item--active::after {
    border-left-color: var(--primary-color);
}

.ec-progress__item:last-child::after {
    display: none;
}

/* Slick slider adjustments */
.ec-sliderRole {
    margin-bottom: 2rem;
}
